Skip to content

Commit

Permalink
Merge pull request #114 from gpbl/hotfix/safari-input-focus
Browse files Browse the repository at this point in the history
Use the general sibling selector for input:focus
  • Loading branch information
Hai Nguyen committed Dec 4, 2014
2 parents 3581837 + ed8f484 commit 64fedb3
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/less/components/input.less
Original file line number Diff line number Diff line change
Expand Up @@ -106,31 +106,27 @@
&:focus, &:valid {
outline: none;
box-shadow: none;
&+.mui-input-placeholder {
&~.mui-input-placeholder {
color: blue;
font-size: @input-placeholder-size !important;
font-weight: 300;
top: -32px;
.ease-out;

&+.mui-input-highlight {
}
&~.mui-input-highlight {
width: 0;
background-color: blue;
.ease-out;

&+.mui-input-bar {

&::before, &::after {
background-color: blue;
width: 50%;
}

&+.mui-input-description {
display: block;
}
}
}
&~.mui-input-bar {
&::before, &::after {
background-color: blue;
width: 50%;
}
}
&~.mui-input-description {
display: block;
}
}

&:not(:focus):valid {
Expand Down

0 comments on commit 64fedb3

Please sign in to comment.