forked from chrisdavies/jquery.placeholderlabels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.css
41 lines (37 loc) · 817 Bytes
/
sample.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
/* This is the .less I need for my project. Mileage may vary. */
.input-wrapper {
position: relative;
display: -moz-inline-box;
display: inline-block;
*display: inline; /* ie6&7 */
zoom: 1;
background: #FFF;
vertical-align: top;
input,
textarea {
position: relative;
z-index: 2;
background: transparent;
margin: 0;
}
label {
z-index: 1;
position: absolute;
top: 50%;
left: 0;
height: 1em;
margin-top: -.5em;
text-align: left;
font-size: 1em;
color: #AAA;
overflow: hidden;
padding-left: 14px;
cursor: text;
}
&.input-wrapper.focus label {
opacity: 0.6;
}
&.input-wrapper.filled label {
display: none;
}
}