]> git.r.bdr.sh - rbdr/r.bdr.sh/blob - css/style.css
Move the font back up
[rbdr/r.bdr.sh] / css / style.css
1 html {
2 scroll-behavior: smooth;
3 }
4
5 body {
6 font-size: 1em;
7 font: -apple-system-body;
8 font-family: "Hoefler Text", "Times New Roman", serif;
9 font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1;
10 line-height: 1.6;
11 letter-spacing: 0.02em;
12 text-align: justify;
13 }
14
15 aside {
16 clear: both;
17 padding-top: 2em;
18 }
19
20 ::selection {
21 color: #00f;
22 background-color: #e8e8e8;
23 }
24
25 @media only screen and (min-width: 500px) {
26 body {
27 overflow-x: auto;
28 }
29
30 .columned {
31 width: max-content;
32 }
33
34 .columned .h2:not(:only-child) {
35 float: left;
36 margin: 0 40px;
37 }
38
39 .columned .h2:not(:only-child) h2 {
40 width: 14.6em;
41 }
42
43 .columned .h2:not(:only-child) .h3,
44 .columned .h2:not(:only-child) li,
45 .columned .h2:not(:only-child) p {
46 width: 24em;
47 }
48
49 .columned .h2:not(:only-child) pre { width: 25em }
50 }
51
52 .columned .h2:first-of-type pre {
53 line-height: 1;
54 }
55
56 blockquote, p, article > div {
57 margin: 0 0.3em;
58 max-width: 45em
59 }
60 pre { max-width: 55em }
61 blockquote {
62 border-left: 4px solid #ccc;
63 padding-left: 10px;
64 }
65
66 br { display: none }
67 h1, h2, h3 { font-weight: normal }
68 h1 { font-size: 1em }
69 h2 { font-size: 1.65em }
70 h3 { font-size: 1.25em }
71 pre {
72 font-family: courier, monospace;
73 font-size: 0.875em;
74 background-color: #eee;
75 overflow-x: auto;
76 padding: 1em;
77 }
78
79 canvas {
80 width: 64px;
81 height: 64px;
82 display: block;
83 background-color: #000;
84 border: 1px solid #000;
85 }
86
87 @media (prefers-color-scheme: dark) {
88 body {
89 color: #fff;
90 background: #000;
91 }
92
93 canvas {
94 background-color: #fff;
95 border: 1px solid #fff;
96 }
97
98 a {
99 color: #5dc1fd;
100 display: inline-block;
101 min-height: 48px;
102 }
103
104 a:visited {
105 color: #ed6eff;
106 }
107
108 pre {
109 background-color: #222;
110 }
111 }