-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path__sensible.css
48 lines (44 loc) · 985 Bytes
/
__sensible.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
/* pico-sensible */
/* @todo add description of what this will achieve */
:root {
--form-spacing: calc(var(--spacing) / 2);
--form-input-max-length: 15;
--form-font-scale: 0.5;
}
/* max-width */
form.__sensible input:not([type=checkbox],
form.__sensible [type=radio]),
form.__sensible select,
form.__sensible textarea {
max-width: calc(var(--font-size) * var(--form-input-max-length));
}
/* spacing between elements */
form.__sensible > * {
font-size: var(--font-size);
margin-left: var(--form-spacing);
margin-right: var(--form-spacing);
}
form.__sensible {
margin-left: calc(var(--form-spacing) * -1);
margin-right: calc(var(--form-spacing) * -1);
}
@media (min-width: 576px) {
form.__sensible {
--font-size: 17px;
}
}
@media (min-width: 768px) {
form.__sensible {
--font-size: 17px;
}
}
@media (min-width: 992px) {
form.__sensible {
--font-size: 18px;
}
}
@media (min-width: 1200px) {
form.__sensible {
--font-size: 18px;
}
}