-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcss-example.css
94 lines (94 loc) · 1.93 KB
/
css-example.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
[class],
[class]::before,
[class]::after { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; }
.h1 { font-size: 24px; }
.h2 { font-size: 20px; }
.mark {
padding: 4px 8px;
border-radius: 4px;
font: 700 20px monospace;
letter-spacing: -0.04em;
}
.hr { margin: 2em 0; }
.sup { color: #767676; }
.details { margin: 1em 0; }
.summary::marker { content: '🔥 '; }
.spec {
grid: auto / minmax(min-content, max-content) minmax(max-content, 1fr);
max-width: 100%;
padding: 16px;
border-radius: 4px;
background: #def;
overflow-x: auto;
}
@media (max-width: 690px) {
.spec { display: grid; }
}
@media (min-width: 691px) {
.spec { display: inline-grid; }
}
.initial { color: blue; }
.spec__term { font-weight: 700; }
.spec__def { white-space: nowrap; }
.list {
display: flex;
flex-flow: wrap;
gap: 0 16px;
list-style: none;
padding-left: 0;
font: 16px monospace;
overflow-x: auto;
}
.list__item {
display: flex;
align-items: center;
}
.list__input {
position: relative;
width: 16px;
height: 16px;
margin: 0 8px;
}
.list__label {
display: inline-flex;
flex: 1;
padding: 4px 4px 4px 32px;
margin-left: -32px;
border-radius: 4px;
letter-spacing: -0.04em;
font-size: 16px;
}
:checked + .list__label {
background: yellow;
font-weight: 700;
}
.fieldset {
display: inline-block;
margin-bottom: 1em;
border: 1px dashed #767676;
border-radius: 4px;
}
.legend { font-weight: 700; }
.demo { overflow-x: auto; }
.item { transition: .2s; }
.declaration::before { content: '{ '; }
.declaration::after { content: ' }'; }
.pre { width: 100%; }
.code {
overflow-x: auto;
border-radius: 4px;
font-size: 16px;
letter-spacing: -0.04em;
}
.code--inline {
background: #ddd;
padding: 4px;
}
.code--block {
display: block;
background: #222;
color: #fff;
padding: 16px;
}
.code--eq { color: yellow; }