-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
203 lines (186 loc) · 3.03 KB
/
Copy pathstyle.css
File metadata and controls
203 lines (186 loc) · 3.03 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
:root {
--text: hsl(0 0% 10%);
--bg: hsl(0 0% 100%);
--tint: hsl(220 14% 96%);
--muted: hsl(216 13% 84%);
--link: hsl(221 83% 53%);
--mark: hsl(46 87% 50%);
}
@media (prefers-color-scheme: dark) {
:root {
--text: hsl(220 13% 91%);
--bg: hsl(211 74% 10%);
--tint: hsl(215 28% 17%);
--muted: hsl(217 19% 27%);
--link: hsl(213 94% 68%);
--mark: hsl(46 87% 62%);
}
}
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
font-family:
system-ui,
-apple-system,
sans-serif;
font-size: 18px;
line-height: 1.6;
color: var(--text);
background: var(--bg);
max-width: 65ch;
margin: 0 auto;
padding: 1.5rem 1rem;
}
header {
display: flex;
align-items: flex-start;
gap: 1.5rem;
margin-top: 1.5rem;
}
header hgroup {
margin: 0;
}
header h1 {
margin-top: 0;
}
header p {
margin-bottom: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
line-height: 1.2;
margin: 1.5rem 0 0.5rem;
font-weight: 700;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.4rem;
}
h2 small {
font-size: 1rem;
color: var(--muted);
white-space: nowrap;
}
h3 {
font-size: 1.1rem;
}
p,
ul,
ol,
blockquote,
pre,
table {
margin: 0 0 1rem;
}
a {
color: var(--link);
text-underline-offset: 3px;
}
ul,
ol {
padding-left: 1.5rem;
}
li {
margin-bottom: 0.3rem;
}
blockquote {
border-left: 3px solid var(--muted);
margin: 1.25rem 0;
padding: 0.25rem 0 0.25rem 1rem;
color: var(--muted);
}
code {
background: var(--tint);
border-radius: 4px;
padding: 1px 5px;
font-size: 0.8em;
font-family: ui-monospace, monospace;
}
pre {
background: var(--tint);
border-radius: 8px;
padding: 0;
overflow-x: auto;
line-height: 1.4;
}
pre > code {
background: none;
border-radius: 8px;
display: block;
padding: 1rem;
}
hr {
border: none;
border-top: 1px solid var(--muted);
margin: 2rem 0;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 0.95rem;
}
th {
text-align: left;
border-bottom: 2px solid var(--muted);
padding: 6px 10px;
}
td {
border-bottom: 1px solid var(--muted);
padding: 6px 10px;
}
img {
max-width: 100%;
border-radius: 6px;
display: block;
}
mark {
color: var(--mark);
background: transparent;
}
codapi-toolbar {
font-size: 1rem;
}
codapi-toolbar > button {
background: none;
border: 1px solid var(--link);
color: var(--link);
font-size: 1rem;
padding: 0.25rem 0.5rem;
cursor: pointer;
}
codapi-toolbar > button:hover {
background: var(--link);
color: var(--bg);
}
codapi-toolbar > a,
codapi-output > a {
text-decoration: none;
}
.logo {
flex: none;
margin-left: auto;
margin-right: 2rem;
border-radius: 0;
}
@media (max-width: 480px) {
pre {
margin-left: -1rem;
margin-right: -1rem;
border-radius: 0;
}
pre > code {
border-radius: 0;
}
.logo {
margin-right: 0;
}
}