Skip to content

Commit

Permalink
Fix: Added support for new icons in search form
Browse files Browse the repository at this point in the history
  • Loading branch information
acburst committed Jun 26, 2015
1 parent 4bb3fe1 commit 43d43c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bin/materialize.css
Original file line number Diff line number Diff line change
Expand Up @@ -6307,11 +6307,11 @@ input[type=text], input[type=password], input[type=email], input[type=url], inpu
border: 0;
box-shadow: none;
color: #444; }
.input-field input[type=search]:focus + label i, .input-field input[type=search]:focus ~ .mdi-navigation-close {
.input-field input[type=search]:focus + label i, .input-field input[type=search]:focus ~ .mdi-navigation-close, .input-field input[type=search]:focus ~ .material-icons {
color: #444; }
.input-field input[type=search] + label {
left: 1rem; }
.input-field input[type=search] ~ .mdi-navigation-close {
.input-field input[type=search] ~ .mdi-navigation-close, .input-field input[type=search] ~ .material-icons {
position: absolute;
top: 0;
right: 1rem;
Expand Down
4 changes: 2 additions & 2 deletions css/ghpages-materialize.css
Original file line number Diff line number Diff line change
Expand Up @@ -6307,11 +6307,11 @@ input[type=text], input[type=password], input[type=email], input[type=url], inpu
border: 0;
box-shadow: none;
color: #444; }
.input-field input[type=search]:focus + label i, .input-field input[type=search]:focus ~ .mdi-navigation-close {
.input-field input[type=search]:focus + label i, .input-field input[type=search]:focus ~ .mdi-navigation-close, .input-field input[type=search]:focus ~ .material-icons {
color: #444; }
.input-field input[type=search] + label {
left: 1rem; }
.input-field input[type=search] ~ .mdi-navigation-close {
.input-field input[type=search] ~ .mdi-navigation-close, .input-field input[type=search] ~ .material-icons {
position: absolute;
top: 0;
right: 1rem;
Expand Down
6 changes: 4 additions & 2 deletions sass/components/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ textarea.materialize-textarea {
color: #444;

& + label i,
& ~ .mdi-navigation-close {
& ~ .mdi-navigation-close,
& ~ .material-icons {
color: #444;
}
}
Expand All @@ -196,7 +197,8 @@ textarea.materialize-textarea {
left: 1rem;
}

& ~ .mdi-navigation-close {
& ~ .mdi-navigation-close,
& ~ .material-icons {
position: absolute;
top: 0;
right: 1rem;
Expand Down

0 comments on commit 43d43c2

Please sign in to comment.