blob: 979130495381ba2d54160c25bebd13b0dfe3f5b4 [file] [log] [blame]
Marc Kupietza737b1b2023-10-07 09:32:20 +02001/**
2 * IDS theme for reveal.js
3 *
4 * By Marc Kupietz
5 */
6
7
8// Default mixins and settings -----------------
9@import "../template/mixins";
10@import "../template/settings";
11// ---------------------------------------------
12
13
14// Include theme-specific fonts
Marc Kupietza0f8f682026-08-08 14:13:11 +020015// NB: https://korap.ids-mannheim.de/font/{fira-condensed,libertinus}.css both
16// return 404, so the condensed and bold faces never loaded and headings fell
17// back to a regular-width, regular-weight face. Google Fonts serves the real
18// Fira Sans Condensed incl. weights 700/800 (this is where the IDS reference
19// decks get it from too); the others are kept for locally installed copies.
20@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@300;400;700;800&family=Fira+Sans:wght@200;300;400;700&family=Fira+Sans+Extra+Condensed:wght@300;700&display=swap');
Marc Kupietza737b1b2023-10-07 09:32:20 +020021@import url('https://code.cdn.mozilla.net/fonts/fira.css');
Marc Kupietza737b1b2023-10-07 09:32:20 +020022@import url('https://korap.ids-mannheim.de/font/libertinus.css');
23
24$idsOrange: #f6a800;
25
26// Override theme settings (see ../template/settings.scss)
27$backgroundColor: #fff;
28
29$mainColor: #222;
30$headingColor: $idsOrange;
31
32$mainFontSize: 42px;
33$mainFont: 'Libertinus Serif', Helvetica, sans-serif;
Marc Kupietza0f8f682026-08-08 14:13:11 +020034$headingFont: 'Fira Sans Extra Condensed', 'Fira Sans Condensed', 'Fira Sans', Helvetica, sans-serif;
Marc Kupietza737b1b2023-10-07 09:32:20 +020035$headingTextShadow: none;
36$headingLetterSpacing: 0.05ex;
37$headingTextTransform: uppercase;
Marc Kupietza0f8f682026-08-08 14:13:11 +020038$headingFontWeight: 700;
Marc Kupietza737b1b2023-10-07 09:32:20 +020039$linkColor: #2a76dd;
40$linkColorHover: lighten( $linkColor, 15% );
41$selectionBackgroundColor: lighten( $linkColor, 25% );
42
43$heading1Size: 2em;
44$heading2Size: 1.35em;
Marc Kupietz3fdee732023-10-07 18:52:20 +020045$heading3Size: 0.9em;
46$heading4Size: 0.7em;
Marc Kupietza737b1b2023-10-07 09:32:20 +020047
48$listBulletColor: $idsOrange;
49
50// Change text colors against dark slide backgrounds
51@include dark-bg-text-color(#fff);
52
53
54// Theme template ------------------------------
55@import "../template/theme";
56// ---------------------------------------------
57
Marc Kupietza0f8f682026-08-08 14:13:11 +020058// Bar/logo sizes, expressed as fractions of the slide's own height (reveal.js
59// exposes the configured slide size as --slide-width / --slide-height custom
60// properties). Sizing relative to the slide rather than the raw viewport (vh
61// units) keeps things pinned to the true slide edges instead of drifting
62// into the letter-/pillarboxed margins when the window's aspect ratio
63// doesn't exactly match the configured one.
64$idsBarWidthRatio: 0.05;
65$idsLogoWidthRatio: 0.25;
66$idsBarWidth: calc(var(--slide-height) * #{$idsBarWidthRatio});
67$idsHeadingGap: 24px;
68
69// Vertical gap between the title and the subtitle. The subtitle's bar segment
70// reaches up by this much to bridge it, so the two segments read as one bar.
71$idsHeadingSpacing: 8px;
72
73// Rendered height of one subtitle line. Slides without a subtitle reserve
74// exactly this much, so the bar and the start of the body content stay put
75// from slide to slide instead of jumping. Must stay in sync with
76// $heading3Size (0.9em) and $headingLineHeight (1.2, from template/settings).
77$idsSubtitleHeight: 0.9 * $mainFontSize * 1.2;
78
79// The two bar segments abut at a fractional pixel, which browsers round into a
80// visible hairline. Overlapping them slightly makes the join seamless.
81$idsBarOverlap: 2px;
82
83// reveal.js centres the scaled slide in the viewport, so whenever the window's
84// aspect ratio does not match the deck's, an empty band is left beside (or
85// above) the slide and the bar would not reach the window's physical edge.
86// Working out how wide that band is needs viewport / scale, and CSS cannot
87// divide a length by a length -- which is why the hand-written IDS decks solve
88// this in JavaScript. revealjs_presentation()'s template therefore publishes
89// the band widths, in slide coordinates, as --ids-band-left / --ids-band-top,
90// and the bar simply shifts out by that much. Falling back to 0px keeps this
91// correct whenever the aspect ratios do match, and if the script never runs.
92$idsBandLeft: var(--ids-band-left, 0px);
93
94// revealjs_presentation() sets reveal.js' own `margin` option to 0, so that the
95// slide box is the whole viewport and the orange bar can sit flush in its top
96// left corner. That would otherwise leave the body content running edge to
97// edge, so the breathing room reveal.js' margin used to provide is added back
98// here as slide padding; the bar and the headings reach back out to the edge
99// with matching negative margins below. The inset is the bar plus its gap, so
100// body content lines up with the heading text rather than with the bar.
101$idsContentInset: calc(#{$idsBarWidth} + #{$idsHeadingGap});
102
103.reveal .slides section:not(.stack) {
104 box-sizing: border-box !important;
105 padding-left: #{$idsContentInset} !important;
106 padding-right: #{$idsContentInset} !important;
107}
108
109// Body content is left aligned with the headings; the title frame keeps its
110// own centered layout.
111.reveal .slides section:not(.stack):not(.title-frame) {
112 text-align: left !important;
113}
114
115// reveal.js centers lists by making them inline-block; make them ordinary
Marc Kupietze0826862026-08-11 16:34:54 +0200116// blocks so they line up with the headings.
117//
118// The markers are NOT native ::marker glyphs: browsers anchor outside-position
119// markers at slightly different offsets per engine (and per scale), and even
120// ::before font glyphs carry font-specific side bearings, so a padding(text)-
121// based alignment of the bullet column with the heading text can never be
122// pixel-exact everywhere. Instead we DRAW the markers as CSS boxes in
123// absolutely positioned li::before rules. Geometry (all values in the item's
124// own font size, so the hierarchy scales with the 0.8em per-level sizing from
125// the NESTED LISTS section below):
126//
127// - item text starts at (list left edge) + 0.65em
128// - the marker box starts exactly at the list's left edge; on content
129// slides that edge coincides with the heading text's left edge, i.e. the
130// bullet column is flush with the slide title, deterministically in every
131// browser and at every window size
132//
133// For nested lists the ::before offset has to be divided by the 0.8 font-size
134// factor, because the list's padding is computed in the PARENT item's font
135// size while the ::before offset is computed in the (smaller) child size.
136$idsListIndent: 0.65em;
137$idsListShrink: 0.8;
138$idsMarkerSize: 0.22em;
139$idsMarkerTop: calc((1.3em - #{$idsMarkerSize}) / 2);
140
Marc Kupietza0f8f682026-08-08 14:13:11 +0200141.reveal .slides section:not(.title-frame) ul,
142.reveal .slides section:not(.title-frame) ol {
143 display: block !important;
144 text-align: left !important;
145 margin-left: 0 !important;
Marc Kupietze0826862026-08-11 16:34:54 +0200146 padding-left: $idsListIndent !important;
147 list-style: none !important;
148}
149
150.reveal .slides section:not(.title-frame) li {
151 position: relative !important;
152}
153
154.reveal .slides section:not(.title-frame) li::before {
155 position: absolute !important;
156 left: calc(-1 * #{$idsListIndent}) !important;
157 color: var(--r-list-bullet-color) !important;
158}
159
160.reveal .slides section:not(.title-frame) li li::before {
161 left: calc(-1 * #{$idsListIndent} / #{$idsListShrink}) !important;
162}
163
164// Unordered-list markers: drawn boxes (round dot, square, ring for deeper
165// levels), vertically centered on the item's first line.
166.reveal .slides section:not(.title-frame) ul > li::before {
167 content: "" !important;
168 top: $idsMarkerTop !important;
169 width: $idsMarkerSize !important;
170 height: $idsMarkerSize !important;
171 box-sizing: border-box !important;
172 border-radius: 50% !important;
173 background: var(--r-list-bullet-color) !important;
174}
175
176.reveal .slides section:not(.title-frame) ul ul > li::before {
177 border-radius: 0 !important; // square
178}
179
180.reveal .slides section:not(.title-frame) ul ul ul > li::before {
181 background: transparent !important; // ring
182 border: 0.055em solid var(--r-list-bullet-color) !important;
183 border-radius: 50% !important;
184}
185
186// Ordered lists: the CSS list-item counter honours the HTML start/value
187// attributes, so pandoc's `start`/`value` lists keep their numbers. Numbers
188// are right-aligned into the indent, ending just before the item text.
189.reveal .slides section:not(.title-frame) ol > li::before {
190 content: counter(list-item, decimal) "." !important;
191 width: calc(#{$idsListIndent} - 0.12em) !important;
192 text-align: right !important;
193}
194
195// Checkbox (pandoc task) lists keep their checkboxes, no markers on top.
196.reveal .slides section:not(.title-frame) ul.task-list li::before {
197 content: none !important;
Marc Kupietza0f8f682026-08-08 14:13:11 +0200198}
199
200// reveal.js centres code blocks (width: 90%; margin: auto); make them fill the
201// slide's text column so they start on the same left edge as the headings.
202.reveal .slides section:not(.title-frame) pre {
203 width: auto !important;
204 margin-left: 0 !important;
205 margin-right: 0 !important;
206}
207
208// The IDS logo stays a slide-wide watermark (top right of every slide,
209// including the title page). The top offset is chosen so the logo's cap line
210// meets the top of the heading text rather than sitting below it; the SVG
211// carries a little transparent padding of its own, which this accounts for.
212$idsLogoTop: 10px;
213$idsLogoRight: 8px;
214
215.reveal .slides {
216 background-image: url('https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/IDS-Logo-2019.svg');
217 background-repeat: no-repeat;
218 background-position: top #{$idsLogoTop} right #{$idsLogoRight};
219 background-size: calc(var(--slide-height) * #{$idsLogoWidthRatio}) auto;
220}
221
222// The orange bar is drawn as a ::before on the headings rather than on the
223// slide, in two segments: one behind the title and one behind the subtitle.
224// Because each segment is sized as a percentage of its own heading's box, the
225// bar always ends exactly at the bottom of the last heading -- it follows a
226// subtitle when there is one, stops at the title when there isn't, and grows
227// by itself when a heading wraps onto a second line. No fixed heights, and no
228// JavaScript. Headings carry no vertical padding, so they sit as high on the
229// slide as the bar does. Every rule is !important because this theme has to
230// win against plugin- and document-level CSS loaded after it.
231.reveal .slides section:not(.title-frame) > h1:first-child,
232.reveal .slides section:not(.title-frame) > h2:first-child {
233 position: relative !important;
234 display: block !important;
235 text-align: left !important;
236 margin: 0 calc(-1 * #{$idsContentInset}) #{$idsHeadingSpacing} calc(-1 * #{$idsContentInset}) !important;
237 padding: 0 0 0 #{$idsContentInset} !important;
238 font-weight: var(--r-heading-font-weight) !important;
239}
240
241.reveal .slides section:not(.title-frame) > h1:first-child::before,
242.reveal .slides section:not(.title-frame) > h2:first-child::before,
243.reveal .slides section:not(.title-frame) > h2:first-child + h3::before {
244 content: "" !important;
245 position: absolute !important;
246 width: #{$idsBarWidth} !important;
247 // A flat fill rather than orange_bar.png: that image is two-toned (a lighter
248 // band across its top), so stretching it over each segment separately left a
249 // pale seam where the two met. The IDS reference decks draw a flat #f6a800.
250 background: #{$idsOrange} !important;
251}
252
253// Title segment: pulled out to the window's physical left edge.
254.reveal .slides section:not(.title-frame) > h1:first-child::before,
255.reveal .slides section:not(.title-frame) > h2:first-child::before {
256 top: 0 !important;
257 left: calc(-1 * #{$idsBandLeft}) !important;
258 height: 100% !important;
259}
260
261// A slide without a subtitle reserves the room one would have taken, so the
262// bar keeps the same height and the body content starts at the same place on
263// every slide. :has() is what lets us ask "is a subtitle coming?" in CSS; where
264// it is unsupported such slides simply keep a title-height bar.
265.reveal .slides section:not(.title-frame) > h1:first-child:not(:has(+ h3)),
266.reveal .slides section:not(.title-frame) > h2:first-child:not(:has(+ h3)) {
267 margin-bottom: calc(#{$idsHeadingSpacing} + #{$idsSubtitleHeight} + #{$blockMargin}) !important;
268}
269
270.reveal .slides section:not(.title-frame) > h1:first-child:not(:has(+ h3))::before,
271.reveal .slides section:not(.title-frame) > h2:first-child:not(:has(+ h3))::before {
272 height: calc(100% + #{$idsHeadingSpacing} + #{$idsSubtitleHeight}) !important;
273}
274
275// The subtitle sits in the slide's normal text column, so its segment has to
276// reach back out to the slide edge, and up over the gap to the title.
277.reveal .slides section:not(.title-frame) > h2:first-child + h3 {
278 position: relative !important;
279 text-align: left !important;
280 margin-top: 0 !important;
281 margin-left: 0 !important;
282 margin-bottom: $blockMargin !important;
283}
284
285.reveal .slides section:not(.title-frame) > h2:first-child + h3::before {
286 top: calc(-1 * (#{$idsHeadingSpacing} + #{$idsBarOverlap})) !important;
287 left: calc(-1 * (#{$idsContentInset} + #{$idsBandLeft})) !important;
288 height: calc(100% + #{$idsHeadingSpacing} + #{$idsBarOverlap}) !important;
Marc Kupietza737b1b2023-10-07 09:32:20 +0200289}
290
Marc Kupietz55c9cef2026-08-08 16:03:06 +0200291// Section-divider slides: a level 1 heading alone on a slide (pandoc marks
292// these .level1). The IDS reference decks centre that title on the slide while
293// the bar stays in its usual top left corner, so here the bar cannot hang off
294// the heading -- it is painted on the slide itself, at the height it has on
295// every other slide, and the heading gets none of the top-left treatment.
296$idsTitleHeight: 1.35 * $mainFontSize * 1.2;
297$idsBarBlockHeight: $idsTitleHeight + $idsHeadingSpacing + $idsSubtitleHeight;
298
299.reveal .slides section.level1:not(.title-frame) {
300 height: 100% !important;
301 display: flex !important;
302 flex-direction: column !important;
303 justify-content: center !important;
304}
305
306.reveal .slides section.level1:not(.title-frame)::before {
307 content: "" !important;
308 position: absolute !important;
309 top: 0 !important;
310 left: calc(-1 * #{$idsBandLeft}) !important;
311 width: #{$idsBarWidth} !important;
312 height: #{$idsBarBlockHeight} !important;
313 background: #{$idsOrange} !important;
314}
315
316.reveal .slides section.level1:not(.title-frame) > h1:first-child {
317 text-align: center !important;
318 margin: 0 !important;
319 padding: 0 !important;
320}
321
322.reveal .slides section.level1:not(.title-frame) > h1:first-child::before {
323 content: none !important;
324}
325
Marc Kupietza737b1b2023-10-07 09:32:20 +0200326// Define additional color effects based on Dracula spec
327// https://spec.draculatheme.com/
328:root {
329 --r-bold-color: #{$idsOrange};
330 --r-list-bullet-color: #{$listBulletColor};
331}
332
333.reveal {
334 strong, b {
335 color: var(--r-bold-color);
336 }
337
338 // Dracula colored list bullets and numbers
339 ul, ol {
340 li::marker {
341 color: var(--r-list-bullet-color) !important;
342 }
343 }
344}
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200345
Marc Kupietz281ba9c2026-08-11 15:37:48 +0200346// Nested list items are set progressively smaller, both to emphasise the
347// hierarchy and to keep deeply nested lists from visually competing with the
348// first level. The em size compounds down the nesting levels, so each deeper
349// level is 80% of its parent (level 2: 80%, level 3: 64%, level 4: 51%).
350// Markers and the hanging indentation (padding-left: 0.7em above) scale with
351// the text automatically.
352.reveal li li {
353 font-size: 0.8em;
354}
355
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200356
357/*********************************************
358 * FOOTER
359 *********************************************/
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200360 #ids-footer:not(title-slide) {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200361 opacity: 1;
362 background: white;
363 color: #444444;
364 border-top: dotted orange 2px;
365 transition: opacity 800ms ease-in-out;
366 position: fixed;
367 height: 6%;
368 line-height: 6%;
369 z-index: -20;
370 width: 100%;
371 letter-spacing: 0em;
372 text-align: center;
373 display: table;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200374}
375
376#ids-footer span {
377 height: 100%;
378 line-height: 100%;
379 z-index: -20;
Marc Kupietz61ad0262024-05-14 22:07:50 +0200380 font-size: 1.8vh;
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200381 font-family: "Fira Sans Condensed", "Fira Sans", "Roboto Condensed", "League Gothic", Impact, sans-serif;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200382 display: inline-block;
383 display: table-cell;
384 vertical-align: middle;
385}
386
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200387/* Bottom position for the IDS-Footer footer when both progress bar and TOC-Progress are visible */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200388div.progress[style="display: block;"] ~ #ids-footer {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200389 bottom: calc(3px + 0vh);
390}
391
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200392/* Bottom position for the IDS-Footer footer when TOC-Progress is visible */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200393#ids-footer {
394 bottom: 3px;
395}
396
397#ids-footer a {
398 color: #555555;
399}
400
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200401/* Bottom position for the IDS-Footer footer when progress bar is visible */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200402div.progress[style="display: block;"] ~ footer:last-of-type#ids-footer {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200403 bottom: 3px;
404}
405
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200406/* Bottom position for the IDS-Footer footer when neither progress bar nor TOC-Progress are visible */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200407footer:last-of-type#ids-footer {
408 bottom: 0px;
409}
410
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200411/* Make IDS-Footer invisible if explicitly indicated */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200412.no-ids-footer #ids-footer {
413 opacity: 0;
414 transition: opacity 800ms ease-in-out;
415}
416
417.title-frame #ids-footer {
418 opacity: 0;
419 transition: opacity 800ms ease-in-out;
420}
421
422.no-toc-progress #ids-footer {
423 opacity: 0;
424 transition: opacity 800ms ease-in-out;
425}
426
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200427/* Make IDS-Footer invisible in overview mode */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200428.overview #ids-footer {
429 opacity: 0;
430 transition: opacity 800ms ease-in-out;
431}
432
Marc Kupietza0f8f682026-08-08 14:13:11 +0200433// Like the orange bar/IDS logo above, this is painted on the slide itself
434// (rather than on .slide-background-content, which spans the raw,
435// unscaled viewport) so it stays pinned to the title slide's true
Marc Kupietz67715592026-08-15 14:55:18 +0200436// bottom-right corner instead of the browser window's. Its margin mirrors
437// the IDS logo's (top 10px / right 8px of the slide), so the two sit on
438// one shared inset.
Marc Kupietza0f8f682026-08-08 14:13:11 +0200439.reveal .slides section.title-frame {
440 background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg");
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200441 background-repeat: no-repeat;
Marc Kupietz67715592026-08-15 14:55:18 +0200442 background-position: right 8px bottom 10px;
443 background-size: calc(var(--slide-height) * 0.1) auto;
444 /* full slide height, so "bottom" really is the slide's bottom edge */
445 height: 100%;
Marc Kupietze9ace292024-05-14 22:11:15 +0200446}
447
448
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200449.slide-menu-items, .slide-menu-toolbar {
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200450 font-family: "Fira Sans" !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200451}
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200452
453/*
454 * Menu controls
455 */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200456body .reveal .slide-menu-button {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200457 color: #aaaaaa !important;
458 position: fixed;
459 left: 30px;
460 bottom: 2%;
461 vertical-align: middle;
462 z-index: 30;
463 font-size: 2vh;
464}
465
466#customcontrols > ul {
467 color: #aaaaaa !important;
468 position: fixed;
Marc Kupietzf51e9152023-10-07 15:32:33 +0200469 left: 50px;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200470 bottom: 2% !important;
471 vertical-align: middle;
472 z-index: 30;
473 font-size: 2vh;
474}
475
476@media only screen and (min-width: 500px) {
477 #customcontrols > ul {
478 bottom: 2% !important;
479 }
480}
Marc Kupietz3fdee732023-10-07 18:52:20 +0200481
Marc Kupietzc7249f92023-10-10 07:16:50 +0200482.reveal .controls .controls-arrow {
483 position: relative;
484 width: 3.6em;
485 height: 3.6em;
486 bottom: -12px;
487 right: -4px;
488}
489
Marc Kupietz3fdee732023-10-07 18:52:20 +0200490.reveal h3, h4, h5, h6 {
491 text-transform: none !important;
492}
493
494.reveal h3, h4, h5, h6 {
495 text-transform: none !important;
496}
497
498.reveal h2 + h3 {
499 margin-top: -0.5em !important;
500}
Marc Kupietzdf0eda92023-10-07 20:50:00 +0200501
502.title-frame h1,
503.title-frame h2 {
504 margin: 0 0 0 0;
505 background: rgb(246, 168, 0);
506 color: white;
507 font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif;
508 font-weight: 600;
509 line-height: 1.2;
510 letter-spacing: 0.05ex;
511 text-transform: uppercase;
512 width: 100%;
513 margin-top: .5em;
514 padding-top: .5em;
515 font-size: 1.75em;
516 margin-left: 0;
517 text-align: center;
518 text-shadow: none;
519 word-wrap: break-word;
520}
521
522
523.title-frame .author {
524 font-family: "Fira Sans Condensed", sans-serif;
525 font-weight: 400;
526 color: #657b83;
527 margin-top: 10vh;
528}
529
530.title-frame .place {
531 font-family: "Fira Sans Condensed", sans-serif;
532 margin-top: 40px;
533 font-weight: 400;
534 color: #657b83;
535}
536
537.title-frame h2 {
538 margin-top: -3px;
539 margin-bottom: 1em;
540 padding-bottom: .5em;
541 font-size: 1em;
542}
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200543
544/*********************************************
545 * TABLES
546 *********************************************/
547
548 th {
549 color: rgb(246, 168, 0);
550}
551
552table {
553 font-family: 'Fira Sans Condensed', sans-serif;
554 font-weight: 400;
555 font-size: 16px;
556}
557
558.reveal table.dataTable {
559 border: #aaaaaa 1px solid;
560 border-collapse: collapse;
561}
562
563.reveal table.dataTable td {
564 border: #aaaaaa 1px solid;
565 border-collapse: collapse;
566}
567
568.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate, table.dataTable thead > tr > th.sorting::before, table.dataTable thead > tr > th.sorting::after, table.dataTable thead > tr > th.sorting_asc::before, table.dataTable thead > tr > th.sorting_asc::after, table.dataTable thead > tr > th.sorting_desc::before, table.dataTable thead > tr > th.sorting_desc::after, table.dataTable thead > tr > th.sorting_asc_disabled::before, table.dataTable thead > tr > th.sorting_asc_disabled::after, table.dataTable thead > tr > th.sorting_desc_disabled::before, table.dataTable thead > tr > th.sorting_desc_disabled::after, table.dataTable thead > tr > td.sorting::before, table.dataTable thead > tr > td.sorting::after, table.dataTable thead > tr > td.sorting_asc::before, table.dataTable thead > tr > td.sorting_asc::after, table.dataTable thead > tr > td.sorting_desc::before, table.dataTable thead > tr > td.sorting_desc::after, table.dataTable thead > tr > td.sorting_asc_disabled::before, table.dataTable thead > tr > td.sorting_asc_disabled::after, table.dataTable thead > tr > td.sorting_desc_disabled::before, table.dataTable thead > tr > td.sorting_desc_disabled::after {
569 display: none;
570}
571
572.caption {
573 font-family: 'Fira Sans Condensed', sans-serif;
574 font-weight: 400;
575 font-size: 16px;
576 text-align: center;
577}
578
579/*
580table.display td { white-space: nowrap; }
581*/
582
583.dt-buttons, .dataTables_filter {
584 margin-top: 10pt;
585}
586
Marc Kupietz069f1e42023-10-11 10:26:16 +0200587/* Sort Arrows in DataTables */
588table.dataTable thead>tr>th.sorting:before, table.dataTable thead>tr>th.sorting:after, table.dataTable thead>tr>th.sorting_asc:before, table.dataTable thead>tr>th.sorting_asc:after, table.dataTable thead>tr>th.sorting_desc:before, table.dataTable thead>tr>th.sorting_desc:after, table.dataTable thead>tr>th.sorting_asc_disabled:before, table.dataTable thead>tr>th.sorting_asc_disabled:after, table.dataTable thead>tr>th.sorting_desc_disabled:before, table.dataTable thead>tr>th.sorting_desc_disabled:after, table.dataTable thead>tr>td.sorting:before, table.dataTable thead>tr>td.sorting:after, table.dataTable thead>tr>td.sorting_asc:before, table.dataTable thead>tr>td.sorting_asc:after, table.dataTable thead>tr>td.sorting_desc:before, table.dataTable thead>tr>td.sorting_desc:after, table.dataTable thead>tr>td.sorting_asc_disabled:before, table.dataTable thead>tr>td.sorting_asc_disabled:after, table.dataTable thead>tr>td.sorting_desc_disabled:before, table.dataTable thead>tr>td.sorting_desc_disabled:after {
589 right: 0 !important;
590 line-height: 80% !important;
591}
592
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200593/*********************************************
594 * BIBLIOGRAPHY
595 *********************************************/
596
597.reveal .references {
598 font-family: "Fira Sans Condensed", sans-serif;
599 font-size: 16px;
600 text-align: left;
601 margin-top: 35px;
602 max-height: 540px;
603 font-weight: 400;
604 color: #253b43;
605 overflow-y: auto;
606}
607
608.hanging-indent > .csl-entry {
609 padding-left: 22px ;
610 text-indent: -22px ;
611}
612
Marc Kupietz21f526c2026-08-14 12:32:56 +0200613// .references scopes these above pandoc's CSL defaults (div.csl-entry), which
614// otherwise win on specificity and pin margin-bottom to 0em.
615.references .csl-entry {
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200616 color: #888888;
Marc Kupietz21f526c2026-08-14 12:32:56 +0200617 margin-bottom: 0.5em;
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200618}
619
Marc Kupietz21f526c2026-08-14 12:32:56 +0200620// "Authors (Year):" as a bold dark first line; the theme template's JS wraps
621// the leading text of each entry in .csl-authors-year (see default.html) --
622// which part of an entry citeproc wraps in spans depends on the entry type, so
623// a CSS-only break cannot place it reliably.
624.csl-entry .csl-authors-year {
625 display: block;
626 font-weight: bold;
627 color: #4d616b;
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200628}
Marc Kupietz11797162023-10-09 23:17:36 +0200629
630.reveal code.sourceCode:last-child + pre {
631 height: 800px !important;
Marc Kupietzc7249f92023-10-10 07:16:50 +0200632}
633
Marc Kupietz589d1b82023-10-10 12:31:33 +0200634
635/*********************************************
636 * ARROWS and SLIDE NUMBERS
637 *********************************************/
638
639 .reveal .controls .controls-arrow:after, .reveal .controls .controls-arrow:before {
640 width: 13px !important; /* size */
641 height: 4px; /* line width */
642}
643
644.reveal .controls {
645 display: none;
646 position: absolute;
647 top: auto;
648 bottom: -8px;
649 right: 16px;
650 left: auto;
651 z-index: 11;
652 /* color: #000;*/
653 pointer-events: none;
654 font-size: 8px;
655}
656
657.reveal .controls .controls-arrow {
658 position: relative;
659 height: 3.6em;
660 width: 1.2em; /* distance betwee arrows */
661 bottom: 0;
662 right: 0;
663}
664
665.reveal div.slide-number {
666 text-align: center;
667 width: 2em;
668 position: absolute;
669 display: block;
670 right: 29px;
671 bottom: 22px;
672 z-index: 31;
673 font-family: "Fira Sans Condensed", sans-serif;
674 font-size: 18px;
675 line-height: 1;
676 background-color: white;
677 color: #666;
678 padding: 0;
679}
680