File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
site/content/docs/5.0/examples/floating-labels Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ body {
23
23
margin-bottom : 1rem ;
24
24
}
25
25
26
- .form-label-group > input ,
27
- .form-label-group > label {
26
+ .form-label-group input ,
27
+ .form-label-group label {
28
28
height : 3.125rem ;
29
29
padding : .75rem ;
30
30
}
31
31
32
- .form-label-group > label {
32
+ .form-label-group label {
33
33
position : absolute;
34
34
top : 0 ;
35
35
left : 0 ;
@@ -47,11 +47,11 @@ body {
47
47
color : transparent;
48
48
}
49
49
50
- .form-label-group input ::-ms-input -placeholder {
50
+ .form-label-group input ::-moz -placeholder {
51
51
color : transparent;
52
52
}
53
53
54
- .form-label-group input ::-moz -placeholder {
54
+ .form-label-group input ::-ms-input -placeholder {
55
55
color : transparent;
56
56
}
57
57
@@ -86,9 +86,15 @@ body {
86
86
/* Fallback for Edge
87
87
-------------------------------------------------- */
88
88
@supports (-ms-ime-align : auto) {
89
- .form-label-group > label {
90
- display : none;
89
+ .form-label-group {
90
+ display : flex;
91
+ flex-direction : column-reverse;
91
92
}
93
+
94
+ .form-label-group label {
95
+ position : static;
96
+ }
97
+
92
98
.form-label-group input ::-ms-input-placeholder {
93
99
color : # 777 ;
94
100
}
You can’t perform that action at this time.
0 commit comments