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
|
/*
Copyright (C) 2024-2026 memdmp
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by Affero, Inc., at version 1.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Affero General Public License for more details.
You should have received a copy of the Affero General Public License along with this program. If not, see <https://spdx.org/licenses/AGPL-1.0-only>.
*/
@import 'tailwindcss';
@theme {
--font-sans:
InterVariable, Inter, "Noto Sans",
ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
--font-space-grotesk: "Space Grotesk", var(--font-sans), sans-serif;
--font-bios:
'Ac437 IBM EGA 8x14', 'Hack', 'Courier New', 'Courier', 'monospace';
--font-grub:
'Px437 DOS/V re. JPN12', 'Ac437 IBM EGA 8x14', 'Hack', 'Courier New',
'Courier', 'monospace';
--font-mono:
'PxPlus IBM EGA 8x14', 'Hack', 'Courier New', 'Courier', 'monospace';
--font-genericmono:
'Jetbrains Mono Variable', 'Jetbrains Mono', 'JetBrains Mono', 'JetBrainsMono NF', monospace;
--color-formatted-table-border: var(--color-neutral-800);
--color-formatted-table-background: var(--color-neutral-950);
--color-codeblock-border: var(--color-neutral-900);
--color-codeblock-background: var(--color-neutral-950);
--color-accent-primary: var(--color-red-400);
}
@utility afterunderline-* {
@apply relative;
&::before {
content: '';
background: --value(--color-*);
@apply absolute top-full left-0 -mt-0.5 h-[0.2rem] w-full transition-all -z-10;
}
}
@utility afterunderline-hoverstate {
&::before {
@apply top-0 left-0 mt-0 h-full w-full;
}
}
@utility formatted-table {
@apply relative overflow-x-auto shadow-xs rounded-xl border bg-formatted-table-background border-formatted-table-border;
table {
@apply w-full text-sm text-left rtl:text-right bg-formatted-table-background;
thead {
@apply text-sm border-b rounded-xl border-formatted-table-border;
}
tbody tr {
@apply not-last:border-b border-formatted-table-border;
}
th,td {
@apply px-6 py-3;
}
td > b:first-child:last-child {
@apply px-6 py-4 font-medium whitespace-nowrap;
}
}
}
@utility quicklink {
@apply text-accent-primary transition-all afterunderline-accent-primary hover:afterunderline-hoverstate active:afterunderline-hoverstate focus:afterunderline-hoverstate hover:text-white active:text-white focus:text-white outline-0;
}
@utility internal-header-active {
&:not(:is(p)) {
@apply text-white/95;
}
&:is(blockquote) {
&::before {
background-color: var(--colour-full);
}
}
&::after {
@apply -ml-3 bg-gray-200/50;
}
}
#postmd {
@apply font-sans;
a {
@apply quicklink text-nowrap;
}
h1 {
@apply text-4xl mb-1.5 mt-2;
}
h2 {
@apply my-1.5 text-2xl;
}
h3 {
@apply my-1 text-xl;
}
h4 {
@apply my-1 text-lg;
}
h1,h2,h3,h4,h5,h6,p {
@apply relative text-white/90 hover:text-white;
&::after {
content: "";
@apply absolute top-[20%] left-0 h-[60%] w-0.5 -ml-4 rounded-full transition-all;
}
&:is(p)::after {
@apply bg-gray-200/5;
}
&:not(:is(p))::after {
@apply bg-gray-200/15;
}
&:hover::after {
@apply -ml-3 bg-gray-200/75;
}
&:hover ~ p:is(p)::after {
@apply bg-gray-200/4;
}
}
h1 {
&:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h1:hover)) {
@apply internal-header-active;
}
}
h2 {
&:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h1:hover,~h2:hover)) {
@apply internal-header-active;
}
}
h3 {
&:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h3~*:hover,~h1:hover,~h2:hover,~h3:hover)) {
@apply internal-header-active;
}
}
h4 {
&:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h3~*:hover,~h4~*:hover,~h1:hover,~h2:hover,~h3:hover,~h4:hover)) {
@apply internal-header-active;
}
}
h5,h6,p {
&:not(:hover):has(~*:hover):not(:has(~h1~*:hover,~h2~*:hover,~h3~*:hover,~h4~*:hover,~h5~*:hover,~h1:hover,~h2:hover,~h3:hover,~h4:hover,~h5:hover)) {
@apply internal-header-active;
}
}
p::after {
@apply h-[90%] top-[5%];
}
p {
@apply my-1.5 leading-5;
}
code {
@apply font-genericmono;
}
p code {
@apply bg-codeblock-background -my-1 p-1 rounded-lg;
}
pre {
@apply p-3 -mx-2 overflow-scroll bg-codeblock-background border border-codeblock-border rounded-lg transition-colors max-h-[min(75vh,38rem)];
code {
.token {
@apply text-red-500;
}
&,
.token.builtin,
.token.interpolation {
@apply text-[#9CDCFE] selection:bg-[#9CDCFE] selection:text-black;
}
.token.operator {
@apply text-[#d4d4d4] selection:bg-[#d4d4d4] selection:text-black;
}
.token.class-name {
@apply text-[#4ec9b0] selection:bg-[#4ec9b0] selection:text-black;
}
.token.number {
@apply text-[#b5cea8] selection:bg-[#b5cea8] selection:text-black;
}
.token.comment {
@apply text-[#6a9955] selection:bg-[#6a9955] selection:text-black;
}
.token.keyword {
@apply text-[#c586c0] selection:bg-[#c586c0] selection:text-black;
}
.token.punctuation {
@apply text-[white] selection:bg-[white] selection:text-black;
}
.token.function {
@apply text-[#dcdcaa] selection:bg-[#dcdcaa] selection:text-black;
}
.token.string {
@apply text-[#ce9178] selection:bg-[#ce9178] selection:text-black;
}
.token.boolean,
.token.interpolation-punctuation {
@apply text-[#5293c9] selection:bg-[#5293c9] selection:text-black;
}
|