-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathprose.css
409 lines (384 loc) · 8.45 KB
/
prose.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
@layer utilities {
.prose {
max-width: 75ch;
color: theme('colors.gray.900');
}
.prose > div:first-child > hr:first-child {
display: none;
}
.prose [class~='lead'] {
margin-top: 1.2em;
margin-bottom: 1.2em;
@apply text-justify text-gray-800 font-serif text-base font-bold tracking-wide lg:text-lg;
text-indent: 0;
}
.prose a {
@apply text-blue-500 no-underline font-bold tracking-tight word-break-break-word;
}
.prose strong {
color: theme('colors.gray.900');
/* margin: 0 -0.4em;
padding: 0.1em 0.4em;
border-radius: 0.8em 0.3em;
background: transparent;
background-image: linear-gradient(
to right,
rgba(255, 225, 0, 0.1),
rgba(255, 225, 0, 0.7) 4%,
rgba(255, 225, 0, 0.3)
);
-webkit-box-decoration-break: clone;
box-decoration-break: clone; */
background: linear-gradient(
104deg,
rgba(130, 255, 173, 0) 0.9%,
rgba(130, 255, 173, 1.25) 2.4%,
rgba(130, 255, 173, 0.5) 5.8%,
rgba(130, 255, 173, 0.1) 93%,
rgba(130, 255, 173, 0.7) 96%,
rgba(130, 255, 1732, 0) 98%
),
linear-gradient(183deg, rgba(130, 255, 173, 0) 0%, rgba(130, 255, 173, 0.3) 7.9%, rgba(130, 255, 173, 0) 15%);
padding: 0.1em 0.4em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
margin: 0;
border-radius: 7.5px;
text-shadow: -12px 12px 9.8px rgba(130, 255, 173, 0.7), 21px -18.1px 7.3px rgba(255, 255, 255, 0),
-18.1px -27.3px 30px rgba(255, 255, 255, 1);
}
.prose ol > li {
position: relative;
padding-left: 1.75em;
@apply before:counter-result before:text-stroke before:top-0 my-0 before:font-sans before:text-4xl before:proportional-nums before:font-semibold before:leading-none;
}
.prose ul > li {
position: relative;
padding-left: 1.75em;
}
.prose ul > li:before {
content: '';
position: absolute;
background-color: #bababa;
border-radius: 50%;
width: 0.375em;
height: 0.375em;
top: calc(0.875em - 0.1875em);
left: 0.25em;
}
/* .prose hr {
border-color: #f0f0f0;
border-top-width: 1px;
margin-top: 3em;
margin-bottom: 3em;
} */
.prose blockquote,
.prose p.important {
margin-top: 1.6em;
margin-bottom: 1.6em;
quotes: auto;
@apply indent-0 relative text-transparent bg-no-repeat bg-clip-text;
@apply -ml-7 -mr-7 pl-8 pr-8 py-4 border-b border-l-0 border-r-0 border-t border-b-blue-500 border-t-pink-500 sm:-ml-6 sm:-mr-32 sm:pr-32 md:-mr-32 lg:-mr-12 lg:pr-20;
&,
&::before,
&::after {
@apply bg-gradient-to-t from-blue-500 to-pink-500;
}
&::before {
content: '';
@apply absolute left-0 top-0 block w-2 h-full;
}
&::after {
@apply absolute right-0 top-0 leading-tight text-7xl font-serif font-black text-transparent bg-no-repeat bg-clip-text;
}
& br {
content: '';
@apply my-[1ex] block;
}
}
.prose blockquote {
&::after {
content: '”';
}
}
.prose p.important {
@apply indent-0;
&::after {
content: '!';
@apply font-sans text-6xl -top-2 right-4;
}
}
.prose blockquote p:first-of-type:before {
content: open-quote;
}
.prose blockquote p:last-of-type:after {
content: close-quote;
}
.prose blockquote p,
.prose ol p,
.prose ul p {
@apply text-left;
text-indent: 0;
hyphens: none;
-ms-hyphens: none;
-moz-hyphens: none;
-webkit-hyphens: none;
}
.prose h1 {
color: theme('colors.gray.900');
font-weight: 800;
font-size: 2.25em;
margin-top: 0;
margin-bottom: 0.8888889em;
line-height: 1.1111111;
}
.prose h2 {
color: theme('colors.gray.900');
font-weight: 700;
font-size: 1.5em;
margin-top: 2em;
margin-bottom: 1em;
line-height: 1.3333333;
}
.prose h3 {
font-size: 1.25em;
margin-top: 1.6em;
margin-bottom: 0.6em;
line-height: 1.6;
}
.prose h3,
.prose h4 {
color: theme('colors.gray.900');
font-weight: 600;
}
.prose h4 {
margin-top: 1.5em;
margin-bottom: 0.5em;
line-height: 1.5;
}
.prose figure figcaption {
color: theme('colors.gray.600');
font-size: 0.875em;
line-height: 1.4285714;
margin-top: 0.8571429em;
text-align: center;
}
.prose code {
color: theme('colors.gray.900');
font-weight: 600;
font-size: 0.875em;
}
.prose code:after,
.prose code:before {
content: '`';
}
.prose a code {
color: theme('colors.gray.900');
}
.prose pre {
color: #f0f0f0;
background-color: #3b3b3b;
overflow-x: auto;
font-size: 0.875em;
line-height: 1.7142857;
margin-top: 1.7142857em;
margin-bottom: 1.7142857em;
border-radius: 0.375rem;
padding: 0.8571429em 1.1428571em;
}
.prose pre code {
background-color: transparent;
border-width: 0;
border-radius: 0;
padding: 0;
font-weight: 400;
color: inherit;
font-size: inherit;
font-family: inherit;
line-height: inherit;
}
.prose pre code:after,
.prose pre code:before {
content: none;
}
.prose table {
width: 100%;
table-layout: auto;
text-align: left;
margin-top: 2em;
margin-bottom: 2em;
font-size: 0.875em;
line-height: 1.7142857;
}
.prose thead {
color: theme('colors.gray.900');
font-weight: 600;
border-bottom-width: 1px;
border-bottom-color: #bababa;
}
.prose thead th {
vertical-align: bottom;
padding-right: 0.5714286em;
padding-bottom: 0.5714286em;
padding-left: 0.5714286em;
}
.prose tbody tr {
border-bottom-width: 1px;
border-bottom-color: #f0f0f0;
}
.prose tbody tr:last-child {
border-bottom-width: 0;
}
.prose tbody td {
vertical-align: top;
padding: 0.5714286em;
}
.prose {
font-size: 1rem;
line-height: 1.75;
}
.prose p,
dl,
.prose dl {
text-indent: 2rem;
hyphens: auto;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
@apply my-0 text-justify font-serif oldstyle-nums font-normal leading-normal lg:text-lg lg:leading-normal;
}
.prose p h1,
.prose p h2,
.prose p h3,
.prose p h4 {
@apply indent-0;
}
.prose figure,
.prose img,
.prose .img,
.prose video {
@apply mx-auto my-8;
}
.prose img,
.prose .img {
@apply hover:shadow-md shadow-sm transition-shadow;
&.aligncenter {
@apply mx-auto;
}
&.alignleft {
@apply float-left mr-5;
}
&.alignright {
@apply float-right ml-5;
}
}
.prose .newsletter-form {
@apply -mx-6 mt-8 bg-white border sm:mx-auto;
}
.prose figure > * {
margin-top: 0;
margin-bottom: 0;
}
.prose h2 code {
font-size: 0.875em;
}
.prose h3 code {
font-size: 0.9em;
}
.prose ol,
.prose ul {
margin-top: 1.25em;
margin-bottom: 1.25em;
@apply counter-reset mt-3;
}
.prose li {
@apply counter-increment pt-[0.5ex] my-0 font-serif leading-normal;
}
.prose ul p,
.prose ol p {
@apply contents;
}
.prose > ol > li > :first-child,
.prose > ul > li > :first-child {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
.prose ol ol,
.prose ol ul,
.prose ul ol,
.prose ul ul {
margin-top: 0.75em;
margin-bottom: 0.75em;
}
.prose h2 + *,
.prose h3 + *,
.prose h4 + *,
.prose > :first-child {
/* .prose > div:first-child > :first-of-type { */
margin-top: 0;
}
.prose thead th:first-child,
.prose tbody td:first-child {
padding-left: 0;
}
.prose thead th:last-child,
.prose tbody td:last-child {
padding-right: 0;
}
.prose > :last-child {
margin-bottom: 0;
}
.prose-lg {
font-size: 1.125rem;
line-height: 1.7777778;
}
.prose-xl {
font-size: 1.25rem;
line-height: 1.8;
}
.prose-xl dl,
.prose-xl p {
@apply my-0;
text-indent: 3rem;
}
.prose-xl blockquote {
@apply pl-8;
}
.prose-xl ol,
.prose-xl ul {
@apply mt-3;
@apply counter-reset;
}
.prose-xl h2 {
font-size: 2.441rem;
margin: 3rem 0 1.38rem;
line-height: 1.3;
}
.prose-xl h3 {
font-size: 1.953rem;
margin: 3rem 0 1.38rem;
line-height: 1.3;
}
.prose-xl h4 {
font-size: 1.563rem;
margin: 3rem 0 1.38rem;
line-height: 1.3;
}
.prose,
.prose-xl {
& figure {
& img,
& .img {
@apply mb-0;
}
& figcaption p {
@apply indent-0 text-center text-sm;
}
}
}
.prose p,
li,
blockquote {
@apply text-base lg:text-lg;
}
}