Debian Codegraph @

www/public/css/site.css

raw symbols SCIP
1 :root {
2 --alertBackground: whitesmoke;
3 --alertBorder: lightgrey;
4 --alertShadow: darkgray;
5 --anchorColor: #3366cc;
6 --bodyBackground: white;
7 --footerBackground: #f6f6f6;
8 --lightBlue: #3d72d7;
9 --midBlue: #3366cc;
10 --searchBorder: #eee;
11 --textColor: #111;
12 --topNavBackground: linear-gradient(#fff, #f4f5f5);
13 --topNavBorder: #d0d0d0;
14 --topNavShadow: #efefef;
15 color-scheme: light dark;
16 }
17
18 @media (prefers-color-scheme: dark) {
19 :root {
20 --alertBackground: #161719;
21 --alertBorder: #41464b;
22 --alertShadow: rgba(0, 0, 0, 0.15);
23 --anchorColor: var(--midBlue);
24 --bodyBackground: #1f1f1f;
25 --footerBackground: #1a1d1e;
26 --midBlue: #5b96d5;
27 --searchBorder: #495057;
28 --textColor: #c7c4c1;
29 --topNavBackground: linear-gradient(#161718, #1b1d1f);
30 --topNavBorder: #41464b;
31 --topNavShadow: #2d2d2d;
32 }
33
34 .dark-invert {
35 filter: invert(1);
36 }
37
38 .dark-visible {
39 display: block;
40 }
41
42 .dark-hidden {
43 display: none;
44 }
45 }
46
47 body {
48 overflow-x:hidden;
49 margin: 0px;
50 line-height: 1.5em;
51 font-size: 16px;
52 color: var(--textColor);
53 background-color: var(--bodyBackground);
54 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
55 "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif !important;
56 }
57
58 @media (prefers-color-scheme: light) {
59 .dark-visible {
60 display: none;
61 }
62 }
63
64 table {
65 font-size: 16px;
66 }
67
68 .alert {
69 border: 1px solid var(--alertBorder);
70 margin: 24px 8px;
71 padding: 12px;
72 background-color: var(--alertBackground);
73 filter: drop-shadow(3px 3px var(--alertShadow));
74 }
75
76 .info-table table tbody tr td:first-of-type {
77 white-space: nowrap;
78 }
79
80 .full-width {
81 margin-left: calc(50% - 50vw);
82 margin-right: calc(50% - 50vw);
83 }
84
85 .logo {
86 color: inherit;
87 text-decoration: none;
88
89 font-size: 28px;
90 font-weight: bold;
91
92 }
93 .logo b {
94 font-weight: inherit;
95 color: var(--midBlue);
96 }
97
98 /*
99 .light {
100 }
101
102 .content{
103 }
104 */
105
106 .top-nav {
107 line-height: 30px;
108 border-bottom: 1px solid var(--topNavBorder);
109 margin: 0px;
110 background-image: var(--topNavBackground);
111 box-shadow: 0px 4px 15px 0px var(--topNavShadow);
112 margin-bottom:1em;
113 }
114
115 .hide {
116 display:none;
117 }
118
119 .active a {
120 font-weight: bold;
121 }
122
123 body .content code {
124 font-size: 0.9em;
125 }
126
127 code:not(code[class*="language-"]) {
128 background: #3465a41f;
129 border-radius: 2px;
130 padding: 2px 5px;
131 }
132
133 .dark-hero {
134 background: url(/img/topo.svg), linear-gradient(#1f1f1f, #2d2d2d) ;
135 height: 240px;
136 line-height: 240px;
137 text-align: center;
138 vertical-align: center;
139 color: whitesmoke;
140 margin-top: -2em;
141 box-shadow:
142 inset 0px 11px 8px -10px #262626,
143 inset 0px -11px 8px -10px #262626;
144 border-bottom: 1px solid var(--topNavBorder);
145 }
146 .dark-hero * {
147 opacity: 0;
148 transition: all 500ms ease-in;
149 }
150 .dark-hero sub {
151 display: inline-block;
152 position: relative;
153 top: 40px;
154 }
155 .dark-hero.appear * {
156 opacity: 1;
157 top: 10px;
158 }
159 .dark-hero .logo {
160 font-size: 100px;
161 }
162 .dark-hero .blue {
163 color: var(--lightBlue);
164 }
165
166 p {
167 margin: 0.5em 0;
168 }
169
170 blockquote {
171 border-left: 4px solid whitesmoke;
172 margin: 1em;
173 padding-left: 0.5em;
174 }
175
176 table {
177 width: 100%;
178 }
179
180 .hero {
181 text-align: center;
182 font-size: 5em;
183 margin: 0;
184 line-height: 1em;
185 }
186
187 time {
188 font-weight: bold;
189 }
190
191 a {
192 text-decoration: none;
193 color: var(--midBlue)
194 }
195
196 .center {
197 text-align: center;
198 }
199
200 .nav {
201 margin-bottom: 1em;
202 }
203 .nav ul {
204 list-style: none;
205 padding-left: 12px;
206 }
207
208 .hamburger {
209 display: none;
210 }
211
212 h2:not(:first-child) {
213 margin-top: 42px;
214 }
215 h3 {
216 margin-top: 32px;
217 }
218 h4 {
219 margin-top: 16px;
220 }
221
222 *, *::before, *::after {
223 margin: 0;
224 padding: 0;
225 box-sizing: border-box;
226 }
227
228 ul {
229 margin-left: 12px;
230 }
231
232 ul li {
233 padding: 4px;
234 }
235
236 ol {
237 margin-left: 12px;
238 }
239
240 ol li {
241 padding: 4px;
242 }
243
244 @media(max-width:45rem) {
245 #nav {
246 height: 0px;
247 overflow: hidden;
248 text-align: center;
249 font-size: 22px;
250 }
251 #nav.show {
252 height: initial;
253 overflow: visible;
254 }
255 .hero {
256 font-size: 2.5em;
257 }
258 pre[class*="language-"] {
259 overflow-x: scroll !important;
260 border-radius: 0 !important;
261 }
262 .info-table {
263 overflow-x: scroll !important;
264 }
265 .no-mobile {
266 display: none !important;
267 }
268 .hamburger {
269 display: revert;
270 float: right;
271 }
272 .nav {
273 font-size: 1.2em;
274 line-height: 1.3em;
275 }
276 }
277
278 @media(min-width:45em) {
279 .col {
280 display: table-cell;
281 }
282 .\31 {
283 width: 5%;
284 }
285 .\33 {
286 width: 22%;
287 }
288 .\34 {
289 width: 30%;
290 }
291 .\35 {
292 width: 40%;
293 }
294 .\32 {
295 width: 15%;
296 }
297 .content .row .nav,
298 .logo-wrapper{
299 width:12rem;
300 }
301 .row {
302 display: table;
303 table-layout: fixed;
304 /* border-spacing: 1em 0; */
305 }
306 }
307
308 .w-100,
309 .row {
310 width: 100%;
311 }
312
313 .card:focus {
314 outline: 0;
315 border: solid var(--midBlue);
316 }
317
318 hr {
319 outline: 0;
320 }
321
322 .card {
323 padding: 1em;
324 border: solid #eee;
325 }
326
327 a[href]:hover, .btn:hover {
328 opacity: .6;
329 }
330
331 .c {
332 padding: 0 .7em;
333 max-width: 40em;
334 margin: auto;
335 }
336
337 .c.wide-content {
338 width: 100%
339 }
340
341 @media (min-width: 640px){
342 .c.wide-content {
343 max-width: 640px
344 }
345 }
346
347 @media (min-width: 768px){
348 .c.wide-content {
349 max-width: 768px
350 }
351 }
352
353 @media (min-width: 1024px){
354 .c.wide-content {
355 max-width: 1024px
356 }
357 }
358
359 @media (min-width: 1280px){
360 .c.wide-content {
361 max-width: 1280px
362 }
363 }
364
365 @media (min-width: 1536px){
366 .c.wide-content {
367 max-width: 1536px
368 }
369 }
370
371 .btn.primary {
372 color: white;
373 background: var(--midBlue);
374 border: solid var(--midBlue);
375 }
376
377 .btn.danger {
378 color: white;
379 background: #d9534f;
380 border: solid #d9534f;
381 }
382
383 td {
384 padding: 0.2em 0.2em 0.2em 0;
385 text-align: left;
386 border-bottom: 1px solid #eee;
387 }
388
389 th {
390 padding: 0.2em 0.2em 0.2em 0;
391 text-align: left;
392 border-bottom: 2px solid #eee;
393 }
394
395 tbody > tr > th[scope="rowgroup"] {
396 font-style: italic;
397 text-align: center;
398 border-bottom: 1px solid #eee;
399 }
400
401 .btn {
402 padding: 1em;
403 letter-spacing: .1em;
404 text-transform: uppercase;
405 background: Canvas;
406 border: solid;
407 cursor:pointer;
408 border-radius: 8px;
409 }
410
411 pre {
412 overflow: auto;
413 font-size: 0.9em;
414 background-color: #272822;
415 }
416
417 table.delete-row-example .htmx-swapping {
418 opacity: 0;
419 transition: visibility 0s 1s, opacity 1s linear;
420 }
421
422 /* MENU */
423
424 .menu{
425 padding:1em 0;
426 }
427
428 .github-stars span {
429 position: relative;
430 top: 4px;
431 }
432
433 /* Content */
434
435 .content {
436 padding-top:1em;
437 }
438
439 h1,h2,h3,h4{
440 margin-bottom: .65em;
441 font-weight: 600;
442 line-height: 1em;
443 }
444
445 /* UL in content */
446 :not(.nav) ul{
447 padding-left: 1em;
448 }
449
450 .nav ul{
451 padding-left: 0;
452 }
453
454 .nav ul ul {
455 padding-left:12px;
456 }
457
458
459 @media(min-width:45em) {
460
461 /* Avoid nav jump */
462 .github-stars {
463 width: 98px;
464 }
465
466 /* Menu */
467 .menu,
468 .navigation > nav{
469 display:flex;
470 align-items:center;
471 }
472 .navigation{
473 flex:1;
474 display:flex;
475 justify-content: space-between;
476 padding-left: calc(1em + 1.5vw);
477 }
478 .navigation-items > *:not(:last-child){
479 margin-right: calc(.5em + .7vw);
480 }
481
482 /* Content */
483 .content .col:not(:nth-child(1)):not(.nav) {
484 padding-left: calc(1em + 1.5vw);
485 }
486 .content .nav > p,
487 .content .nav #contents{
488 position: sticky;
489
490 }
491
492 .content .nav #contents{
493 top: 3.5em;
494 }
495 .content .nav #contents > ul {
496 max-height: calc(100vh - 5rem);
497 overflow-y: scroll;
498 }
499
500 .content .nav > p
501 {
502 position: sticky;
503 top: 2vh;
504 }
505
506 .shift-up-img {
507 position:relative;
508 top:-120px
509 }
510
511 }
512
513
514 .logo-wrapper {
515 white-space: nowrap;
516 }
517
518 table td:first-child code {
519 display: block;
520 background: none;
521 }
522
523 figure {
524 margin: 12px;
525 }
526
527 figcaption {
528 text-align: center;
529 font-style: italic;
530 }
531
532 .search-box {
533 transition: all .2s ease-in-out;
534 width: 2.5rem;
535 padding: 4px 6px;
536 border: 2px solid var(--searchBorder);
537 border-radius: 10px;
538 margin-right: 10px;
539 outline: 0;
540 }
541
542 .search-box::placeholder {
543 text-align: right;
544 }
545
546 .search-box:hover, .search-box:not(:placeholder-shown) {
547 border: 2px solid var(--midBlue);
548 }
549
550 .search-box:active, .search-box:focus, .search-box:not(:placeholder-shown) {
551 width: 10rem;
552 }
553
554 footer {
555 margin-top: 2em;
556 padding-top: 2em;
557 padding-bottom: 5em;
558 background-color: var(--footerBackground);
559 }
560
561 footer .footer-menu {
562 text-align: right;
563 }
564
565 @media(max-width:45rem) {
566 footer .footer-haiku {
567 margin-bottom: 3em;
568 }
569
570 footer .footer-menu {
571 padding-top: 3em;
572 border-top: 1px solid #eee;
573 text-align: left;
574 }
575 }
576 pre[class|="language"] {
577 line-height: 1.3;
578 padding: .5rem;
579 margin: .5rem 0;
580 border-radius: .25rem;
581 color: lightgray;
582 }
583 .zola-anchor {
584 color: var(--textColor);
585 }
586
587 .zola-anchor:hover::after {
588 content: ' #';
589 }