-
Notifications
You must be signed in to change notification settings - Fork 23
/
floating-labels.css
55 lines (49 loc) · 1.16 KB
/
floating-labels.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.floating-label-form-group {
border-bottom: 1px solid #ccc;
margin-bottom: 0;
position: relative;
padding-bottom: 0.5em;
}
.floating-label-form-group input,
.floating-label-form-group textarea {
background: none;
border: none;
border-radius: 0;
padding-left: 0;
padding-right: 0;
box-shadow: none !important;
position: relative;
z-index: 1;
font-size: 1.5em;
resize: none;
}
.floating-label-form-group label {
display: block;
position: relative;
top: 2em;
opacity: 0;
z-index: 0;
font-size: 0.85em;
line-height: 1.764705882em;
vertical-align: middle;
vertical-align: baseline;
margin: 0;
-webkit-transition: top 0.5s ease, opacity 0.5s ease;
-moz-transition: top 0.5s ease, opacity 0.5s ease;
-ms-transition: top 0.5s ease, opacity 0.5s ease;
transition: top 0.5s ease, opacity 0.5s ease;
}
.floating-label-form-group:not(:first-child) {
border-left: 1px solid #ccc;
padding-left: 14px;
}
.floating-label-form-group-with-value label {
top: 0;
opacity: 1;
}
.floating-label-form-group-with-focus label {
color: blue;
}
form .row:first-child .floating-label-form-group {
border-top: 1px solid #ccc;
}