Debian Codegraph @

inst/resources/snap.css

raw symbols SCIP
1 :root { --slide-width: 100%; }
2 html { scroll-snap-type: y mandatory; }
3 th, td { padding: .2em .5em; }
4 .slide { padding: 0 1em; background-color: #fff; }
5 .slide, :is(.frontmatter, .middle) .main {
6 display: flex;
7 flex-direction: column;
8 }
9 .slide {
10 & > .main { flex-grow: 1; }
11 & > .header { margin-bottom: 1em; }
12 h2, h3 { margin-top: unset; }
13 }
14 body {
15 max-width: fit-content;
16 padding: 0;
17 }
18 a { color: #eb4a47; }
19 :not(pre) > code { background: #fdfded; }
20 #TOC {
21 columns: 2;
22 &::before {
23 font-size: 1.3em;
24 font-weight: bold;
25 display: block;
26 border-bottom: 1px solid #666;
27 }
28 }
29 :is(.frontmatter, .middle) .main { justify-content: center; }
30 .footer {
31 display: flex;
32 justify-content: space-between;
33 opacity: .5;
34 font: .7em monospace;
35 }
36 .inverse {
37 background: #eee;
38 filter: invert(1);
39 }
40 .center { text-align: center; }
41 .slide-container h2 .section-number {
42 display: inline-block;
43 background: #666;
44 color: white;
45 padding: 0 .1em;
46 margin-right: .3em;
47 }
48 .overview {
49 font-size: .8em;
50 .slide-container {
51 display: flex;
52 flex-wrap: wrap;
53 justify-content: space-evenly;
54 .slide {
55 width: var(--slide-width);
56 border: 1px dotted #ccc;
57 margin-bottom: 0.5em;
58 }
59 }
60 }
61 .mirrored { transform: scale(-1, 1); }
62 .timer { opacity: 0; }
63 html:fullscreen::-webkit-scrollbar, .spacer { display: none; }
64 html:fullscreen {
65 -ms-overflow-style: none;
66 scrollbar-width: none;
67 }
68 @media screen and (min-width: 992px) {
69 :root {
70 --slide-width: 49%;
71 --slide-scale: 1;
72 --slide-ratio: 0.75;
73 --slide-top: auto;
74 }
75 .slide-mode {
76 font-size: 2em;
77 background: #d7d8d2;
78 scale: var(--slide-scale);
79 margin-top: var(--slide-top);
80 .slide {
81 min-height: calc(100vh / var(--slide-scale));
82 width: calc(100vh / var(--slide-ratio) / var(--slide-scale));
83 box-shadow: 0 0 2em #888;
84 clip-path: inset(0 -2em 0 -2em);
85 scroll-snap-align: start;
86 }
87 .spacer { display: block; }
88 .timer { opacity: initial; }
89 }
90 li li { font-size: .9em; }
91 }
92 @media (min-width: 1400px) {
93 :root { --slide-width: 33%; }
94 }
95 @media (min-width: 1800px) {
96 :root { --slide-width: 24.67%; }
97 }