blob: 41a1e437b99e1a92a590989ab03b6fb253dd5dd5 [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 Kupietzc22be152026-08-18 15:54:55 +020022// Fira Code: the monospaced Fira Sans variant for highlighted/code text (as
23// in the IDS reference decks; falls back to Fira Mono from the Mozilla CSS
24// above, then DejaVu Sans Mono)
25@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');
Marc Kupietza737b1b2023-10-07 09:32:20 +020026@import url('https://korap.ids-mannheim.de/font/libertinus.css');
27
28$idsOrange: #f6a800;
29
30// Override theme settings (see ../template/settings.scss)
31$backgroundColor: #fff;
32
33$mainColor: #222;
34$headingColor: $idsOrange;
35
36$mainFontSize: 42px;
37$mainFont: 'Libertinus Serif', Helvetica, sans-serif;
Marc Kupietza0f8f682026-08-08 14:13:11 +020038$headingFont: 'Fira Sans Extra Condensed', 'Fira Sans Condensed', 'Fira Sans', Helvetica, sans-serif;
Marc Kupietza737b1b2023-10-07 09:32:20 +020039$headingTextShadow: none;
40$headingLetterSpacing: 0.05ex;
41$headingTextTransform: uppercase;
Marc Kupietza0f8f682026-08-08 14:13:11 +020042$headingFontWeight: 700;
Marc Kupietza737b1b2023-10-07 09:32:20 +020043$linkColor: #2a76dd;
44$linkColorHover: lighten( $linkColor, 15% );
45$selectionBackgroundColor: lighten( $linkColor, 25% );
46
47$heading1Size: 2em;
48$heading2Size: 1.35em;
Marc Kupietz3fdee732023-10-07 18:52:20 +020049$heading3Size: 0.9em;
50$heading4Size: 0.7em;
Marc Kupietza737b1b2023-10-07 09:32:20 +020051
52$listBulletColor: $idsOrange;
53
Marc Kupietzc22be152026-08-18 15:54:55 +020054// --r-code-font (template emits #{$codeFont} as-is)
55$codeFont: "Fira Code", "Fira Mono", "DejaVu Sans Mono", "Source Code Pro", monospace;
56
Marc Kupietza737b1b2023-10-07 09:32:20 +020057// Change text colors against dark slide backgrounds
58@include dark-bg-text-color(#fff);
59
60
61// Theme template ------------------------------
62@import "../template/theme";
63// ---------------------------------------------
64
Marc Kupietza0f8f682026-08-08 14:13:11 +020065// Bar/logo sizes, expressed as fractions of the slide's own height (reveal.js
66// exposes the configured slide size as --slide-width / --slide-height custom
67// properties). Sizing relative to the slide rather than the raw viewport (vh
68// units) keeps things pinned to the true slide edges instead of drifting
69// into the letter-/pillarboxed margins when the window's aspect ratio
70// doesn't exactly match the configured one.
71$idsBarWidthRatio: 0.05;
72$idsLogoWidthRatio: 0.25;
73$idsBarWidth: calc(var(--slide-height) * #{$idsBarWidthRatio});
74$idsHeadingGap: 24px;
75
76// Vertical gap between the title and the subtitle. The subtitle's bar segment
77// reaches up by this much to bridge it, so the two segments read as one bar.
78$idsHeadingSpacing: 8px;
79
80// Rendered height of one subtitle line. Slides without a subtitle reserve
81// exactly this much, so the bar and the start of the body content stay put
82// from slide to slide instead of jumping. Must stay in sync with
83// $heading3Size (0.9em) and $headingLineHeight (1.2, from template/settings).
84$idsSubtitleHeight: 0.9 * $mainFontSize * 1.2;
85
86// The two bar segments abut at a fractional pixel, which browsers round into a
87// visible hairline. Overlapping them slightly makes the join seamless.
88$idsBarOverlap: 2px;
89
90// reveal.js centres the scaled slide in the viewport, so whenever the window's
91// aspect ratio does not match the deck's, an empty band is left beside (or
92// above) the slide and the bar would not reach the window's physical edge.
93// Working out how wide that band is needs viewport / scale, and CSS cannot
94// divide a length by a length -- which is why the hand-written IDS decks solve
95// this in JavaScript. revealjs_presentation()'s template therefore publishes
96// the band widths, in slide coordinates, as --ids-band-left / --ids-band-top,
97// and the bar simply shifts out by that much. Falling back to 0px keeps this
98// correct whenever the aspect ratios do match, and if the script never runs.
99$idsBandLeft: var(--ids-band-left, 0px);
100
101// revealjs_presentation() sets reveal.js' own `margin` option to 0, so that the
102// slide box is the whole viewport and the orange bar can sit flush in its top
103// left corner. That would otherwise leave the body content running edge to
104// edge, so the breathing room reveal.js' margin used to provide is added back
105// here as slide padding; the bar and the headings reach back out to the edge
106// with matching negative margins below. The inset is the bar plus its gap, so
107// body content lines up with the heading text rather than with the bar.
108$idsContentInset: calc(#{$idsBarWidth} + #{$idsHeadingGap});
109
110.reveal .slides section:not(.stack) {
111 box-sizing: border-box !important;
112 padding-left: #{$idsContentInset} !important;
113 padding-right: #{$idsContentInset} !important;
114}
115
116// Body content is left aligned with the headings; the title frame keeps its
117// own centered layout.
118.reveal .slides section:not(.stack):not(.title-frame) {
119 text-align: left !important;
120}
121
122// reveal.js centers lists by making them inline-block; make them ordinary
Marc Kupietze0826862026-08-11 16:34:54 +0200123// blocks so they line up with the headings.
124//
125// The markers are NOT native ::marker glyphs: browsers anchor outside-position
126// markers at slightly different offsets per engine (and per scale), and even
127// ::before font glyphs carry font-specific side bearings, so a padding(text)-
128// based alignment of the bullet column with the heading text can never be
129// pixel-exact everywhere. Instead we DRAW the markers as CSS boxes in
130// absolutely positioned li::before rules. Geometry (all values in the item's
131// own font size, so the hierarchy scales with the 0.8em per-level sizing from
132// the NESTED LISTS section below):
133//
134// - item text starts at (list left edge) + 0.65em
135// - the marker box starts exactly at the list's left edge; on content
136// slides that edge coincides with the heading text's left edge, i.e. the
137// bullet column is flush with the slide title, deterministically in every
138// browser and at every window size
139//
140// For nested lists the ::before offset has to be divided by the 0.8 font-size
141// factor, because the list's padding is computed in the PARENT item's font
142// size while the ::before offset is computed in the (smaller) child size.
143$idsListIndent: 0.65em;
144$idsListShrink: 0.8;
145$idsMarkerSize: 0.22em;
146$idsMarkerTop: calc((1.3em - #{$idsMarkerSize}) / 2);
147
Marc Kupietza0f8f682026-08-08 14:13:11 +0200148.reveal .slides section:not(.title-frame) ul,
149.reveal .slides section:not(.title-frame) ol {
150 display: block !important;
151 text-align: left !important;
152 margin-left: 0 !important;
Marc Kupietze0826862026-08-11 16:34:54 +0200153 padding-left: $idsListIndent !important;
154 list-style: none !important;
155}
156
157.reveal .slides section:not(.title-frame) li {
158 position: relative !important;
159}
160
161.reveal .slides section:not(.title-frame) li::before {
162 position: absolute !important;
163 left: calc(-1 * #{$idsListIndent}) !important;
164 color: var(--r-list-bullet-color) !important;
165}
166
167.reveal .slides section:not(.title-frame) li li::before {
168 left: calc(-1 * #{$idsListIndent} / #{$idsListShrink}) !important;
169}
170
171// Unordered-list markers: drawn boxes (round dot, square, ring for deeper
172// levels), vertically centered on the item's first line.
173.reveal .slides section:not(.title-frame) ul > li::before {
174 content: "" !important;
175 top: $idsMarkerTop !important;
176 width: $idsMarkerSize !important;
177 height: $idsMarkerSize !important;
178 box-sizing: border-box !important;
179 border-radius: 50% !important;
180 background: var(--r-list-bullet-color) !important;
181}
182
183.reveal .slides section:not(.title-frame) ul ul > li::before {
184 border-radius: 0 !important; // square
185}
186
187.reveal .slides section:not(.title-frame) ul ul ul > li::before {
188 background: transparent !important; // ring
189 border: 0.055em solid var(--r-list-bullet-color) !important;
190 border-radius: 50% !important;
191}
192
193// Ordered lists: the CSS list-item counter honours the HTML start/value
194// attributes, so pandoc's `start`/`value` lists keep their numbers. Numbers
195// are right-aligned into the indent, ending just before the item text.
196.reveal .slides section:not(.title-frame) ol > li::before {
197 content: counter(list-item, decimal) "." !important;
198 width: calc(#{$idsListIndent} - 0.12em) !important;
199 text-align: right !important;
200}
201
202// Checkbox (pandoc task) lists keep their checkboxes, no markers on top.
203.reveal .slides section:not(.title-frame) ul.task-list li::before {
204 content: none !important;
Marc Kupietza0f8f682026-08-08 14:13:11 +0200205}
206
207// reveal.js centres code blocks (width: 90%; margin: auto); make them fill the
208// slide's text column so they start on the same left edge as the headings.
209.reveal .slides section:not(.title-frame) pre {
210 width: auto !important;
211 margin-left: 0 !important;
212 margin-right: 0 !important;
213}
214
215// The IDS logo stays a slide-wide watermark (top right of every slide,
Marc Kupietz28822cd2026-08-20 14:10:18 +0200216// including the title page). The SVG carries no internal padding of its own,
217// so it needs an explicit inset from the slide's right edge; the top offset is
218// chosen so the logo's cap line meets the top of the heading text.
219$idsLogoTop: 6px;
Marc Kupietza0f8f682026-08-08 14:13:11 +0200220$idsLogoRight: 8px;
221
222.reveal .slides {
223 background-image: url('https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/IDS-Logo-2019.svg');
224 background-repeat: no-repeat;
225 background-position: top #{$idsLogoTop} right #{$idsLogoRight};
226 background-size: calc(var(--slide-height) * #{$idsLogoWidthRatio}) auto;
227}
228
229// The orange bar is drawn as a ::before on the headings rather than on the
230// slide, in two segments: one behind the title and one behind the subtitle.
231// Because each segment is sized as a percentage of its own heading's box, the
232// bar always ends exactly at the bottom of the last heading -- it follows a
233// subtitle when there is one, stops at the title when there isn't, and grows
234// by itself when a heading wraps onto a second line. No fixed heights, and no
235// JavaScript. Headings carry no vertical padding, so they sit as high on the
236// slide as the bar does. Every rule is !important because this theme has to
237// win against plugin- and document-level CSS loaded after it.
238.reveal .slides section:not(.title-frame) > h1:first-child,
239.reveal .slides section:not(.title-frame) > h2:first-child {
240 position: relative !important;
241 display: block !important;
242 text-align: left !important;
243 margin: 0 calc(-1 * #{$idsContentInset}) #{$idsHeadingSpacing} calc(-1 * #{$idsContentInset}) !important;
244 padding: 0 0 0 #{$idsContentInset} !important;
245 font-weight: var(--r-heading-font-weight) !important;
246}
247
248.reveal .slides section:not(.title-frame) > h1:first-child::before,
249.reveal .slides section:not(.title-frame) > h2:first-child::before,
250.reveal .slides section:not(.title-frame) > h2:first-child + h3::before {
251 content: "" !important;
252 position: absolute !important;
253 width: #{$idsBarWidth} !important;
254 // A flat fill rather than orange_bar.png: that image is two-toned (a lighter
255 // band across its top), so stretching it over each segment separately left a
256 // pale seam where the two met. The IDS reference decks draw a flat #f6a800.
257 background: #{$idsOrange} !important;
258}
259
260// Title segment: pulled out to the window's physical left edge.
261.reveal .slides section:not(.title-frame) > h1:first-child::before,
262.reveal .slides section:not(.title-frame) > h2:first-child::before {
263 top: 0 !important;
264 left: calc(-1 * #{$idsBandLeft}) !important;
265 height: 100% !important;
266}
267
268// A slide without a subtitle reserves the room one would have taken, so the
269// bar keeps the same height and the body content starts at the same place on
270// every slide. :has() is what lets us ask "is a subtitle coming?" in CSS; where
271// it is unsupported such slides simply keep a title-height bar.
Marc Kupietz6acbd662026-08-20 14:41:00 +0200272//
273// The lone title is vertically CENTRED in its reserved bar: half of the
274// reservation goes above the text as top padding (the bar segment, anchored
275// to the heading box, moves up with it), and the bottom half stays in the bar
276// extension plus margin. The space consumed below the bar is reduced by the
277// same half, so body content starts where it always did.
Marc Kupietza0f8f682026-08-08 14:13:11 +0200278.reveal .slides section:not(.title-frame) > h1:first-child:not(:has(+ h3)),
279.reveal .slides section:not(.title-frame) > h2:first-child:not(:has(+ h3)) {
Marc Kupietz6acbd662026-08-20 14:41:00 +0200280 padding-top: calc((#{$idsHeadingSpacing} + #{$idsSubtitleHeight}) / 2) !important;
281 margin-bottom: calc((#{$idsHeadingSpacing} + #{$idsSubtitleHeight}) / 2 + #{$blockMargin}) !important;
Marc Kupietza0f8f682026-08-08 14:13:11 +0200282}
283
284.reveal .slides section:not(.title-frame) > h1:first-child:not(:has(+ h3))::before,
285.reveal .slides section:not(.title-frame) > h2:first-child:not(:has(+ h3))::before {
Marc Kupietz6acbd662026-08-20 14:41:00 +0200286 height: calc(100% + (#{$idsHeadingSpacing} + #{$idsSubtitleHeight}) / 2) !important;
Marc Kupietza0f8f682026-08-08 14:13:11 +0200287}
288
Marc Kupietzd023f072026-08-20 15:27:37 +0200289// Vertical balance when a subtitle follows: the orange strip between the
290// title's baseline and the subtitle's cap height used to be title descent (16)
291// + segment spacing (8) + subtitle leading (3) ≈ 27px, against only ≈ 11px of
292// orange above the title's cap height. Moving the title 8px DOWN inside its
293// box while REMOVING the 8px segment spacing makes the two margins equal
294// (19px each) AND keeps the bar's total height and the body content's start
295// position pixel-identical: box grows by 8, spacing drops by 8. The subtitle
296// segment still rises (#{$idsHeadingSpacing} + #{$idsBarOverlap}) above its
297// own box, so the bar stays seamless.
298.reveal .slides section:not(.title-frame) > h1:first-child:has(+ h3),
299.reveal .slides section:not(.title-frame) > h2:first-child:has(+ h3) {
300 padding-top: #{$idsHeadingSpacing} !important;
301 margin-bottom: 0 !important;
302}
303
Marc Kupietza0f8f682026-08-08 14:13:11 +0200304// The subtitle sits in the slide's normal text column, so its segment has to
305// reach back out to the slide edge, and up over the gap to the title.
306.reveal .slides section:not(.title-frame) > h2:first-child + h3 {
307 position: relative !important;
308 text-align: left !important;
309 margin-top: 0 !important;
310 margin-left: 0 !important;
311 margin-bottom: $blockMargin !important;
312}
313
314.reveal .slides section:not(.title-frame) > h2:first-child + h3::before {
315 top: calc(-1 * (#{$idsHeadingSpacing} + #{$idsBarOverlap})) !important;
316 left: calc(-1 * (#{$idsContentInset} + #{$idsBandLeft})) !important;
317 height: calc(100% + #{$idsHeadingSpacing} + #{$idsBarOverlap}) !important;
Marc Kupietza737b1b2023-10-07 09:32:20 +0200318}
319
Marc Kupietz55c9cef2026-08-08 16:03:06 +0200320// Section-divider slides: a level 1 heading alone on a slide (pandoc marks
321// these .level1). The IDS reference decks centre that title on the slide while
322// the bar stays in its usual top left corner, so here the bar cannot hang off
323// the heading -- it is painted on the slide itself, at the height it has on
324// every other slide, and the heading gets none of the top-left treatment.
325$idsTitleHeight: 1.35 * $mainFontSize * 1.2;
326$idsBarBlockHeight: $idsTitleHeight + $idsHeadingSpacing + $idsSubtitleHeight;
327
328.reveal .slides section.level1:not(.title-frame) {
329 height: 100% !important;
330 display: flex !important;
331 flex-direction: column !important;
332 justify-content: center !important;
333}
334
335.reveal .slides section.level1:not(.title-frame)::before {
336 content: "" !important;
337 position: absolute !important;
338 top: 0 !important;
339 left: calc(-1 * #{$idsBandLeft}) !important;
340 width: #{$idsBarWidth} !important;
341 height: #{$idsBarBlockHeight} !important;
342 background: #{$idsOrange} !important;
343}
344
345.reveal .slides section.level1:not(.title-frame) > h1:first-child {
346 text-align: center !important;
347 margin: 0 !important;
348 padding: 0 !important;
349}
350
351.reveal .slides section.level1:not(.title-frame) > h1:first-child::before {
352 content: none !important;
353}
354
Marc Kupietza737b1b2023-10-07 09:32:20 +0200355// Define additional color effects based on Dracula spec
356// https://spec.draculatheme.com/
357:root {
358 --r-bold-color: #{$idsOrange};
359 --r-list-bullet-color: #{$listBulletColor};
360}
361
362.reveal {
Marc Kupietz9b795bd2026-08-19 06:58:44 +0200363 // Bold ("highlighted") text gets the orange colour AND the condensed Fira
364 // Sans face, as in the IDS reference decks -- the lighter weight and 90%
365 // size keep it from dominating the serif body text.
Marc Kupietza737b1b2023-10-07 09:32:20 +0200366 strong, b {
Marc Kupietz9b795bd2026-08-19 06:58:44 +0200367 font-family: "Fira Sans Condensed", sans-serif;
368 font-weight: 600;
369 font-size: 90%;
Marc Kupietza737b1b2023-10-07 09:32:20 +0200370 color: var(--r-bold-color);
371 }
372
373 // Dracula colored list bullets and numbers
374 ul, ol {
375 li::marker {
376 color: var(--r-list-bullet-color) !important;
377 }
378 }
379}
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200380
Marc Kupietz281ba9c2026-08-11 15:37:48 +0200381// Nested list items are set progressively smaller, both to emphasise the
382// hierarchy and to keep deeply nested lists from visually competing with the
383// first level. The em size compounds down the nesting levels, so each deeper
384// level is 80% of its parent (level 2: 80%, level 3: 64%, level 4: 51%).
385// Markers and the hanging indentation (padding-left: 0.7em above) scale with
386// the text automatically.
387.reveal li li {
388 font-size: 0.8em;
389}
390
Marc Kupietzf4945eb2026-08-19 17:48:41 +0200391// Description lists: dt in orange Fira Sans Condensed, dd indented.
392.reveal dl {
393 font-size: 0.62em;
394 line-height: 1.25;
395}
396.reveal dt {
397 font-weight: 700;
398 margin-top: 0.35em;
399 font-family: "Fira Sans Condensed", sans-serif;
400 color: $idsOrange;
401}
402.reveal dd {
403 margin: 0 0 0 1.2em;
404 color: #444;
405}
406
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200407
408/*********************************************
409 * FOOTER
410 *********************************************/
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200411 #ids-footer:not(title-slide) {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200412 opacity: 1;
413 background: white;
414 color: #444444;
415 border-top: dotted orange 2px;
416 transition: opacity 800ms ease-in-out;
417 position: fixed;
418 height: 6%;
419 line-height: 6%;
420 z-index: -20;
421 width: 100%;
422 letter-spacing: 0em;
423 text-align: center;
424 display: table;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200425}
426
427#ids-footer span {
428 height: 100%;
429 line-height: 100%;
430 z-index: -20;
Marc Kupietz61ad0262024-05-14 22:07:50 +0200431 font-size: 1.8vh;
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200432 font-family: "Fira Sans Condensed", "Fira Sans", "Roboto Condensed", "League Gothic", Impact, sans-serif;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200433 display: inline-block;
434 display: table-cell;
435 vertical-align: middle;
436}
437
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200438/* Bottom position for the IDS-Footer footer when both progress bar and TOC-Progress are visible */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200439div.progress[style="display: block;"] ~ #ids-footer {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200440 bottom: calc(3px + 0vh);
441}
442
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200443/* Bottom position for the IDS-Footer footer when TOC-Progress is visible */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200444#ids-footer {
445 bottom: 3px;
446}
447
448#ids-footer a {
449 color: #555555;
450}
451
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200452/* Bottom position for the IDS-Footer footer when progress bar is visible */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200453div.progress[style="display: block;"] ~ footer:last-of-type#ids-footer {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200454 bottom: 3px;
455}
456
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200457/* Bottom position for the IDS-Footer footer when neither progress bar nor TOC-Progress are visible */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200458footer:last-of-type#ids-footer {
459 bottom: 0px;
460}
461
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200462/* Make IDS-Footer invisible if explicitly indicated */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200463.no-ids-footer #ids-footer {
464 opacity: 0;
465 transition: opacity 800ms ease-in-out;
466}
467
468.title-frame #ids-footer {
469 opacity: 0;
470 transition: opacity 800ms ease-in-out;
471}
472
473.no-toc-progress #ids-footer {
474 opacity: 0;
475 transition: opacity 800ms ease-in-out;
476}
477
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200478/* Make IDS-Footer invisible in overview mode */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200479.overview #ids-footer {
480 opacity: 0;
481 transition: opacity 800ms ease-in-out;
482}
483
Marc Kupietza0f8f682026-08-08 14:13:11 +0200484// Like the orange bar/IDS logo above, this is painted on the slide itself
485// (rather than on .slide-background-content, which spans the raw,
486// unscaled viewport) so it stays pinned to the title slide's true
Marc Kupietz67715592026-08-15 14:55:18 +0200487// bottom-right corner instead of the browser window's. Its margin mirrors
Marc Kupietz28822cd2026-08-20 14:10:18 +0200488// the IDS logo's (top 6px / right 8px of the slide), so the two sit on
Marc Kupietz67715592026-08-15 14:55:18 +0200489// one shared inset.
Marc Kupietza0f8f682026-08-08 14:13:11 +0200490.reveal .slides section.title-frame {
491 background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg");
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200492 background-repeat: no-repeat;
Marc Kupietz67715592026-08-15 14:55:18 +0200493 background-position: right 8px bottom 10px;
494 background-size: calc(var(--slide-height) * 0.1) auto;
495 /* full slide height, so "bottom" really is the slide's bottom edge */
496 height: 100%;
Marc Kupietze9ace292024-05-14 22:11:15 +0200497}
498
499
Marc Kupietz903104a2026-08-20 10:10:41 +0200500/*********************************************
501 * SLIDES MENU
502 *********************************************/
503
504// The menu plugin copies .reveal's computed font-family onto .slide-menu as an
505// inline style (and its own CSS is loaded after the theme), so without
506// !important here the menu would come out in the Libertinus serif body face.
507// Fira Sans Condensed is the IDS sans for navigation/UI text, and its narrow
508// glyphs keep long (German) slide titles on one line.
509.slide-menu-wrapper .slide-menu {
510 font-family: "Fira Sans Condensed", sans-serif !important;
511}
512
513// Widen the menu a little over the plugin's 300px default -- but only the
514// default: a width the user picked via the menu-width option maps to one of
515// the plugin's width classes (or an inline style), which must keep winning.
516.slide-menu-wrapper .slide-menu:not(.slide-menu--wide):not(.slide-menu--half):not(.slide-menu--third):not(.slide-menu--full):not(.slide-menu--custom) {
Marc Kupietz7427cca2026-08-20 10:53:03 +0200517 width: 372px !important;
Marc Kupietz903104a2026-08-20 10:10:41 +0200518}
519
520// Tighter, less wasteful rows than the plugin's 10px 18px padding with a 12px
521// icon gap: the icon column and generous side padding eat exactly the width
522// the titles need.
523.slide-menu-wrapper .slide-menu-item,
524.slide-menu-wrapper .slide-menu-item-vertical {
525 padding: 6px 12px !important;
526 line-height: 1.3 !important;
527}
528
529.slide-menu-wrapper .slide-menu-item-vertical {
530 padding-left: 26px !important;
531}
532
533// Wrapped titles: make the row a flex line so the second line aligns with the
534// first instead of sliding under the bullet/circle icon. The icon sits on the
535// first line's text baseline; the title column takes the remaining width and
536// wraps within itself.
537.slide-menu-wrapper .slide-menu-item,
538.slide-menu-wrapper .slide-menu-item-vertical {
539 display: flex !important;
540 align-items: baseline !important;
541}
542
543.slide-menu-wrapper .slide-menu-item-title {
544 flex: 1 !important;
545 min-width: 0 !important;
546}
547
548.slide-menu-wrapper .slide-menu-item i.far,
549.slide-menu-wrapper .slide-menu-item i.fas,
550.slide-menu-wrapper .slide-menu-item-vertical i.far,
551.slide-menu-wrapper .slide-menu-item-vertical i.fas,
552.slide-menu-wrapper .slide-menu-item svg.svg-inline--fa,
553.slide-menu-wrapper .slide-menu-item-vertical svg.svg-inline--fa {
554 padding-right: 8px !important;
555}
556
Marc Kupietz7427cca2026-08-20 10:53:03 +0200557// Top-level (section) entries in bold, marking the hierarchy as the indented
558// sub-slides alone do now. Note the Google Fonts import only ships Fira Sans
559// Condensed in 300/400/700/800 -- there is no 600.
560.slide-menu-wrapper .slide-menu-item {
561 font-weight: 700 !important;
562}
563
Marc Kupietz903104a2026-08-20 10:10:41 +0200564// Current slide in the IDS accent colour, matching the slide-number and the
565// orange bar.
566.slide-menu-wrapper .active-menu-panel li.active {
567 color: #{$idsOrange} !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200568}
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200569
570/*
571 * Menu controls
572 */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200573body .reveal .slide-menu-button {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200574 color: #aaaaaa !important;
575 position: fixed;
576 left: 30px;
577 bottom: 2%;
578 vertical-align: middle;
579 z-index: 30;
580 font-size: 2vh;
581}
582
583#customcontrols > ul {
584 color: #aaaaaa !important;
585 position: fixed;
Marc Kupietzf51e9152023-10-07 15:32:33 +0200586 left: 50px;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200587 bottom: 2% !important;
588 vertical-align: middle;
589 z-index: 30;
590 font-size: 2vh;
591}
592
593@media only screen and (min-width: 500px) {
594 #customcontrols > ul {
595 bottom: 2% !important;
596 }
597}
Marc Kupietz3fdee732023-10-07 18:52:20 +0200598
Marc Kupietzc7249f92023-10-10 07:16:50 +0200599.reveal .controls .controls-arrow {
600 position: relative;
601 width: 3.6em;
602 height: 3.6em;
603 bottom: -12px;
604 right: -4px;
605}
606
Marc Kupietz3fdee732023-10-07 18:52:20 +0200607.reveal h3, h4, h5, h6 {
608 text-transform: none !important;
609}
610
611.reveal h3, h4, h5, h6 {
612 text-transform: none !important;
613}
614
615.reveal h2 + h3 {
616 margin-top: -0.5em !important;
617}
Marc Kupietzdf0eda92023-10-07 20:50:00 +0200618
619.title-frame h1,
620.title-frame h2 {
621 margin: 0 0 0 0;
622 background: rgb(246, 168, 0);
623 color: white;
624 font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif;
625 font-weight: 600;
626 line-height: 1.2;
627 letter-spacing: 0.05ex;
628 text-transform: uppercase;
629 width: 100%;
630 margin-top: .5em;
631 padding-top: .5em;
632 font-size: 1.75em;
633 margin-left: 0;
634 text-align: center;
635 text-shadow: none;
636 word-wrap: break-word;
637}
638
639
640.title-frame .author {
641 font-family: "Fira Sans Condensed", sans-serif;
642 font-weight: 400;
643 color: #657b83;
644 margin-top: 10vh;
645}
646
647.title-frame .place {
648 font-family: "Fira Sans Condensed", sans-serif;
649 margin-top: 40px;
650 font-weight: 400;
651 color: #657b83;
652}
653
654.title-frame h2 {
655 margin-top: -3px;
656 margin-bottom: 1em;
657 padding-bottom: .5em;
658 font-size: 1em;
659}
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200660
661/*********************************************
662 * TABLES
663 *********************************************/
664
665 th {
666 color: rgb(246, 168, 0);
667}
668
669table {
670 font-family: 'Fira Sans Condensed', sans-serif;
671 font-weight: 400;
672 font-size: 16px;
673}
674
675.reveal table.dataTable {
676 border: #aaaaaa 1px solid;
677 border-collapse: collapse;
678}
679
680.reveal table.dataTable td {
681 border: #aaaaaa 1px solid;
682 border-collapse: collapse;
683}
684
685.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 {
686 display: none;
687}
688
689.caption {
690 font-family: 'Fira Sans Condensed', sans-serif;
691 font-weight: 400;
692 font-size: 16px;
693 text-align: center;
694}
695
696/*
697table.display td { white-space: nowrap; }
698*/
699
700.dt-buttons, .dataTables_filter {
701 margin-top: 10pt;
702}
703
Marc Kupietz069f1e42023-10-11 10:26:16 +0200704/* Sort Arrows in DataTables */
705table.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 {
706 right: 0 !important;
707 line-height: 80% !important;
708}
709
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200710/*********************************************
711 * BIBLIOGRAPHY
712 *********************************************/
713
714.reveal .references {
715 font-family: "Fira Sans Condensed", sans-serif;
716 font-size: 16px;
717 text-align: left;
Marc Kupietzbfab8a12026-08-19 14:42:42 +0200718 margin-top: 10px;
719 max-height: 510px;
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200720 font-weight: 400;
721 color: #253b43;
722 overflow-y: auto;
723}
724
725.hanging-indent > .csl-entry {
726 padding-left: 22px ;
727 text-indent: -22px ;
728}
729
Marc Kupietz21f526c2026-08-14 12:32:56 +0200730// .references scopes these above pandoc's CSL defaults (div.csl-entry), which
731// otherwise win on specificity and pin margin-bottom to 0em.
732.references .csl-entry {
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200733 color: #888888;
Marc Kupietz21f526c2026-08-14 12:32:56 +0200734 margin-bottom: 0.5em;
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200735}
736
Marc Kupietz21f526c2026-08-14 12:32:56 +0200737// "Authors (Year):" as a bold dark first line; the theme template's JS wraps
738// the leading text of each entry in .csl-authors-year (see default.html) --
739// which part of an entry citeproc wraps in spans depends on the entry type, so
740// a CSS-only break cannot place it reliably.
741.csl-entry .csl-authors-year {
742 display: block;
743 font-weight: bold;
744 color: #4d616b;
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200745}
Marc Kupietz11797162023-10-09 23:17:36 +0200746
747.reveal code.sourceCode:last-child + pre {
748 height: 800px !important;
Marc Kupietzc7249f92023-10-10 07:16:50 +0200749}
750
Marc Kupietz589d1b82023-10-10 12:31:33 +0200751
752/*********************************************
753 * ARROWS and SLIDE NUMBERS
754 *********************************************/
755
756 .reveal .controls .controls-arrow:after, .reveal .controls .controls-arrow:before {
757 width: 13px !important; /* size */
758 height: 4px; /* line width */
759}
760
761.reveal .controls {
762 display: none;
763 position: absolute;
764 top: auto;
765 bottom: -8px;
766 right: 16px;
767 left: auto;
768 z-index: 11;
769 /* color: #000;*/
770 pointer-events: none;
771 font-size: 8px;
772}
773
774.reveal .controls .controls-arrow {
775 position: relative;
776 height: 3.6em;
777 width: 1.2em; /* distance betwee arrows */
778 bottom: 0;
779 right: 0;
780}
781
782.reveal div.slide-number {
783 text-align: center;
784 width: 2em;
785 position: absolute;
786 display: block;
787 right: 29px;
788 bottom: 22px;
789 z-index: 31;
790 font-family: "Fira Sans Condensed", sans-serif;
791 font-size: 18px;
792 line-height: 1;
793 background-color: white;
794 color: #666;
795 padding: 0;
796}
797