-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathforms.pcss
More file actions
76 lines (63 loc) · 1.22 KB
/
forms.pcss
File metadata and controls
76 lines (63 loc) · 1.22 KB
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
input:not([type="submit"]),
select,
textarea {
width: 100%;
font-size: 1;
min-height: 1.5lh;
&[disabled] {
background-color: var(--color-state-muted);
cursor: not-allowed;
border: 0;
}
}
input:not([type="submit"]):not([type="range"]),
select,
textarea {
border: 1px solid var(--color-base-lines);
padding: 0 0.75em;
}
input[type="checkbox"],
input[type="file"],
input[type="image"],
input[type="radio"] {
height: auto;
width: auto;
}
input[type="checkbox"],
input[type="radio"] {
line-height: normal;
padding: 0;
vertical-align: middle;
}
input[type="file"] {
border: none;
line-height: 1lh;
padding: 0;
}
select {
background-color: transparent;
padding-left: 0.5em;
width: auto;
min-width: 10em;
height: 1.5lh;
&[disabled] { color: var(--color-text-secondary); }
&[multiple] {
height: auto;
width: 100%;
padding: 0;
}
&::-ms-expand { display: none; }
&::-ms-value { color: currentColor; }
option { padding: 0 0.75em }
}
label {
display: block;
font-size: 1;
line-height: 1.5lh;
}
/* Labels are inline with their checkbox and radio elements */
input[type="checkbox"] + label,
input[type="radio"] + label {
display: inline-block;
margin-left: 0.5em;
}