38
38
}
39
39
}
40
40
41
-
42
- /* Global stylesheet */
41
+ /* Modern reset, source: https://www.joshwcomeau.com/css/custom-css-reset/ */
42
+ /* 1. Use a more-intuitive box-sizing model */
43
+ * , * ::before , * ::after {
44
+ box-sizing : border-box;
45
+ }
46
+ /* 2. Remove default margin */
43
47
* {
44
- box-sizing : border-box;
48
+ /*margin: 0;*/
49
+ }
50
+ /* 3. Enable keyword animations */
51
+ @media (prefers-reduced-motion : no-preference) {
52
+ html {
53
+ interpolate-size : allow-keywords;
54
+ }
55
+ }
56
+ body {
57
+ /* 4. Add accessible line-height */
58
+ line-height : 1.5 ;
59
+ /* 5. Improve text rendering */
60
+ -webkit-font-smoothing : antialiased;
61
+ }
62
+ /* 6. Improve media defaults */
63
+ img , picture , video , canvas , svg {
64
+ display : block;
65
+ max-width : 100% ;
45
66
}
67
+ /* 7. Inherit fonts for form controls */
68
+ input , button , textarea , select {
69
+ font : inherit;
70
+ }
71
+ /* 8. Avoid text overflows */
72
+ p , h1 , h2 , h3 , h4 , h5 , h6 {
73
+ overflow-wrap : break-word;
74
+ }
75
+ /* 9. Improve line wrapping */
76
+ p {
77
+ text-wrap : pretty;
78
+ }
79
+ h1 , h2 , h3 , h4 , h5 , h6 {
80
+ text-wrap : balance;
81
+ }
82
+
83
+ /* Global stylesheet */
46
84
47
85
@view-transition {
48
86
navigation : auto;
@@ -339,6 +377,7 @@ blockquote {
339
377
padding : 15px 10px ;
340
378
margin : 20px auto;
341
379
border-left : 5px solid var (--text-color-link );
380
+ background-color : var (--background-color );
342
381
}
343
382
344
383
/* See https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/Heading_Elements#specifying_a_uniform_font_size_for_h1 */
@@ -350,15 +389,15 @@ article h1 {
350
389
/* Code stuff */
351
390
.astro-code {
352
391
font-family : var (--font-family-monospace );
353
- font-size : 1 rem ;
392
+ font-size : 0.85 rem ;
354
393
margin : 20px 0 ;
355
394
overflow-x : hidden;
356
395
padding : 0 ;
357
396
border : 2px solid var (--background-color );
358
397
}
359
398
360
399
.astro-code pre {
361
- overflow-x : scroll ;
400
+ overflow-x : auto ;
362
401
padding : .75rem ;
363
402
margin : 0 ;
364
403
}
@@ -367,16 +406,17 @@ code:not(pre code) {
367
406
white-space : pre-wrap !important ;
368
407
word-break : break-all !important ;
369
408
370
- padding : 0.5 em 0.5 em .3 em 0 .5em ;
409
+ padding : .2 em .5em ;
371
410
color : var (--shiki );
372
411
border : 1px solid var (--background-color );
373
412
border-radius : 4px ;
374
413
background-color : var (--shiki-bg );
375
414
376
415
hyphens : none;
377
416
tab-size : var (--syntax-tab-size );
378
- vertical-align : bottom;
379
- font-size : inherit;
417
+ vertical-align : baseline;
418
+ font-family : var (--font-family-monospace );
419
+ font-size : 0.85rem ;
380
420
line-height : inherit;
381
421
}
382
422
@@ -424,37 +464,4 @@ code:not(pre code) {
424
464
425
465
.footnotes a {
426
466
word-break : break-all;
427
- }
428
-
429
- /* Minimal Modern Responsive CSS Table */
430
- table {
431
- width : 100% ;
432
- border-collapse : collapse;
433
- border-spacing : 0 ;
434
- text-indent : 0 ;
435
- margin : 1rem 0 ;
436
-
437
- overflow-x : scroll;
438
- border : 1px solid var (--text-color );
439
- /* border-radius: 0.3rem; */
440
- }
441
-
442
- table th ,
443
- table td {
444
- padding : 0.75rem 1rem ;
445
- text-align : left;
446
- }
447
-
448
- table thead {
449
- background : var (--text-color );
450
- color : var (--background-color );
451
- font-weight : bolder;
452
- }
453
-
454
- table tr {
455
- border-bottom : 1px solid # eee ;
456
- }
457
-
458
- table tr : last-child {
459
- border-bottom : none;
460
467
}
0 commit comments