main
1 :root {
2 --width: 720px;
3 --font-main: Verdana, sans-serif;
4 --font-secondary: Verdana, sans-serif;
5 --font-scale: 1em;
6 --background-color: #fff;
7 --heading-color: #222;
8 --text-color: #444;
9 --link-color: #3273dc;
10 --visited-color: #8b6fcb;
11 --blockquote-color: #222;
12 }
13
14 @media (prefers-color-scheme: dark) {
15 :root {
16 --background-color: #01242e;
17 --heading-color: #eee;
18 --text-color: #ddd;
19 --link-color: #8cc2dd;
20 --visited-color: #8b6fcb;
21 --blockquote-color: #ccc;
22 }
23 }
24
25 body {
26 font-family: var(--font-secondary);
27 font-size: var(--font-scale);
28 margin: auto;
29 padding: 20px;
30 max-width: var(--width);
31 text-align: left;
32 background-color: var(--background-color);
33 word-wrap: break-word;
34 overflow-wrap: break-word;
35 line-height: 1.5;
36 color: var(--text-color);
37 }
38
39 h1,
40 h2,
41 h3,
42 h4,
43 h5,
44 h6 {
45 font-family: var(--font-main);
46 color: var(--heading-color);
47 }
48
49 a {
50 color: var(--link-color);
51 cursor: pointer;
52 text-decoration: underline;
53 }
54
55 a:hover {
56 text-decoration: none;
57 }
58
59 nav a {
60 margin-right: 8px;
61 }
62
63 strong,
64 b {
65 color: var(--heading-color);
66 }
67
68 button {
69 margin: 0;
70 cursor: pointer;
71 }
72
73 time {
74 font-family: monospace;
75 font-style: normal;
76 font-size: 15px;
77 }
78
79 main {
80 line-height: 1.6;
81 }
82
83 table {
84 width: 100%;
85 }
86
87 hr {
88 border: 0;
89 border-top: 1px dashed;
90 }
91
92 img {
93 max-width: 100%;
94 height: auto;
95 }
96
97 code {
98 font-family: monospace;
99 padding: 2px;
100 border-radius: 3px;
101 }
102
103 blockquote {
104 border-left: 1px solid #999;
105 color: var(--blockquote-color);
106 padding-left: 20px;
107 font-style: italic;
108 }
109
110 footer {
111 padding: 25px 0;
112 text-align: center;
113 }
114
115 .title:hover {
116 text-decoration: none;
117 }
118
119 .title h1 {
120 font-size: 1.5em;
121 }
122
123 .inline {
124 width: auto !important;
125 }
126
127 .highlight,
128 .code {
129 border-radius: 3px;
130 margin-block-start: 1em;
131 margin-block-end: 1em;
132 overflow-x: auto;
133 }
134
135 .highlight pre,
136 .code pre {
137 min-width: 100%;
138 width: max-content;
139 }
140
141 /* blog post list */
142 ul.blog-posts {
143 list-style-type: none;
144 padding: unset;
145 }
146
147 ul.blog-posts li {
148 display: flex;
149 }
150
151 ul.blog-posts li span {
152 flex: 0 0 130px;
153 }
154
155 ul.blog-posts li a:visited {
156 color: var(--visited-color);
157 }
158
159 div.post-navigator {
160 font-size: 0.8em;
161 display: flex;
162 gap: 16px;
163 justify-content: center;
164 }