Skip to content

Commit 7b6393f

Browse files
Compile
1 parent 69e88cc commit 7b6393f

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

dist/float-label.css

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.has-float-label {
2+
display: block;
23
position: relative; }
3-
.has-float-label label {
4+
.has-float-label label, .has-float-label > span {
45
position: absolute;
56
left: 0;
67
top: 0;
@@ -13,27 +14,27 @@
1314
-webkit-appearance: none;
1415
-moz-appearance: none;
1516
appearance: none; }
16-
.has-float-label .form-control {
17+
.has-float-label input, .has-float-label select {
1718
font-size: inherit;
1819
padding-top: 1em;
1920
margin-bottom: 2px;
2021
border: 0;
2122
border-radius: 0;
22-
background: transparent;
2323
border-bottom: 2px solid rgba(0, 0, 0, 0.1); }
24-
.has-float-label .form-control::-webkit-input-placeholder {
24+
.has-float-label input::-webkit-input-placeholder, .has-float-label select::-webkit-input-placeholder {
2525
opacity: 1;
2626
-webkit-transition: all .2s;
2727
transition: all .2s; }
28-
.has-float-label .form-control:placeholder-shown:not(:focus)::-webkit-input-placeholder {
28+
.has-float-label input:placeholder-shown:not(:focus)::-webkit-input-placeholder, .has-float-label select:placeholder-shown:not(:focus)::-webkit-input-placeholder {
2929
opacity: 0; }
30-
.has-float-label .form-control:placeholder-shown:not(:focus) + label {
30+
.has-float-label input:placeholder-shown:not(:focus) + *, .has-float-label select:placeholder-shown:not(:focus) + * {
3131
font-size: 150%;
3232
opacity: .5;
3333
top: .25em; }
34-
.has-float-label .form-control:focus {
34+
.has-float-label input:focus, .has-float-label select:focus {
3535
outline: none;
3636
border-color: rgba(0, 0, 0, 0.5); }
37-
38-
.input-group .has-float-label {
39-
display: inline-block; }
37+
.has-float-label select {
38+
padding-right: 1em;
39+
background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.5em bottom 0.25em;
40+
background-size: 8px 10px; }

dist/float-label.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)