-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
128 lines (102 loc) · 2.21 KB
/
styles.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
:root {
--border-base: solid var(--color-grey-light);
--border-thin: 1px var(--border-base);
--border-thick: var(--space-200) var(--border-base);
--color-grey: hsl(0deg 0% 50%);
--color-grey-dark: hsl(0deg 0% 35%);
--color-grey-light: hsl(0deg 0% 85%);
--measure-min: 45ch;
--measure-target: 65ch;
--space-200: 0.5em;
--space-300: 0.75em;
--space-400: 1em;
--space-500: 2em;
}
body {
padding: var(--space-400);
}
fieldset {
display: grid;
gap: var(--space-400);
grid-template-columns: [input] auto [label] 1fr;
padding-block: var(--space-400);
}
fieldset input {
grid-column: input;
}
fieldset label {
grid-column: label;
}
footer {
border-block-start: var(--border-thin);
padding-block-start: var(--space-400);
text-align: center;
}
form {
display: grid;
gap: var(--space-500);
grid-template-columns: repeat(
auto-fill,
minmax(var(--measure-min), var(--measure-target))
);
justify-content: center;
}
form button {
min-inline-size: 15ch;
}
form p {
display: flex;
flex-direction: column;
}
form section {
--inset: var(--space-500);
border: var(--border-thin);
border-inline-start: var(--border-thick);
border-start-end-radius: var(--space-400);
padding: var(--space-500);
}
header {
border-block-end: var(--border-thin);
padding-block-end: var(--space-400);
text-align: center;
}
h2 {
margin-block: var(--space-500) var(--space-300);
}
h3 {
margin-block-end: var(--space-500);
}
hr {
border: none;
border-block-start: var(--border-thick);
margin-block: var(--space-500);
}
output {
background-color: var(--color-grey-light);
color: var(--color-grey-dark);
font-family: monospace;
padding: var(--space-400);
}
summary > * {
display: inline;
}
[hidden] {
display: none;
}
.flow > * + * {
margin-block-start: var(--space-500);
}
.measure {
max-inline-size: var(--measure-target);
}
.numbered {
counter-reset: numbered;
}
.numbered .numbered__item::before {
color: var(--color-grey);
content: counter(numbered) ". ";
counter-increment: numbered;
}
[data-js-available="false"] .js-only {
display: none;
}