Skip to content

Commit 64fedb3

Browse files
author
Hai Nguyen
committed
Merge pull request #114 from gpbl/hotfix/safari-input-focus
Use the general sibling selector for input:focus
2 parents 3581837 + ed8f484 commit 64fedb3

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

src/less/components/input.less

+11-15
Original file line numberDiff line numberDiff line change
@@ -106,31 +106,27 @@
106106
&:focus, &:valid {
107107
outline: none;
108108
box-shadow: none;
109-
&+.mui-input-placeholder {
109+
&~.mui-input-placeholder {
110110
color: blue;
111111
font-size: @input-placeholder-size !important;
112112
font-weight: 300;
113113
top: -32px;
114114
.ease-out;
115-
116-
&+.mui-input-highlight {
115+
}
116+
&~.mui-input-highlight {
117117
width: 0;
118118
background-color: blue;
119119
.ease-out;
120-
121-
&+.mui-input-bar {
122-
123-
&::before, &::after {
124-
background-color: blue;
125-
width: 50%;
126-
}
127-
128-
&+.mui-input-description {
129-
display: block;
130-
}
131-
}
120+
}
121+
&~.mui-input-bar {
122+
&::before, &::after {
123+
background-color: blue;
124+
width: 50%;
132125
}
133126
}
127+
&~.mui-input-description {
128+
display: block;
129+
}
134130
}
135131

136132
&:not(:focus):valid {

0 commit comments

Comments
 (0)