Skip to content

Commit 63c4882

Browse files
committed
Compile
1 parent cb9b903 commit 63c4882

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

dist/float-label.css

+30-5
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,53 @@
1717
-moz-appearance: none;
1818
appearance: none;
1919
}
20-
.has-float-label input, .has-float-label select {
20+
.has-float-label textarea {
21+
width: 100%;
22+
}
23+
.has-float-label input, .has-float-label select, .has-float-label textarea {
2124
font-size: inherit;
2225
padding-top: 1em;
2326
margin-bottom: 2px;
2427
border: 0;
2528
border-radius: 0;
2629
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
2730
}
28-
.has-float-label input::-webkit-input-placeholder, .has-float-label select::-webkit-input-placeholder {
31+
.has-float-label input::-webkit-input-placeholder, .has-float-label select::-webkit-input-placeholder, .has-float-label textarea::-webkit-input-placeholder {
2932
opacity: 1;
3033
-webkit-transition: all .2s;
3134
transition: all .2s;
3235
}
33-
.has-float-label input:placeholder-shown:not(:focus)::-webkit-input-placeholder, .has-float-label select:placeholder-shown:not(:focus)::-webkit-input-placeholder {
36+
.has-float-label input::-moz-placeholder, .has-float-label select::-moz-placeholder, .has-float-label textarea::-moz-placeholder {
37+
opacity: 1;
38+
transition: all .2s;
39+
}
40+
.has-float-label input:-ms-input-placeholder, .has-float-label select:-ms-input-placeholder, .has-float-label textarea:-ms-input-placeholder {
41+
opacity: 1;
42+
transition: all .2s;
43+
}
44+
.has-float-label input::placeholder, .has-float-label select::placeholder, .has-float-label textarea::placeholder {
45+
opacity: 1;
46+
-webkit-transition: all .2s;
47+
transition: all .2s;
48+
}
49+
.has-float-label input:placeholder-shown:not(:focus)::-webkit-input-placeholder, .has-float-label select:placeholder-shown:not(:focus)::-webkit-input-placeholder, .has-float-label textarea:placeholder-shown:not(:focus)::-webkit-input-placeholder {
50+
opacity: 0;
51+
}
52+
.has-float-label input:placeholder-shown:not(:focus)::-moz-placeholder, .has-float-label select:placeholder-shown:not(:focus)::-moz-placeholder, .has-float-label textarea:placeholder-shown:not(:focus)::-moz-placeholder {
53+
opacity: 0;
54+
}
55+
.has-float-label input:placeholder-shown:not(:focus):-ms-input-placeholder, .has-float-label select:placeholder-shown:not(:focus):-ms-input-placeholder, .has-float-label textarea:placeholder-shown:not(:focus):-ms-input-placeholder {
56+
opacity: 0;
57+
}
58+
.has-float-label input:placeholder-shown:not(:focus)::placeholder, .has-float-label select:placeholder-shown:not(:focus)::placeholder, .has-float-label textarea:placeholder-shown:not(:focus)::placeholder {
3459
opacity: 0;
3560
}
36-
.has-float-label input:placeholder-shown:not(:focus) + *, .has-float-label select:placeholder-shown:not(:focus) + * {
61+
.has-float-label input:placeholder-shown:not(:focus) + *, .has-float-label select:placeholder-shown:not(:focus) + *, .has-float-label textarea:placeholder-shown:not(:focus) + * {
3762
font-size: 150%;
3863
opacity: .5;
3964
top: .25em;
4065
}
41-
.has-float-label input:focus, .has-float-label select:focus {
66+
.has-float-label input:focus, .has-float-label select:focus, .has-float-label textarea:focus {
4267
outline: none;
4368
border-color: rgba(0, 0, 0, 0.5);
4469
}

dist/float-label.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)