-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.css
416 lines (351 loc) · 7.37 KB
/
tailwind.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
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
@tailwind base;
@tailwind components;
@tailwind utilities;
::selection {
background-color: #47a3f3;
color: #fefefe;
}
html {
min-width: 360px;
scroll-behavior: smooth;
@apply bg-blue-50 dark:bg-gray-900 h-full;
display: flex;
flex-direction: column;
min-height: 100vh;
}
html.light {
@apply bg-blue-50;
}
html.dark {
@apply bg-gray-900;
}
/* https://seek-oss.github.io/capsize/ */
.capsize::before {
content: '';
margin-bottom: -0.098em;
display: table;
}
.capsize::after {
content: '';
margin-top: -0.219em;
display: table;
}
p {
@apply leading-loose;
}
/*
html {
--background-colour: white;
background-color: var(--background-colour);
}
html.dark {
--background-colour: black;
}
.dark-component {
color: white;
}
.light-component {
color: black;
}
*/
.skip-nav {
@apply absolute px-4 py-3 transition-transform duration-200 transform -translate-y-12 -left-1/4 focus:top-4 focus:translate-y-3 -top-8;
}
#skip {
scroll-margin-top: 1.125rem;
}
/*
text-gray-800 dark:text-gray-100
*/
pre {
@apply w-full max-w-full overflow-auto;
}
p {
@apply my-2;
}
ul, li {
@apply my-2;
}
h1 {
@apply my-2 text-3xl font-bold tracking-tight text-black md:text-5xl dark:text-white;
}
h2 {
@apply my-2 text-2xl font-bold tracking-tight text-black md:text-2xl dark:text-white;
}
h3 {
@apply my-2 text-xl font-bold tracking-tight text-black md:text-xl dark:text-white;
}
h4 {
@apply my-2 text-lg font-bold tracking-tight text-black md:text-lg dark:text-white;
}
h5 {
@apply my-2 text-lg font-medium tracking-tight text-black md:text-lg dark:text-white;
}
h6 {
@apply my-2 text-lg tracking-tight text-black md:text-lg dark:text-white;
}
@supports not (backdrop-filter: none) {
.sticky-nav {
backdrop-filter: none;
@apply bg-opacity-100;
}
}
.prose .anchor {
@apply absolute invisible no-underline;
margin-left: -1em;
padding-right: 0.5em;
width: 80%;
max-width: 700px;
cursor: pointer;
}
.prose blockquote {
@apply p-4 italic border-l-4 text-gray-600 border-gray-500 dark:border-gray-200;
}
.prose p {
@apply mb-2;
}
.anchor:hover {
@apply visible;
}
.prose a {
@apply transition-all text-blue-500;
}
.prose .anchor:after {
@apply text-gray-300 dark:text-gray-700;
content: '#';
}
.prose *:hover > .anchor {
@apply visible;
}
.prose img {
/* Don't apply styles to next/image */
@apply m-0;
}
.prose > :first-child {
/* Override removing top margin, causing layout shift */
margin-top: 1.25em !important;
margin-bottom: 1.25em !important;
}
.rehype-code-title {
@apply px-5 py-3 font-mono text-sm font-bold text-gray-800 bg-gray-200 border border-b-0 border-gray-200 rounded-t-lg dark:text-gray-200 dark:border-gray-700 dark:bg-gray-800;
}
.rehype-code-title + pre {
@apply mt-0 rounded-t-none;
}
.highlight-line {
@apply block px-4 -mx-4 bg-gray-100 border-l-4 border-blue-500 dark:bg-gray-800;
}
/*
<callout-info>
</callout-info>
*/
.prose callout-muted a,
.prose callout-info a,
.prose callout-warning a,
.prose callout-danger a,
.prose callout-success a {
text-decoration: underline;
}
.prose callout-muted p,
.prose callout-info p,
.prose callout-warning p,
.prose callout-danger p,
.prose callout-success p {
margin-bottom: 0;
}
.prose callout-muted,
.prose callout-info,
.prose callout-warning,
.prose callout-danger,
.prose callout-success {
width: 100%;
margin-top: 0;
margin-bottom: 2rem;
}
.prose callout-muted,
.prose callout-info,
.prose callout-warning,
.prose callout-danger,
.prose callout-success {
display: block;
border-left: solid 4px;
padding: 0.5rem 1rem;
position: relative;
border-top-right-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
}
.prose callout-muted,
.prose callout-info,
.prose callout-warning,
.prose callout-danger,
.prose callout-success,
.prose callout-muted *,
.prose callout-info *,
.prose callout-warning *,
.prose callout-danger *,
.prose callout-success * {
@apply text-lg;
/*font-size: 1.2rem;*/
}
.prose callout-muted.aside,
.prose callout-info.aside,
.prose callout-warning.aside,
.prose callout-danger.aside,
.prose callout-success.aside,
.prose callout-muted.aside *,
.prose callout-info.aside *,
.prose callout-warning.aside *,
.prose callout-danger.aside *,
.prose callout-success.aside * {
@apply text-base;
/*font-size: 0.875rem;*/
}
.prose callout-muted.important,
.prose callout-info.important,
.prose callout-warning.important,
.prose callout-danger.important,
.prose callout-success.important,
.prose callout-muted.important *,
.prose callout-info.important *,
.prose callout-warning.important *,
.prose callout-danger.important *,
.prose callout-success.important * {
@apply text-lg;
/*
font-size: 1.4rem;
font-weight: bold;
*/
}
.prose callout-muted:before,
.prose callout-info:before,
.prose callout-warning:before,
.prose callout-danger:before,
.prose callout-success:before {
border-top-right-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
content: '';
position: absolute;
inset: 0;
opacity: 0.1;
pointer-events: none;
}
/* the warning yellow is really inaccessible in light mode, so we have a special case for light mode */
.light .prose callout-warning,
.light .prose callout-warning ol > li:before {
color: #676000;
}
.light .prose callout-warning:before {
background: #ffd800;
}
.prose callout-warning,
.prose callout-warning ol > li:before {
color: #ffd644;
}
.prose callout-warning:before {
background: #ffd644;
}
/* the muted gray is really inaccessible in light mode, so we have a special case for light mode */
.light .prose callout-muted,
.light .prose callout-muted ol > li:before {
color: #4c4b5e;
}
.light .prose callout-muted:before {
background: #3c3e4d;
}
.prose callout-muted,
.prose callout-muted ol > li:before {
color: #b9b9c3;
}
.prose callout-muted:before {
background: #3c3e4d;
}
.prose callout-info,
.prose callout-info ol > li:before {
color: #4b96ff;
}
.prose callout-info:before {
background: #4b96ff;
}
.prose callout-danger,
.prose callout-danger ol > li:before {
color: #ff4545;
}
.prose callout-danger:before {
background: #ff4545;
}
.prose callout-success,
.prose callout-success ol > li:before {
color: #30c85e;
}
.prose callout-success:before {
background: #30c85e;
}
/* Remove Safari input shadow on mobile */
input[type='text'],
input[type='email'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.metric-card > a {
@apply no-underline;
}
.metric-card > p {
@apply my-2;
}
.step > h3 {
@apply my-0;
}
.prose .tweet a {
text-decoration: inherit;
font-weight: inherit;
}
.prose table {
display: block;
max-width: fit-content;
overflow-x: auto;
white-space: nowrap;
}
.prose .callout > p {
margin: 0 !important;
}
pre[class*='language-'] {
color: theme('colors.slate.50');
}
.token.tag,
.token.class-name,
.token.selector,
.token.selector .class,
.token.selector.class,
.token.function {
color: theme('colors.pink.400');
}
.token.attr-name,
.token.keyword,
.token.rule,
.token.pseudo-class,
.token.important {
color: theme('colors.slate.300');
}
.token.module {
color: theme('colors.pink.400');
}
.token.attr-value,
.token.class,
.token.string,
.token.property {
color: theme('colors.sky.300');
}
.token.punctuation,
.token.attr-equals {
color: theme('colors.slate.500');
}
.token.unit,
.language-css .token.function {
color: theme('colors.teal.200');
}
.token.comment,
.token.operator,
.token.combinator {
color: theme('colors.slate.400');
}