-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyle.css
229 lines (194 loc) · 3.24 KB
/
style.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
---
---
/* Base styles based on https://github.com/tailwindlabs/tailwindcss-typography released under a MIT license */
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@import "css/pygments.css";
* {
@apply box-border;
}
main {
overflow-x: hidden;
}
main h1, main h2, main h3, main h4 {
@apply font-display;
@apply font-bold;
}
main h1 {
@apply text-4xl;
@apply mt-0;
@apply mb-3;
line-height: 1.1;
}
main h2 {
@apply text-2xl;
@apply mt-4;
@apply mb-2;
line-height: 1.33;
}
main h3 {
@apply text-xl;
@apply mt-3;
@apply mb-1;
line-height: 1.6;
}
main h4 {
@apply mt-3;
@apply mb-1;
@apply font-bold;
line-height: 1.5;
}
main figure {
@apply my-4;
}
main figure > * {
@apply my-0;
}
main figure figcaption {
@apply text-gray-500;
@apply text-sm;
@apply mt-2;
line-height: 1.43;
}
main figure.code {
@apply overflow-x-auto;
@apply my-2;
}
main figure.code .hll {
@apply p-2;
@apply rounded-lg;
@apply bg-gray-800;
}
main h2 code {
@apply text-2xl;
}
main h3 code {
@apply text-xl;
}
main img, main video {
@apply my-4;
}
main pre {
@apply text-sm;
@apply text-gray-200;
@apply bg-gray-800;
@apply overflow-x-auto;
@apply rounded;
@apply px-3;
@apply my-2;
@apply font-mono;
line-height: 1.71;
}
main code,
main kbd {
@apply text-sm;
@apply text-gray-200;
@apply bg-gray-800;
@apply rounded;
@apply px-2;
@apply py-1;
@apply font-mono;
}
main pre code {
@apply bg-transparent;
@apply border-none;
@apply rounded-none;
@apply p-0;
font-weight: 400;
color: inherit;
font-size: inherit;
font-family: inherit;
line-height: inherit;
}
main div.table-container {
@apply overflow-x-auto;
}
main div.table-container table {
@apply table-auto;
@apply border-collapse;
}
main div.table-container table thead th {
@apply px-4;
@apply py-2;
}
main div.table-container table tbody td {
@apply px-4;
@apply py-2;
@apply border;
@apply border-gray-400;
}
main div.table-container table tbody tr:nth-child(even) {
@apply bg-gray-100;
}
article p:first-of-type {
@apply mt-2;
}
article p {
@apply mb-2;
}
main a {
@apply text-gray-900;
@apply underline;
text-decoration-skip: ink;
text-underline-offset: 2px;
}
main h1 a,
main h2 a,
main h3 a,
main h4 a {
@apply no-underline;
}
main a:hover {
@apply text-purple-700;
}
main strong {
@apply font-bold;
}
main ol {
counter-reset: list-counter;
}
main ol > li {
counter-increment: list-counter;
}
main ol > li,
main ul > li {
@apply relative;
@apply pl-6;
}
main ol > li::before {
@apply absolute;
@apply text-gray-400;
@apply font-semibold;
@apply left-0;
content: counter(list-counter) ".";
}
main ul > li::before {
@apply absolute;
@apply bg-gray-400;
@apply w-2;
@apply h-2;
top: 0.5em;
left: 0.25em;
border-radius: 50%;
content: "";
}
main hr {
@apply border-gray-200;
@apply border-t;
}
main blockquote {
@apply italic;
@apply text-gray-700;
@apply border-gray-200;
@apply my-2;
@apply pl-4;
border-left-width: 0.25rem;
quotes: "\201C""\201D""\2018""\2019";
}
main blockquote p:first-of-type::before {
content: open-quote;
}
main blockquote p:last-of-type::after {
content: close-quote;
}