Skip to content

Commit

Permalink
Use the general sibling selector for :focus
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Dec 4, 2014
1 parent 65001a6 commit ed8f484
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 ed8f484

Please sign in to comment.