Debian Codegraph @

doc/website/style.css

raw
1 /*
2
3 OS Component Website
4 ====================
5
6 shamelessly stolen CSS from systemd
7 https://github.com/systemd/systemd/tree/main/docs
8
9 */
10
11 /* GNOME Color Palette */
12 :root {
13 --rounded-corner: 12px;
14 --blue1: rgb(153,193,241);
15 --blue2: rgb(98,160,234);
16 --blue3: rgb(53,132,228);
17 --blue4: rgb(28,113,216);
18 --blue5: rgb(26,95,180);
19 --green1: rgb(143,240,164);
20 --green2: rgb(87,227,137);
21 --green3: rgb(51,209,122);
22 --green4: rgb(46,194,126);
23 --green5: rgb(38,162,105);
24 --yellow1: rgb(249,240,107);
25 --yellow2: rgb(248,228,92);
26 --yellow3: rgb(246,211,45);
27 --yellow4: rgb(245,194,17);
28 --yellow5: rgb(229,165,10);
29 --orange1: rgb(255,190,111);
30 --orange2: rgb(255,163,72);
31 --orange3: rgb(255,120,0);
32 --orange4: rgb(230,97,0);
33 --orange5: rgb(198,70,0);
34 --red1: rgb(246,97,81);
35 --red2: rgb(237,51,59);
36 --red3: rgb(224,27,36);
37 --red4: rgb(192,28,40);
38 --red5: rgb(165,29,45);
39 --purple1: rgb(220,138,221);
40 --purple2: rgb(192,97,203);
41 --purple3: rgb(145,65,172);
42 --purple4: rgb(129,61,156);
43 --purple5: rgb(97,53,131);
44 --brown1: rgb(205,171,143);
45 --brown2: rgb(181,131,90);
46 --brown3: rgb(152,106,68);
47 --brown4: rgb(134,94,60);
48 --brown5: rgb(99,69,44);
49 --light1: rgb(255,255,255);
50 --light2: rgb(246,245,244);
51 --light3: rgb(222,221,218);
52 --light4: rgb(192,191,188);
53 --light5: rgb(154,153,150);
54 --dark1: rgb(119,118,123);
55 --dark2: rgb(94,92,100);
56 --dark3: rgb(61,56,70);
57 --dark4: rgb(36,31,49);
58 --dark5: rgb(0,0,0);
59 --primary-color: var(--green5); /* Set your project color */
60 --borders: var(--light3);
61 --fg-color: #241f31;
62 --bg-color: var(--light2);
63 --term-fg: var(--dark3);
64 --term-bg: var(--light1);
65 --term-br: 9px;
66 }
67
68 @media (prefers-color-scheme: dark) {
69 :root {
70 color-scheme: dark;
71 --fg-color: #eee;
72 --bg-color: #0d2542;
73 --term-fg: var(--light1);
74 --term-bg: var(--dark4);
75 --primary-color: var(--orange1);
76 }
77 }
78
79 /* Typography */
80
81 @font-face {
82 font-family: 'Inter Var';
83 font-weight: 100 900;
84 font-display: swap;
85 font-style: oblique italic 0deg 10deg;
86 src: url("fonts/Inter.var.woff2?v=3.19") format("woff2");
87 }
88
89 * {
90 -moz-box-sizing: border-box;
91 -webkit-box-sizing: border-box;
92 box-sizing: border-box;
93 }
94 html, body {
95 margin: 0;
96 padding: 0;
97 font-size: 16px;
98 font-family: "Inter Var", sans-serif;
99 font-weight: 400;
100 line-height: 1.6;
101 scroll-behavior: smooth;
102 }
103 body {
104 color: var(--fg-color);
105 background-color: var(--bg-color);
106 /* ⇩⇩ put footer at the bottom for short pages, such as the 404 ⇩⇩ */
107 display: grid;
108 min-height: 100vh;
109 grid-template-rows: auto minmax(auto,1fr) auto; /* header, stuff, footer */
110 }
111 h1, h2, h3, h4, h5, h6 {
112 margin: 3rem 0 1rem;
113 font-weight: 600;
114 line-height: 1.25;
115 font-variation-settings: "wght" 600; /* needed for webkit */
116 }
117
118 h1 {
119 font-size: 1.5rem;
120 font-weight: 100;
121 font-style: normal;
122 margin: 3rem 0 1rem;
123 }
124
125 @media screen and (min-width: 650px) {
126 h1 {
127 font-size: 1.6rem;
128 }
129 }
130 h2 {
131 font-size: 1.2rem;
132 }
133
134
135
136 a {
137 font-weight: 600;
138 text-decoration: none;
139 color: var(--primary-color);
140 cursor: pointer;
141 font-variation-settings: "wght" 600; /* needed for webkit */
142 }
143 a:hover {
144 text-decoration: underline;
145 }
146 b {
147 font-weight: 600;
148 }
149 small {
150 color: #777;
151 }
152 hr {
153 margin: 3rem auto 4rem;
154 width: 40%;
155 opacity: 40%;
156 }
157
158 img {
159 display: block;
160 margin: 2rem auto;
161 max-width: 100%;
162 }
163 img.full, picture.full img { width: 100%; }
164 img.pixels, picture.pixels img {
165 image-rendering: crisp-edges; /* older firefox browsers */
166 image-rendering: pixelated;
167 }
168
169
170 /* Layout */
171 .container {
172 width: 80%;
173 margin-left: auto;
174 margin-right: auto;
175 max-width: 720px;
176 }
177
178 /* Singletons */
179 #logo {
180 display: block;
181 width: 251px; height: 26px;
182 background: url('assets/page-logo.svg') no-repeat center;
183 padding: 5rem 0 3rem;
184 margin: 0 auto;
185 position: relative;
186 }
187 #logo a {
188 display: block;
189 position: absolute;
190 top: 0; left: 0; right: 0; bottom: 0;
191 color: rgba(0,0,0,0); /* make text transparent */
192 cursor: pointer;
193 }
194 .page-logo > img {
195 margin: 0 auto;
196 }
197
198 @media (prefers-color-scheme: dark) {
199 #logo {
200 background-image: url('assets/page-logo-i.svg');
201 }
202 }
203
204 .brand-white {
205 background-color: #fff;
206 }
207
208 .brand-green {
209 background-color: #30D475;
210 }
211
212 .brand-black {
213 background-color: #201A26;
214 color: white;
215 }
216
217 .page-link::after {
218 content: " ➜";
219 }
220
221
222 /* Footer */
223 footer {
224 text-align: center;
225 padding: 3em 0 3em;
226 font-size: 1em;
227 margin-top: 4rem;
228 }
229
230 /* Make tables vertically aligned to the top */
231 tbody td {
232 vertical-align: top;
233 }
234
235 /* Github Code Highlighting */
236 .highlight table td { padding: 5px; }
237 .highlight table pre { margin: 0; }
238 .highlight .cm {
239 color: #999988;
240 font-style: italic;
241 }
242 .highlight .cp {
243 color: #999999;
244 font-weight: bold;
245 }
246 .highlight .c1 {
247 color: #999988;
248 font-style: italic;
249 }
250 .highlight .cs {
251 color: #999999;
252 font-weight: bold;
253 font-style: italic;
254 }
255 .highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
256 color: #999988;
257 font-style: italic;
258 }
259 .highlight .err {
260 color: #a61717;
261 background-color: #e3d2d2;
262 }
263 .highlight .gd {
264 color: #000000;
265 background-color: #ffdddd;
266 }
267 .highlight .ge {
268 color: #000000;
269 font-style: italic;
270 }
271 .highlight .gr {
272 color: #aa0000;
273 }
274 .highlight .gh {
275 color: #999999;
276 }
277 .highlight .gi {
278 color: #000000;
279 background-color: #ddffdd;
280 }
281 .highlight .go {
282 color: #888888;
283 }
284 .highlight .gp {
285 color: #555555;
286 }
287 .highlight .gs {
288 font-weight: bold;
289 }
290 .highlight .gu {
291 color: #aaaaaa;
292 }
293 .highlight .gt {
294 color: #aa0000;
295 }
296 .highlight .kc {
297 color: #000000;
298 font-weight: bold;
299 }
300 .highlight .kd {
301 color: #000000;
302 font-weight: bold;
303 }
304 .highlight .kn {
305 color: #000000;
306 font-weight: bold;
307 }
308 .highlight .kp {
309 color: #000000;
310 font-weight: bold;
311 }
312 .highlight .kr {
313 color: #000000;
314 font-weight: bold;
315 }
316 .highlight .kt {
317 color: #445588;
318 font-weight: bold;
319 }
320 .highlight .k, .highlight .kv {
321 color: #000000;
322 font-weight: bold;
323 }
324 .highlight .mf {
325 color: #009999;
326 }
327 .highlight .mh {
328 color: #009999;
329 }
330 .highlight .il {
331 color: #009999;
332 }
333 .highlight .mi {
334 color: #009999;
335 }
336 .highlight .mo {
337 color: #009999;
338 }
339 .highlight .m, .highlight .mb, .highlight .mx {
340 color: #009999;
341 }
342 .highlight .sb {
343 color: #d14;
344 }
345 .highlight .sc {
346 color: #d14;
347 }
348 .highlight .sd {
349 color: #d14;
350 }
351 .highlight .s2 {
352 color: #d14;
353 }
354 .highlight .se {
355 color: #d14;
356 }
357 .highlight .sh {
358 color: #d14;
359 }
360 .highlight .si {
361 color: #d14;
362 }
363 .highlight .sx {
364 color: #d14;
365 }
366 .highlight .sr {
367 color: #009926;
368 }
369 .highlight .s1 {
370 color: #d14;
371 }
372 .highlight .ss {
373 color: #990073;
374 }
375 .highlight .s, .highlight .sa, .highlight .dl {
376 color: #d14;
377 }
378 .highlight .na {
379 color: #008080;
380 }
381 .highlight .bp {
382 color: #999999;
383 }
384 .highlight .nb {
385 color: #0086B3;
386 }
387 .highlight .nc {
388 color: #445588;
389 font-weight: bold;
390 }
391 .highlight .no {
392 color: #008080;
393 }
394 .highlight .nd {
395 color: #3c5d5d;
396 font-weight: bold;
397 }
398 .highlight .ni {
399 color: #800080;
400 }
401 .highlight .ne {
402 color: #990000;
403 font-weight: bold;
404 }
405 .highlight .nf, .highlight .fm {
406 color: #990000;
407 font-weight: bold;
408 }
409 .highlight .nl {
410 color: #990000;
411 font-weight: bold;
412 }
413 .highlight .nn {
414 color: #555555;
415 }
416 .highlight .nt {
417 color: #000080;
418 }
419 .highlight .vc {
420 color: #008080;
421 }
422 .highlight .vg {
423 color: #008080;
424 }
425 .highlight .vi {
426 color: #008080;
427 }
428 .highlight .nv, .highlight .vm {
429 color: #008080;
430 }
431 .highlight .ow {
432 color: #000000;
433 font-weight: bold;
434 }
435 .highlight .o {
436 color: #000000;
437 font-weight: bold;
438 }
439 .highlight .w {
440 color: #bbbbbb;
441 }
442 .highlight {
443 }
444
445
446 /* Code Blocks */
447 .highlighter-rouge {
448 font-size: 80%;
449 line-height: normal;
450 padding: 2px 1rem;
451 border-radius: var(--term-br);
452 background-color: var(--term-bg);
453 max-width: 100vw;
454 overflow-x: auto;
455 margin: 1rem 0;
456 }
457 @media only screen and (max-device-width : 480px) {
458 /*mobile*/
459 .highlighter-rouge { max-width: 80vw; }
460 }
461
462 .highlighter-rouge * {
463 }
464
465 /* Inline Code */
466 code.highlighter-rouge {
467 padding: 2px 6px;
468 background-color: var(--term-bg);
469 }
470
471 /* Buttons */
472
473 .dialog-buttons {
474 display: flex;
475 flex-direction: row;
476 align-items: baseline;
477 justify-content: space-between;
478 margin-top: 6rem;
479 }
480
481 .inline-button {
482 display: inline-block;
483 font-weight: 900;
484 font-size: 90%;
485 padding: .4rem 1rem;
486 border-radius: var(--rounded-corner);
487 background-color: var(--term-bg);
488 color: var(--fg-color);
489 }
490
491 a.pixelbutton img { transition: all ease-out 300ms; }
492 a.pixelbutton:hover img {
493 filter: brightness(1.3) hue-rotate(-2deg) contrast(130%) drop-shadow(0px 2px 2px rgba(0,0,0,0.5));
494 }
495 a.pixelbutton:active img {
496 filter: brightness(0.9) hue-rotate(-2deg) contrast(130%);
497 translate: 0 2px;
498 }