Skip to content

Commit

Permalink
Merge pull request #155 from tilomitra/readonly-focus
Browse files Browse the repository at this point in the history
fix #143 by removing specific :focus styles for readonly inputs
  • Loading branch information
tilomitra committed Aug 5, 2013
2 parents 1d3314e + 569a681 commit 7b4ba44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ Pure Change History
NEXT
----

### Forms

* Added `:focus` styles to `[readonly]` `<input>` elements. ([#143][])

[#143]: https://github.com/yui/pure/issues/143

0.2.1 (2013-07-17)
------------------
Expand Down
6 changes: 1 addition & 5 deletions src/forms/css/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,12 @@
}
.pure-form input[readonly],
.pure-form select[readonly],
.pure-form textarea[readonly],
.pure-form input[readonly]:focus,
.pure-form select[readonly]:focus,
.pure-form textarea[readonly]:focus {
.pure-form textarea[readonly] {
background: #eee; /* menu hover bg color */
color: #777; /* menu text color */
border-color: #ccc;
}


.pure-form input:focus:invalid,
.pure-form textarea:focus:invalid,
.pure-form select:focus:invalid {
Expand Down

0 comments on commit 7b4ba44

Please sign in to comment.