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
|
/* This is done so that .slide and .absolute-slide are easily findable in DOM CSS representation. */
.slide {
box-sizing: border-box;
height: 210mm;
padding: 1em;
width: 297mm; /* Size of landscape A4 paper */
font-size: 30px;
}
.absolute-slide {
border: none !important;
left: 50%;
margin: 0 auto;
position: absolute;
right: 0;
top: 50%;
transform: translate(-50%, -50%);
visibility: visible;
}
/* Stylesheet override */
article { max-width: calc(297mm + 2em); }
h2, h3, h4, h5, h6 {
display: block;
margin-block-start: 0;
margin-block-end: 0.5em;
}
.h-anchor { display: none; }
/* Presentation controller */
#presentCont { margin: 0.5em 0.5em 0.5em 0; }
#presentCont > img { height: 1.4em; }
/* Presenting mode */
#presentCont { display: initial; }
/* Slides styles
.slide {...} */
.slide img:not(.clicked-image) {
height: auto;
max-height: 100%;
max-width: 100%;
/* width: auto; */
}
.slide td { font: inherit; }
.slide > *:first-child, .slide > div:only-child > *:first-child,
.slide > ul:first-child > li:first-child > *:first-child,
.slide > div:only-child > ul:first-child > li:first-child > *:first-child,
.slide > ol:first-child > li:first-child > *:first-child,
.slide > div:only-child > ol:first-child > li:first-child > *:first-child {
margin-top: 0;
}
.slide .svg { max-height: 1em !important; }
.clide { display: flex; flex-direction: column; }
.clide > * { flex: 1; }
.centered { text-align: center; }
.centered h1::after, .centered h2::after, .centered h3::after {
content: " \2550"
}
.fright { float: right; text-align: right; }
* + .fright { margin-left: 1em; }
.layout-table {
margin: 0;
padding: 0;
display: table;
width: 100%;
}
.layout-table > .layout-row {
display: table-row;
}
.layout-row > * {
display: table-cell;
border: none;
padding: 0.1em;
vertical-align: middle;
}
.fixed-layout { table-layout: fixed; }
.font18 { font-size: 18px; }
.font20 { font-size: 20px; }
.font22 { font-size: 22px; }
.font25 { font-size: 25px; }
.font27 { font-size: 27px; }
.font35 { font-size: 35px; }
.lineb1 { padding: 0.5em; }
.lineb2 { padding: 1.0em; }
.lineb3 { padding: 1.5em; }
.lineb4 { padding: 2.0em; }
.lineb5 { padding: 2.5em; }
.lineb6 { padding: 3.0em; }
.lineb7 { padding: 3.5em; }
.lineb8 { padding: 4.0em; }
.lineb9 { padding: 4.5em; }
/* Presenting mode
absolute-slide {...} */
.invisible { visibility: hidden; }
.no-overflow { overflow: hidden; }
.body-bg-color { background-color: var(--bg-color); }
.absolute-cont {
bottom: 0;
opacity: 40%;
position: absolute;
right: 0;
visibility: visible;
z-index: 10;
}
#slideIndex {
border: none;
font-size: 1.4em;
vertical-align: middle;
}
/* Media specific stylings */
@media screen {
.slide {
border: 1px solid var(--fg-color);
margin-bottom: 1em;
}
}
@media print {
article, body {
border: none !important;
margin: 0;
max-width: auto;
padding: 0;
}
nav, article > :not(div), #pagenav {
display: none !important;
}
.slide {
height: 210mm;
width: 297mm;
}
}
|