Debian Codegraph @

book/custom.css

raw symbols SCIP
1 html {
2 font-family: "Inter", sans-serif;
3 }
4
5 .sidebar .sidebar-scrollbox {
6 padding: 0;
7 }
8
9 .chapter {
10 margin: 0.25rem 0;
11 }
12
13 .chapter li.chapter-item {
14 line-height: initial;
15 margin: 0;
16 padding: 1rem 1.5rem;
17 }
18
19 .chapter .section li.chapter-item {
20 line-height: inherit;
21 padding: .5rem .5rem 0 .5rem;
22 }
23
24 .content {
25 overflow-y: auto;
26 padding: 0 15px;
27 padding-bottom: 50px;
28 line-height: 1.6;
29 }
30
31 /* 2 1.75 1.5 1.25 1 .875 */
32 .content h1 { font-size: 2em }
33 .content h2 { font-size: 1.75em }
34 .content h3 { font-size: 1.5em }
35 .content h4 { font-size: 1.25em }
36 .content h5 { font-size: 1em }
37 .content h6 { font-size: .875em }
38
39 .content h1,
40 .content h2,
41 .content h3,
42 .content h4 {
43 font-weight: 500;
44 }
45
46 .content h1 { margin-top: 1.75em; margin-bottom: .875em; }
47 .content h2 { margin-top: 2em; margin-bottom: .75em; }
48 .content h3 { margin-top: 1.75em; margin-bottom: .65em; }
49 .content h4 { margin-top: 1.5em; margin-bottom: .5em; }
50 .content h1:first-child,
51 .content h2:first-child { margin-top: 0; }
52
53 .content p,
54 .content ol,
55 .content ul {
56 margin-top: 0;
57 margin-bottom: 1em;
58 }
59
60 .content table {
61 margin-top: 1.5em;
62 margin-bottom: 1.75em;
63 }
64
65 .content pre {
66 margin-top: 1em;
67 margin-bottom: 1.25em;
68 }
69
70 .content ul li,
71 .content ol li {
72 margin-bottom: .35rem;
73 }
74
75 .content ul {
76 list-style-type: square;
77 }
78
79 .content ul ul,
80 .content ol ul {
81 margin-bottom: .5rem;
82 }
83
84 .content li p {
85 margin-bottom: .5em;
86 }
87
88 blockquote {
89 margin: 1.5rem 0;
90 padding: 1rem 1.5rem;
91 color: var(--fg);
92 opacity: .9;
93 background-color: var(--quote-bg);
94 border-left: 4px solid var(--quote-border);
95 border-top: none;
96 border-bottom: none;
97 }
98
99 blockquote *:last-child {
100 margin-bottom: 0;
101 }
102
103 table {
104 width: 100%;
105 }
106
107 table thead th {
108 padding: .75rem;
109 text-align: left;
110 font-weight: 500;
111 line-height: 1.5;
112 width: auto;
113 }
114
115 table td {
116 padding: .75rem;
117 border: none;
118 }
119
120 table thead tr {
121 border: none;
122 border-bottom: 2px var(--table-border-color) solid;
123 }
124
125 table tbody tr {
126 border-bottom: 1px var(--table-border-line) solid;
127 }
128
129 table tbody tr:nth-child(2n) {
130 background: unset;
131 }
132
133 pre code.hljs {
134 display: block;
135 overflow-x: auto;
136 padding: 1em;
137 }
138
139 code.hljs {
140 padding: 3px 5px;
141 }
142
143 .colibri {
144 --bg: #281733;
145 --fg: #bcbdd0;
146 --heading-fg: #fff;
147
148 --sidebar-bg: hsl(276.4, 37.8%, 11%);
149 --sidebar-fg: #c8c9db;
150 --sidebar-non-existent: #505274;
151 --sidebar-active: #a4a0e8;
152 --sidebar-spacer: #2d334f;
153
154 --scrollbar: var(--sidebar-fg);
155
156 --icons: #737480;
157 --icons-hover: #b7b9cc;
158
159 /* --links: #a4a0e8; */
160 --links: #ECCDBA;
161
162 --inline-code-color: hsl(48.7, 7.8%, 70%);
163
164 --theme-popup-bg: #161923;
165 --theme-popup-border: #737480;
166 --theme-hover: rgba(0, 0, 0, .2);
167
168 --quote-bg: rgba(0, 0, 0, .25);
169 --quote-border: hsl(226, 15%, 22%);
170
171 --table-border-color: hsl(226, 23%, 76%);
172 --table-header-bg: hsla(226, 23%, 31%, 0);
173 --table-alternate-bg: hsl(226, 23%, 14%);
174 --table-border-line: hsla(201deg, 20%, 92%, 0.2);
175
176 --searchbar-border-color: #aaa;
177 --searchbar-bg: #aeaec6;
178 --searchbar-fg: #000;
179 --searchbar-shadow-color: #aaa;
180 --searchresults-header-fg: #5f5f71;
181 --searchresults-border-color: #5c5c68;
182 --searchresults-li-bg: #242430;
183 --search-mark-bg: #a2cff5;
184 }
185
186 .colibri .content .header {
187 color: #fff;
188 }
189
190 /* highlight.js theme, :where() is used to avoid increasing specificity */
191
192 /* Mapped to the helix theme.toml palette */
193 :where(.colibri) .hljs {
194 background: #1f1029; /* slightly deeper than --bg revolver */
195 color: #a4a0e8; /* lavender — ui.text */
196 }
197
198 :where(.colibri) .hljs-comment,
199 :where(.colibri) .hljs-quote {
200 color: #697C81; /* sirocco — comment */
201 }
202
203 :where(.colibri) .hljs-keyword,
204 :where(.colibri) .hljs-name,
205 :where(.colibri) .hljs-selector-tag {
206 color: #eccdba; /* almond — keyword, tag */
207 }
208
209 :where(.colibri) .hljs-meta,
210 :where(.colibri) .hljs-attribute,
211 :where(.colibri) .hljs-attr,
212 :where(.colibri) .hljs-operator,
213 :where(.colibri) .hljs-tag {
214 color: #dbbfef; /* lilac — directives, attributes, operators */
215 }
216
217 :where(.colibri) .hljs-built_in,
218 :where(.colibri) .hljs-symbol,
219 :where(.colibri) .hljs-addition {
220 color: #9ff28f; /* mint — builtins, additions */
221 }
222
223 :where(.colibri) .hljs-string,
224 :where(.colibri) .hljs-bullet,
225 :where(.colibri) .hljs-link {
226 color: #cccccc; /* silver — strings */
227 }
228
229 :where(.colibri) .hljs-regexp,
230 :where(.colibri) .hljs-formula {
231 color: #efba5d; /* honey — regex, special */
232 }
233
234 :where(.colibri) .hljs-number,
235 :where(.colibri) .hljs-literal,
236 :where(.colibri) .hljs-params {
237 color: #E8DCA0; /* chamois — numbers, literals, parameters */
238 }
239
240 :where(.colibri) .hljs-title,
241 :where(.colibri) .hljs-section,
242 :where(.colibri) .hljs-type,
243 :where(.colibri) .hljs-class,
244 :where(.colibri) .hljs-property,
245 :where(.colibri) .hljs-selector-id,
246 :where(.colibri) .hljs-selector-class {
247 color: #ffffff; /* white — types, functions, headings */
248 }
249
250 :where(.colibri) .hljs-variable,
251 :where(.colibri) .hljs-template-variable {
252 color: #a4a0e8; /* lavender — variables */
253 }
254
255 :where(.colibri) .hljs-deletion {
256 color: #f47868; /* apricot — deletion / error */
257 }
258
259 :where(.colibri) .hljs-emphasis {
260 font-style: italic;
261 }
262
263 :where(.colibri) .hljs-strong {
264 font-weight: 700;
265 }
266
267 #helix-version-banner {
268 margin: 0 0 1.75rem;
269 padding: .75rem 1.15rem;
270 border-radius: 4px;
271 border-inline-start: 4px solid var(--blockquote-warning-color, #efba5d);
272 background-color: var(--quote-bg);
273 font-size: .95em;
274 line-height: 1.55;
275 }
276
277 #helix-version-banner.archived {
278 border-inline-start-color: var(--blockquote-note-color, #697C81);
279 }
280
281 #helix-version-banner a {
282 white-space: nowrap;
283 font-weight: 500;
284 }
285
286 .version-tiles {
287 display: grid;
288 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
289 gap: 1rem;
290 margin: 1.75rem 0 2rem;
291 }
292
293 .version-tiles .version-tile,
294 .version-tiles .version-tile:hover {
295 text-decoration: none;
296 }
297
298 .version-tiles .version-tile {
299 --tile-accent: var(--blockquote-tip-color, #a4a0e8);
300 display: block;
301 padding: 1.25rem 1.4rem;
302 border: 1px solid var(--table-border-line, hsla(201, 20%, 92%, .2));
303 border-radius: 8px;
304 background-color: var(--quote-bg, rgba(0, 0, 0, .2));
305 color: inherit;
306 transition: border-color .15s ease, background-color .15s ease;
307 }
308
309 .version-tiles .version-tile:hover,
310 .version-tiles .version-tile.current {
311 border-color: var(--tile-accent);
312 background-color: color-mix(in srgb, var(--tile-accent) 9%, var(--quote-bg, transparent));
313 }
314
315 .version-tiles .version-tile strong {
316 display: block;
317 margin-bottom: .25rem;
318 font-size: 1.15em;
319 font-weight: 600;
320 color: var(--heading-fg);
321 }
322
323 .version-tiles .version-tile .version-tile-sub {
324 opacity: .8;
325 font-size: .9em;
326 }