-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
79 lines (61 loc) · 1.16 KB
/
index.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
@tailwind base;
:root {
--c-text: #333;
--c-background: #fff;
}
@media (prefers-color-scheme: dark) {
:root {
--c-text: #999;
--c-background: #1a1919;
}
}
body {
color: var(--c-text);
background-color: var(--c-background);
transition: background-color 0.3s ease;
}
.dark-mode-checkbox:checked ~ body {
--c-text: var(--c-dark-text);
--c-background: var(--c-dark-background);
}
blockquote {
@apply ml-4 pl-4 border-gray-400 border-l-4 italic;
}
figcaption {
@apply text-center italic py-2;
}
ul {
@apply list-inside list-disc;
}
li:not(:last-of-type) {
@apply mb-4;
}
/* Start purging... */
@tailwind components;
/* Stop purging. */
/* Write you own custom component styles here */
/* Start purging... */
@tailwind utilities;
/* Stop purging. */
/* Your own custom utilities */
.markdown {
@apply text-lg leading-relaxed;
}
.markdown p,
.markdown ul,
.markdown ol,
.markdown blockquote {
@apply my-6;
}
.markdown h2 {
@apply text-3xl mt-12 mb-4 leading-snug;
}
.markdown h3 {
@apply text-2xl mt-8 mb-4 leading-snug;
}
.markdown a {
@apply underline;
}
.markdown :not(pre) > code {
@apply bg-gray-400 px-1 rounded text-gray-900;
}