blob: 3d7cab3fea0bed5a32c5f693ebd9a6996be43eab (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
fieldset
{
position: relative;
}
.input-reset {
-webkit-appearance: none;
-moz-appearance: none;
}
.button-reset::-moz-focus-inner,
.input-reset::-moz-focus-inner {
border: 0;
padding: 0;
}
input, textarea {
background-color: var(--grey-2);
border-radius: var(--border-radius);
padding: 12px 16px 10px;
font-size: var(--spacing-medium);
line-height: 1.25;
position: relative;
transition: var(--hover-transition);
z-index: 2;
&:focus {
background-color: var(--white);
}
&:focus + label {
opacity: 1;
pointer-events: auto;
transform: translateY(-120%);
}
}
::-webkit-input-placeholder {
color: var(--black);
font-size: var(--spacing-medium);
line-height: normal;
}
:-moz-placeholder {
color: var(--black);
font-size: var(--spacing-medium);
line-height: normal;
}
::-moz-placeholder {
color: var(--black);
font-size: var(--spacing-medium);
line-height: normal;
}
:-ms-input-placeholder {
color: var(--black);
font-size: var(--spacing-medium);
line-height: normal;
}
label
{
font-size: .875rem;
font-weight: 800;
color: var(--primary);
background-color: var(--grey-2);
border-radius: var(--border-radius);
padding: var(--spacing-extra-small) var(--spacing-small);
position: absolute;
left: 0;
top: 0;
pointer-events: none;
opacity: 0;
line-height: 1;
transition: var(--hover-transition);
z-index: 2;
}
|