-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamples.css
More file actions
56 lines (55 loc) · 930 Bytes
/
Copy pathexamples.css
File metadata and controls
56 lines (55 loc) · 930 Bytes
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
* {
box-sizing: border-box;
}
html {
color-scheme: light dark;
}
body {
font-family: monospace;
line-height: 1.5;
width: 30rem;
max-width: 100%;
margin: auto;
padding: 0 1rem;
}
p {
margin: 0 0 1rem 0;
}
input:not([type="image" i], [type="range" i], [type="checkbox" i], [type="radio" i]),
fieldset {
appearance: none;
font-family: inherit;
font-size: inherit;
padding: .5rem;
width: 100%;
border: 1px solid;
}
fieldset {
margin: 0 0 1rem 0;
}
table {
width: 100%;
margin: .5rem 0;
border: 1px solid;
border-collapse: collapse;
}
caption {
font-weight: bold;
}
caption, td, th {
text-align: left;
padding: .25rem .5rem;
}
:is(th, td):last-child {
text-align: right;
}
div:has(> label + input) {
display: grid;
grid-template-columns: 11rem 1fr;
gap: .5rem;
place-items: center start;
margin: 0 0 1rem 0;
}
div:has(> label + input + small) {
grid-template-columns: 1fr;
}