Repository navigation
Expand file tree
/
Copy pathdeck.css
More file actions
152 lines (152 loc) · 2.61 KB
/
Copy pathdeck.css
File metadata and controls
152 lines (152 loc) · 2.61 KB
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
/* Presentation: a 16:9 deck. Needs --bg --fg --bd from the Tokens table. Sizes are container
units, so the same slide is 28px text at 1280 wide and scales to any screen or projector. */
.sl-deck {
position: relative;
aspect-ratio: 16/9;
container-type: inline-size;
overflow: hidden;
background: var(--bg);
color: var(--fg);
border: 1px solid var(--bd);
outline: 0;
}
.sl {
position: absolute;
inset: 0;
box-sizing: border-box;
display: none;
flex-direction: column;
justify-content: center;
padding: 5cqw 5cqw 6cqw;
font:
2.2cqw/1.3 ui-monospace,
Menlo,
Consolas,
"DejaVu Sans Mono",
monospace;
}
.sl.on {
display: flex;
}
.sl h1 {
font-size: 3.8cqw;
line-height: 1.15;
margin: 0 0 0.7em;
}
.sl p {
margin: 0 0 0.6em;
max-width: 40ch;
}
.sl .dim,
.sl .src {
opacity: 0.6;
}
.sl .src {
font-size: 1.6cqw;
}
.sl ul {
list-style: none;
margin: 0;
padding: 0;
}
.sl li {
position: relative;
padding-left: 2ch;
margin: 0.3em 0;
opacity: 0.6;
} /* every point stays visible */
.sl li.now {
opacity: 1;
font-weight: 700;
}
.sl li.now:before {
content: "\203A";
position: absolute;
left: 0;
} /* the current point */
.sl pre {
margin: 0;
font-size: 1.6cqw;
line-height: 1;
white-space: pre;
} /* frames and big digits */
.sl pre.sl-frame {
font-size: 2.2cqw;
line-height: 1.1;
} /* the title slide frame: bars connect */
.sl-foot {
position: absolute;
left: 5cqw;
right: 5cqw;
bottom: 2cqw;
display: flex;
justify-content: space-between;
opacity: 0.6;
font-size: 1.3cqw;
}
.sl-notes {
display: none;
position: absolute;
left: 5cqw;
right: 5cqw;
bottom: 5cqw;
border: 1px solid var(--bd);
background: var(--bg);
padding: 1cqw 1.5cqw;
font-size: 1.5cqw;
}
.sl-deck.notes .sl-notes {
display: block;
} /* n toggles; never printed */
@media print {
@page {
size: 1280px 720px;
margin: 0;
}
.sl-deck {
aspect-ratio: auto;
border: 0;
overflow: visible;
background: #fff;
color: #000;
container-type: normal;
}
.sl {
display: flex !important;
position: relative;
width: 1280px;
height: 720px;
break-after: page;
font-size: 28px;
--bg: #fff;
--fg: #000;
--bd: #999;
}
.sl h1 {
font-size: 48px;
}
.sl .src {
font-size: 20px;
}
.sl pre {
font-size: 20px;
}
.sl pre.sl-frame {
font-size: 28px;
}
.sl-foot {
font-size: 16px;
}
.sl li {
opacity: 1;
}
.sl li.now {
font-weight: 400;
}
.sl li.now:before {
content: none;
} /* handout: every point plain */
.sl-notes {
display: none !important;
}
}