| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 1 | /** |
| 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 Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 15 | // 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 Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 21 | @import url('https://code.cdn.mozilla.net/fonts/fira.css'); |
| Marc Kupietz | c22be15 | 2026-08-18 15:54:55 +0200 | [diff] [blame] | 22 | // 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 Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 26 | @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 Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 38 | $headingFont: 'Fira Sans Extra Condensed', 'Fira Sans Condensed', 'Fira Sans', Helvetica, sans-serif; |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 39 | $headingTextShadow: none; |
| 40 | $headingLetterSpacing: 0.05ex; |
| 41 | $headingTextTransform: uppercase; |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 42 | $headingFontWeight: 700; |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 43 | $linkColor: #2a76dd; |
| 44 | $linkColorHover: lighten( $linkColor, 15% ); |
| 45 | $selectionBackgroundColor: lighten( $linkColor, 25% ); |
| 46 | |
| 47 | $heading1Size: 2em; |
| 48 | $heading2Size: 1.35em; |
| Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 49 | $heading3Size: 0.9em; |
| 50 | $heading4Size: 0.7em; |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 51 | |
| 52 | $listBulletColor: $idsOrange; |
| 53 | |
| Marc Kupietz | c22be15 | 2026-08-18 15:54:55 +0200 | [diff] [blame] | 54 | // --r-code-font (template emits #{$codeFont} as-is) |
| 55 | $codeFont: "Fira Code", "Fira Mono", "DejaVu Sans Mono", "Source Code Pro", monospace; |
| 56 | |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 57 | // 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 Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 65 | // 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; |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 73 | // Partner (second institution) logo: shown next to the IDS logo on every |
| 74 | // slide when the document sets the `partner_logo` yaml entry (the template |
| 75 | // then publishes the URL as the --partner-logo custom property). |
| 76 | $idsPartnerGap: 16px; |
| 77 | $idsPartnerHeightRatio: 0.085; |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 78 | $idsBarWidth: calc(var(--slide-height) * #{$idsBarWidthRatio}); |
| 79 | $idsHeadingGap: 24px; |
| 80 | |
| 81 | // Vertical gap between the title and the subtitle. The subtitle's bar segment |
| 82 | // reaches up by this much to bridge it, so the two segments read as one bar. |
| 83 | $idsHeadingSpacing: 8px; |
| 84 | |
| 85 | // Rendered height of one subtitle line. Slides without a subtitle reserve |
| 86 | // exactly this much, so the bar and the start of the body content stay put |
| 87 | // from slide to slide instead of jumping. Must stay in sync with |
| 88 | // $heading3Size (0.9em) and $headingLineHeight (1.2, from template/settings). |
| 89 | $idsSubtitleHeight: 0.9 * $mainFontSize * 1.2; |
| 90 | |
| 91 | // The two bar segments abut at a fractional pixel, which browsers round into a |
| 92 | // visible hairline. Overlapping them slightly makes the join seamless. |
| 93 | $idsBarOverlap: 2px; |
| 94 | |
| 95 | // reveal.js centres the scaled slide in the viewport, so whenever the window's |
| 96 | // aspect ratio does not match the deck's, an empty band is left beside (or |
| 97 | // above) the slide and the bar would not reach the window's physical edge. |
| 98 | // Working out how wide that band is needs viewport / scale, and CSS cannot |
| 99 | // divide a length by a length -- which is why the hand-written IDS decks solve |
| 100 | // this in JavaScript. revealjs_presentation()'s template therefore publishes |
| 101 | // the band widths, in slide coordinates, as --ids-band-left / --ids-band-top, |
| 102 | // and the bar simply shifts out by that much. Falling back to 0px keeps this |
| 103 | // correct whenever the aspect ratios do match, and if the script never runs. |
| 104 | $idsBandLeft: var(--ids-band-left, 0px); |
| 105 | |
| 106 | // revealjs_presentation() sets reveal.js' own `margin` option to 0, so that the |
| 107 | // slide box is the whole viewport and the orange bar can sit flush in its top |
| 108 | // left corner. That would otherwise leave the body content running edge to |
| 109 | // edge, so the breathing room reveal.js' margin used to provide is added back |
| 110 | // here as slide padding; the bar and the headings reach back out to the edge |
| 111 | // with matching negative margins below. The inset is the bar plus its gap, so |
| 112 | // body content lines up with the heading text rather than with the bar. |
| 113 | $idsContentInset: calc(#{$idsBarWidth} + #{$idsHeadingGap}); |
| 114 | |
| Marc Kupietz | 61c8ec7 | 2026-08-20 20:47:45 +0200 | [diff] [blame] | 115 | // The html prefix is solely about specificity: reveal's print styles |
| 116 | // (html.reveal-print .reveal .slides section { padding: 0 !important }) would |
| 117 | // otherwise beat this rule and flatten the inset on ?print-pdf pages. An html |
| 118 | // prefix ties that specificity, and since the theme is loaded after |
| 119 | // reveal.css, this rule wins both on screen and in print. |
| 120 | html .reveal .slides section:not(.stack) { |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 121 | box-sizing: border-box !important; |
| 122 | padding-left: #{$idsContentInset} !important; |
| 123 | padding-right: #{$idsContentInset} !important; |
| 124 | } |
| 125 | |
| 126 | // Body content is left aligned with the headings; the title frame keeps its |
| 127 | // own centered layout. |
| 128 | .reveal .slides section:not(.stack):not(.title-frame) { |
| 129 | text-align: left !important; |
| 130 | } |
| 131 | |
| 132 | // reveal.js centers lists by making them inline-block; make them ordinary |
| Marc Kupietz | e082686 | 2026-08-11 16:34:54 +0200 | [diff] [blame] | 133 | // blocks so they line up with the headings. |
| 134 | // |
| 135 | // The markers are NOT native ::marker glyphs: browsers anchor outside-position |
| 136 | // markers at slightly different offsets per engine (and per scale), and even |
| 137 | // ::before font glyphs carry font-specific side bearings, so a padding(text)- |
| 138 | // based alignment of the bullet column with the heading text can never be |
| 139 | // pixel-exact everywhere. Instead we DRAW the markers as CSS boxes in |
| 140 | // absolutely positioned li::before rules. Geometry (all values in the item's |
| 141 | // own font size, so the hierarchy scales with the 0.8em per-level sizing from |
| 142 | // the NESTED LISTS section below): |
| 143 | // |
| 144 | // - item text starts at (list left edge) + 0.65em |
| 145 | // - the marker box starts exactly at the list's left edge; on content |
| 146 | // slides that edge coincides with the heading text's left edge, i.e. the |
| 147 | // bullet column is flush with the slide title, deterministically in every |
| 148 | // browser and at every window size |
| 149 | // |
| 150 | // For nested lists the ::before offset has to be divided by the 0.8 font-size |
| 151 | // factor, because the list's padding is computed in the PARENT item's font |
| 152 | // size while the ::before offset is computed in the (smaller) child size. |
| 153 | $idsListIndent: 0.65em; |
| 154 | $idsListShrink: 0.8; |
| 155 | $idsMarkerSize: 0.22em; |
| 156 | $idsMarkerTop: calc((1.3em - #{$idsMarkerSize}) / 2); |
| 157 | |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 158 | .reveal .slides section:not(.title-frame) ul, |
| 159 | .reveal .slides section:not(.title-frame) ol { |
| 160 | display: block !important; |
| 161 | text-align: left !important; |
| 162 | margin-left: 0 !important; |
| Marc Kupietz | e082686 | 2026-08-11 16:34:54 +0200 | [diff] [blame] | 163 | padding-left: $idsListIndent !important; |
| 164 | list-style: none !important; |
| 165 | } |
| 166 | |
| 167 | .reveal .slides section:not(.title-frame) li { |
| 168 | position: relative !important; |
| 169 | } |
| 170 | |
| 171 | .reveal .slides section:not(.title-frame) li::before { |
| 172 | position: absolute !important; |
| 173 | left: calc(-1 * #{$idsListIndent}) !important; |
| 174 | color: var(--r-list-bullet-color) !important; |
| 175 | } |
| 176 | |
| 177 | .reveal .slides section:not(.title-frame) li li::before { |
| 178 | left: calc(-1 * #{$idsListIndent} / #{$idsListShrink}) !important; |
| 179 | } |
| 180 | |
| 181 | // Unordered-list markers: drawn boxes (round dot, square, ring for deeper |
| 182 | // levels), vertically centered on the item's first line. |
| 183 | .reveal .slides section:not(.title-frame) ul > li::before { |
| 184 | content: "" !important; |
| 185 | top: $idsMarkerTop !important; |
| 186 | width: $idsMarkerSize !important; |
| 187 | height: $idsMarkerSize !important; |
| 188 | box-sizing: border-box !important; |
| 189 | border-radius: 50% !important; |
| 190 | background: var(--r-list-bullet-color) !important; |
| 191 | } |
| 192 | |
| 193 | .reveal .slides section:not(.title-frame) ul ul > li::before { |
| 194 | border-radius: 0 !important; // square |
| 195 | } |
| 196 | |
| 197 | .reveal .slides section:not(.title-frame) ul ul ul > li::before { |
| 198 | background: transparent !important; // ring |
| 199 | border: 0.055em solid var(--r-list-bullet-color) !important; |
| 200 | border-radius: 50% !important; |
| 201 | } |
| 202 | |
| 203 | // Ordered lists: the CSS list-item counter honours the HTML start/value |
| 204 | // attributes, so pandoc's `start`/`value` lists keep their numbers. Numbers |
| 205 | // are right-aligned into the indent, ending just before the item text. |
| 206 | .reveal .slides section:not(.title-frame) ol > li::before { |
| 207 | content: counter(list-item, decimal) "." !important; |
| 208 | width: calc(#{$idsListIndent} - 0.12em) !important; |
| 209 | text-align: right !important; |
| 210 | } |
| 211 | |
| 212 | // Checkbox (pandoc task) lists keep their checkboxes, no markers on top. |
| 213 | .reveal .slides section:not(.title-frame) ul.task-list li::before { |
| 214 | content: none !important; |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | // reveal.js centres code blocks (width: 90%; margin: auto); make them fill the |
| 218 | // slide's text column so they start on the same left edge as the headings. |
| 219 | .reveal .slides section:not(.title-frame) pre { |
| 220 | width: auto !important; |
| 221 | margin-left: 0 !important; |
| 222 | margin-right: 0 !important; |
| 223 | } |
| 224 | |
| 225 | // The IDS logo stays a slide-wide watermark (top right of every slide, |
| Marc Kupietz | 28822cd | 2026-08-20 14:10:18 +0200 | [diff] [blame] | 226 | // including the title page). The SVG carries no internal padding of its own, |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 227 | // so it needs an explicit inset from the slide's edges. That inset is shared |
| 228 | // by everything that sits in a corner of the slide -- IDS (+ partner) logo |
| 229 | // top right, website QR top left, funder logo bottom left, WGL membership |
| 230 | // logo bottom right -- and is used for both edges of each corner, so all |
| 231 | // four keep exactly the same distance to the slide's borders. |
| 232 | $idsLogoInset: 8px; |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 233 | |
| 234 | .reveal .slides { |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 235 | // Second layer: the optional partner institution logo (--partner-logo is |
| 236 | // supplied by the template from the document's `partner_logo` yaml entry); |
| 237 | // paints as "none" without it, leaving a harmless empty layer. |
| 238 | background-image: url('https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/IDS-Logo-2019.svg'), |
| 239 | var(--partner-logo, none); |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 240 | background-repeat: no-repeat; |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 241 | background-position: top #{$idsLogoInset} right #{$idsLogoInset}, |
| 242 | top #{$idsLogoInset} right calc(#{$idsLogoInset} + var(--slide-height) * #{$idsLogoWidthRatio} + #{$idsPartnerGap}); |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 243 | background-size: calc(var(--slide-height) * #{$idsLogoWidthRatio}) auto, |
| 244 | auto calc(var(--slide-height) * #{$idsPartnerHeightRatio}); |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 245 | } |
| 246 | |
| 247 | // The orange bar is drawn as a ::before on the headings rather than on the |
| 248 | // slide, in two segments: one behind the title and one behind the subtitle. |
| 249 | // Because each segment is sized as a percentage of its own heading's box, the |
| 250 | // bar always ends exactly at the bottom of the last heading -- it follows a |
| 251 | // subtitle when there is one, stops at the title when there isn't, and grows |
| 252 | // by itself when a heading wraps onto a second line. No fixed heights, and no |
| 253 | // JavaScript. Headings carry no vertical padding, so they sit as high on the |
| 254 | // slide as the bar does. Every rule is !important because this theme has to |
| 255 | // win against plugin- and document-level CSS loaded after it. |
| 256 | .reveal .slides section:not(.title-frame) > h1:first-child, |
| 257 | .reveal .slides section:not(.title-frame) > h2:first-child { |
| 258 | position: relative !important; |
| 259 | display: block !important; |
| 260 | text-align: left !important; |
| 261 | margin: 0 calc(-1 * #{$idsContentInset}) #{$idsHeadingSpacing} calc(-1 * #{$idsContentInset}) !important; |
| 262 | padding: 0 0 0 #{$idsContentInset} !important; |
| 263 | font-weight: var(--r-heading-font-weight) !important; |
| 264 | } |
| 265 | |
| 266 | .reveal .slides section:not(.title-frame) > h1:first-child::before, |
| 267 | .reveal .slides section:not(.title-frame) > h2:first-child::before, |
| 268 | .reveal .slides section:not(.title-frame) > h2:first-child + h3::before { |
| 269 | content: "" !important; |
| 270 | position: absolute !important; |
| 271 | width: #{$idsBarWidth} !important; |
| 272 | // A flat fill rather than orange_bar.png: that image is two-toned (a lighter |
| 273 | // band across its top), so stretching it over each segment separately left a |
| 274 | // pale seam where the two met. The IDS reference decks draw a flat #f6a800. |
| 275 | background: #{$idsOrange} !important; |
| 276 | } |
| 277 | |
| 278 | // Title segment: pulled out to the window's physical left edge. |
| 279 | .reveal .slides section:not(.title-frame) > h1:first-child::before, |
| 280 | .reveal .slides section:not(.title-frame) > h2:first-child::before { |
| 281 | top: 0 !important; |
| 282 | left: calc(-1 * #{$idsBandLeft}) !important; |
| 283 | height: 100% !important; |
| 284 | } |
| 285 | |
| 286 | // A slide without a subtitle reserves the room one would have taken, so the |
| 287 | // bar keeps the same height and the body content starts at the same place on |
| 288 | // every slide. :has() is what lets us ask "is a subtitle coming?" in CSS; where |
| 289 | // it is unsupported such slides simply keep a title-height bar. |
| Marc Kupietz | 6acbd66 | 2026-08-20 14:41:00 +0200 | [diff] [blame] | 290 | // |
| 291 | // The lone title is vertically CENTRED in its reserved bar: half of the |
| 292 | // reservation goes above the text as top padding (the bar segment, anchored |
| 293 | // to the heading box, moves up with it), and the bottom half stays in the bar |
| 294 | // extension plus margin. The space consumed below the bar is reduced by the |
| 295 | // same half, so body content starts where it always did. |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 296 | .reveal .slides section:not(.title-frame) > h1:first-child:not(:has(+ h3)), |
| 297 | .reveal .slides section:not(.title-frame) > h2:first-child:not(:has(+ h3)) { |
| Marc Kupietz | 6acbd66 | 2026-08-20 14:41:00 +0200 | [diff] [blame] | 298 | padding-top: calc((#{$idsHeadingSpacing} + #{$idsSubtitleHeight}) / 2) !important; |
| 299 | margin-bottom: calc((#{$idsHeadingSpacing} + #{$idsSubtitleHeight}) / 2 + #{$blockMargin}) !important; |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 300 | } |
| 301 | |
| 302 | .reveal .slides section:not(.title-frame) > h1:first-child:not(:has(+ h3))::before, |
| 303 | .reveal .slides section:not(.title-frame) > h2:first-child:not(:has(+ h3))::before { |
| Marc Kupietz | 6acbd66 | 2026-08-20 14:41:00 +0200 | [diff] [blame] | 304 | height: calc(100% + (#{$idsHeadingSpacing} + #{$idsSubtitleHeight}) / 2) !important; |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 305 | } |
| 306 | |
| Marc Kupietz | d023f07 | 2026-08-20 15:27:37 +0200 | [diff] [blame] | 307 | // Vertical balance when a subtitle follows: the orange strip between the |
| 308 | // title's baseline and the subtitle's cap height used to be title descent (16) |
| 309 | // + segment spacing (8) + subtitle leading (3) ≈ 27px, against only ≈ 11px of |
| 310 | // orange above the title's cap height. Moving the title 8px DOWN inside its |
| 311 | // box while REMOVING the 8px segment spacing makes the two margins equal |
| 312 | // (19px each) AND keeps the bar's total height and the body content's start |
| 313 | // position pixel-identical: box grows by 8, spacing drops by 8. The subtitle |
| 314 | // segment still rises (#{$idsHeadingSpacing} + #{$idsBarOverlap}) above its |
| 315 | // own box, so the bar stays seamless. |
| 316 | .reveal .slides section:not(.title-frame) > h1:first-child:has(+ h3), |
| 317 | .reveal .slides section:not(.title-frame) > h2:first-child:has(+ h3) { |
| 318 | padding-top: #{$idsHeadingSpacing} !important; |
| 319 | margin-bottom: 0 !important; |
| 320 | } |
| 321 | |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 322 | // The subtitle sits in the slide's normal text column, so its segment has to |
| 323 | // reach back out to the slide edge, and up over the gap to the title. |
| 324 | .reveal .slides section:not(.title-frame) > h2:first-child + h3 { |
| 325 | position: relative !important; |
| 326 | text-align: left !important; |
| 327 | margin-top: 0 !important; |
| 328 | margin-left: 0 !important; |
| 329 | margin-bottom: $blockMargin !important; |
| 330 | } |
| 331 | |
| 332 | .reveal .slides section:not(.title-frame) > h2:first-child + h3::before { |
| 333 | top: calc(-1 * (#{$idsHeadingSpacing} + #{$idsBarOverlap})) !important; |
| 334 | left: calc(-1 * (#{$idsContentInset} + #{$idsBandLeft})) !important; |
| 335 | height: calc(100% + #{$idsHeadingSpacing} + #{$idsBarOverlap}) !important; |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 336 | } |
| 337 | |
| Marc Kupietz | 55c9cef | 2026-08-08 16:03:06 +0200 | [diff] [blame] | 338 | // Section-divider slides: a level 1 heading alone on a slide (pandoc marks |
| 339 | // these .level1). The IDS reference decks centre that title on the slide while |
| 340 | // the bar stays in its usual top left corner, so here the bar cannot hang off |
| 341 | // the heading -- it is painted on the slide itself, at the height it has on |
| 342 | // every other slide, and the heading gets none of the top-left treatment. |
| 343 | $idsTitleHeight: 1.35 * $mainFontSize * 1.2; |
| 344 | $idsBarBlockHeight: $idsTitleHeight + $idsHeadingSpacing + $idsSubtitleHeight; |
| 345 | |
| 346 | .reveal .slides section.level1:not(.title-frame) { |
| 347 | height: 100% !important; |
| 348 | display: flex !important; |
| 349 | flex-direction: column !important; |
| 350 | justify-content: center !important; |
| 351 | } |
| 352 | |
| 353 | .reveal .slides section.level1:not(.title-frame)::before { |
| 354 | content: "" !important; |
| 355 | position: absolute !important; |
| 356 | top: 0 !important; |
| 357 | left: calc(-1 * #{$idsBandLeft}) !important; |
| 358 | width: #{$idsBarWidth} !important; |
| 359 | height: #{$idsBarBlockHeight} !important; |
| 360 | background: #{$idsOrange} !important; |
| 361 | } |
| 362 | |
| 363 | .reveal .slides section.level1:not(.title-frame) > h1:first-child { |
| 364 | text-align: center !important; |
| 365 | margin: 0 !important; |
| 366 | padding: 0 !important; |
| 367 | } |
| 368 | |
| 369 | .reveal .slides section.level1:not(.title-frame) > h1:first-child::before { |
| 370 | content: none !important; |
| 371 | } |
| 372 | |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 373 | // Define additional color effects based on Dracula spec |
| 374 | // https://spec.draculatheme.com/ |
| 375 | :root { |
| 376 | --r-bold-color: #{$idsOrange}; |
| 377 | --r-list-bullet-color: #{$listBulletColor}; |
| 378 | } |
| 379 | |
| 380 | .reveal { |
| Marc Kupietz | 9b795bd | 2026-08-19 06:58:44 +0200 | [diff] [blame] | 381 | // Bold ("highlighted") text gets the orange colour AND the condensed Fira |
| 382 | // Sans face, as in the IDS reference decks -- the lighter weight and 90% |
| 383 | // size keep it from dominating the serif body text. |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 384 | strong, b { |
| Marc Kupietz | 9b795bd | 2026-08-19 06:58:44 +0200 | [diff] [blame] | 385 | font-family: "Fira Sans Condensed", sans-serif; |
| 386 | font-weight: 600; |
| 387 | font-size: 90%; |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 388 | color: var(--r-bold-color); |
| 389 | } |
| 390 | |
| 391 | // Dracula colored list bullets and numbers |
| 392 | ul, ol { |
| 393 | li::marker { |
| 394 | color: var(--r-list-bullet-color) !important; |
| 395 | } |
| 396 | } |
| 397 | } |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 398 | |
| Marc Kupietz | 281ba9c | 2026-08-11 15:37:48 +0200 | [diff] [blame] | 399 | // Nested list items are set progressively smaller, both to emphasise the |
| 400 | // hierarchy and to keep deeply nested lists from visually competing with the |
| 401 | // first level. The em size compounds down the nesting levels, so each deeper |
| 402 | // level is 80% of its parent (level 2: 80%, level 3: 64%, level 4: 51%). |
| 403 | // Markers and the hanging indentation (padding-left: 0.7em above) scale with |
| 404 | // the text automatically. |
| 405 | .reveal li li { |
| 406 | font-size: 0.8em; |
| 407 | } |
| 408 | |
| Marc Kupietz | f4945eb | 2026-08-19 17:48:41 +0200 | [diff] [blame] | 409 | // Description lists: dt in orange Fira Sans Condensed, dd indented. |
| 410 | .reveal dl { |
| 411 | font-size: 0.62em; |
| 412 | line-height: 1.25; |
| 413 | } |
| 414 | .reveal dt { |
| 415 | font-weight: 700; |
| 416 | margin-top: 0.35em; |
| 417 | font-family: "Fira Sans Condensed", sans-serif; |
| 418 | color: $idsOrange; |
| 419 | } |
| 420 | .reveal dd { |
| 421 | margin: 0 0 0 1.2em; |
| 422 | color: #444; |
| 423 | } |
| 424 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 425 | |
| 426 | /********************************************* |
| 427 | * FOOTER |
| 428 | *********************************************/ |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 429 | #ids-footer:not(title-slide) { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 430 | opacity: 1; |
| 431 | background: white; |
| 432 | color: #444444; |
| 433 | border-top: dotted orange 2px; |
| 434 | transition: opacity 800ms ease-in-out; |
| 435 | position: fixed; |
| 436 | height: 6%; |
| 437 | line-height: 6%; |
| 438 | z-index: -20; |
| 439 | width: 100%; |
| 440 | letter-spacing: 0em; |
| 441 | text-align: center; |
| 442 | display: table; |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 443 | } |
| 444 | |
| 445 | #ids-footer span { |
| 446 | height: 100%; |
| 447 | line-height: 100%; |
| 448 | z-index: -20; |
| Marc Kupietz | 61ad026 | 2024-05-14 22:07:50 +0200 | [diff] [blame] | 449 | font-size: 1.8vh; |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 450 | font-family: "Fira Sans Condensed", "Fira Sans", "Roboto Condensed", "League Gothic", Impact, sans-serif; |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 451 | display: inline-block; |
| 452 | display: table-cell; |
| 453 | vertical-align: middle; |
| 454 | } |
| 455 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 456 | /* Bottom position for the IDS-Footer footer when both progress bar and TOC-Progress are visible */ |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 457 | div.progress[style="display: block;"] ~ #ids-footer { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 458 | bottom: calc(3px + 0vh); |
| 459 | } |
| 460 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 461 | /* Bottom position for the IDS-Footer footer when TOC-Progress is visible */ |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 462 | #ids-footer { |
| 463 | bottom: 3px; |
| 464 | } |
| 465 | |
| 466 | #ids-footer a { |
| 467 | color: #555555; |
| 468 | } |
| 469 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 470 | /* Bottom position for the IDS-Footer footer when progress bar is visible */ |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 471 | div.progress[style="display: block;"] ~ footer:last-of-type#ids-footer { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 472 | bottom: 3px; |
| 473 | } |
| 474 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 475 | /* Bottom position for the IDS-Footer footer when neither progress bar nor TOC-Progress are visible */ |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 476 | footer:last-of-type#ids-footer { |
| 477 | bottom: 0px; |
| 478 | } |
| 479 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 480 | /* Make IDS-Footer invisible if explicitly indicated */ |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 481 | .no-ids-footer #ids-footer { |
| 482 | opacity: 0; |
| 483 | transition: opacity 800ms ease-in-out; |
| 484 | } |
| 485 | |
| 486 | .title-frame #ids-footer { |
| 487 | opacity: 0; |
| 488 | transition: opacity 800ms ease-in-out; |
| 489 | } |
| 490 | |
| 491 | .no-toc-progress #ids-footer { |
| 492 | opacity: 0; |
| 493 | transition: opacity 800ms ease-in-out; |
| 494 | } |
| 495 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 496 | /* Make IDS-Footer invisible in overview mode */ |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 497 | .overview #ids-footer { |
| 498 | opacity: 0; |
| 499 | transition: opacity 800ms ease-in-out; |
| 500 | } |
| 501 | |
| Marc Kupietz | 61c8ec7 | 2026-08-20 20:47:45 +0200 | [diff] [blame] | 502 | /* In print, the footer's negative stacking drops it behind the .pdf-page |
| 503 | * backgrounds (z-index 1); lift it above them. position: fixed repeats it at |
| 504 | * the bottom of every printed page. */ |
| 505 | html.reveal-print #ids-footer { |
| 506 | z-index: 100 !important; |
| 507 | } |
| 508 | |
| 509 | // reveal's print CSS gives every .pdf-page z-index:1, which forms a separate |
| 510 | // stacking context per page. The slide-number-pdf lives INSIDE such a page, so |
| 511 | // its own z-index only competes within the page: the footer (z-index 100 at |
| 512 | // root level) always paints over it, and raising the number's z-index alone |
| 513 | // cannot help. Remove the per-page stacking context in print (the pages are |
| 514 | // separated by page-break-after:always anyway, so nothing needs stacking), and |
| 515 | // the number's z-index 200 wins against the footer globally. Position stays |
| 516 | // the theme's screen rule (right:29px / bottom:22px), which puts the number |
| 517 | // inside the footer band with its white background cutting the dotted line -- |
| 518 | // the same look as on screen. |
| 519 | html.reveal-print .reveal .slides .pdf-page { |
| 520 | z-index: auto !important; |
| 521 | } |
| 522 | |
| 523 | // On screen the number is flanked by the arrow buttons, so its slightly raised |
| 524 | // baseline reads as deliberate; in print it shares the footer band with the |
| 525 | // author/title/date line, whose vertically centered text has its baseline |
| 526 | // ~19px above the page bottom. The number's screen offset (bottom:22px, 14px |
| 527 | // font from reveal's print rule) puts its baseline ~25px up. 15px aligns the |
| 528 | // two baselines. Print-only: the screen rule keeps its 22px. |
| 529 | html.reveal-print div.slide-number-pdf { |
| 530 | z-index: 200 !important; |
| 531 | bottom: 15px !important; |
| 532 | } |
| 533 | |
| 534 | // On screen the bar segments shift left by --ids-band-left so the bar reaches |
| 535 | // the window's physical edge when the slide is pillarboxed. In print there are |
| 536 | // no bands (.pdf-page == slide box), and if the band values are ever stale |
| 537 | // (e.g. an outdated template script), a nonzero band-left would push the |
| 538 | // segments outside the pdf-page, whose overflow:hidden then clips them. |
| 539 | // Pin the geometry explicitly for print instead of trusting the custom |
| 540 | // property: title segments start at the heading's (== pdf-page's) left edge, |
| 541 | // the subtitle segment (which lives in the text column, inset by |
| 542 | // $idsContentInset) reaches back out by exactly the inset, and the level1 |
| 543 | // divider bar starts at the section's left edge. Widths stay the normal bar |
| 544 | // width, so the visible result is pixel-identical to the on-screen bar. |
| 545 | html.reveal-print .reveal .slides section:not(.title-frame) > h1:first-child::before, |
| 546 | html.reveal-print .reveal .slides section:not(.title-frame) > h2:first-child::before { |
| 547 | left: 0 !important; |
| 548 | } |
| 549 | |
| 550 | html.reveal-print .reveal .slides section:not(.title-frame) > h2:first-child + h3::before { |
| 551 | left: calc(-1 * #{$idsContentInset}) !important; |
| 552 | } |
| 553 | |
| 554 | html.reveal-print .reveal .slides section.level1:not(.title-frame)::before { |
| 555 | left: 0 !important; |
| 556 | } |
| 557 | |
| 558 | // The WGL membership logo sits at bottom:10px of the title frame -- inside |
| 559 | // the footer's ~46px band on print pages (the footer is force-shown on every |
| 560 | // page in print view and cannot be hidden per page, position:fixed). Lift the |
| 561 | // logo above the footer in print only; the screen layout stays put. |
| 562 | html.reveal-print .reveal .slides section.title-frame { |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 563 | background-position: right #{$idsLogoInset} bottom 55px; |
| Marc Kupietz | 61c8ec7 | 2026-08-20 20:47:45 +0200 | [diff] [blame] | 564 | } |
| 565 | |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 566 | // Like the orange bar/IDS logo above, this is painted on the slide itself |
| 567 | // (rather than on .slide-background-content, which spans the raw, |
| 568 | // unscaled viewport) so it stays pinned to the title slide's true |
| Marc Kupietz | 6771559 | 2026-08-15 14:55:18 +0200 | [diff] [blame] | 569 | // bottom-right corner instead of the browser window's. Its margin mirrors |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 570 | // the IDS logo's, so the two sit on one shared inset. |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 571 | .reveal .slides section.title-frame { |
| 572 | background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg"); |
| Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 573 | background-repeat: no-repeat; |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 574 | background-position: right #{$idsLogoInset} bottom #{$idsLogoInset}; |
| Marc Kupietz | 6771559 | 2026-08-15 14:55:18 +0200 | [diff] [blame] | 575 | background-size: calc(var(--slide-height) * 0.1) auto; |
| 576 | /* full slide height, so "bottom" really is the slide's bottom edge */ |
| 577 | height: 100%; |
| Marc Kupietz | e9ace29 | 2024-05-14 22:11:15 +0200 | [diff] [blame] | 578 | } |
| 579 | |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 580 | // qrlink() codes placed anywhere else in a deck: qr_svg_fit() crops the svg |
| 581 | // to the dark modules, so the quiet zone the code needs to stay scannable is |
| 582 | // this padding (which also keeps a code readable on a dark background). |
| 583 | .reveal a.qrcode { |
| 584 | display: inline-block; |
| 585 | padding: 0.5em; |
| 586 | background: #fff; |
| 587 | } |
| 588 | |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 589 | // Website QR code and funder logo on the title slide (document options |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 590 | // `website` and `funder_logo`): top-left and bottom-left corners. Like the |
| 591 | // two logos on the right, they keep $idsLogoInset to both slide edges -- |
| 592 | // measured to the visible ink, so that all four corners look alike. Both are |
| 593 | // DOM elements injected into the title frame by the pandoc template (the QR |
| 594 | // itself is generated in R by qrlink()); absolute positioning sticks to the |
| 595 | // slide, because reveal.js positions the sections themselves. |
| 596 | // |
| 597 | // qrlink() crops the svg to the dark modules, so the quiet zone the code |
| 598 | // needs to stay scannable is this white plate's padding -- which is also |
| 599 | // what puts the modules themselves at $idsLogoInset from the slide's edges, |
| 600 | // the plate sitting flush in the corner (invisible on the white slide). |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 601 | .reveal .slides section.title-frame .title-qr { |
| 602 | position: absolute; |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 603 | top: 0; |
| 604 | left: 0; |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 605 | box-sizing: border-box; |
| 606 | width: calc(var(--slide-height) * 0.28); |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 607 | padding: #{$idsLogoInset}; |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 608 | background: #fff; |
| 609 | } |
| 610 | |
| 611 | .reveal .slides section.title-frame .title-qr a.qrcode, |
| 612 | .reveal .slides section.title-frame .title-qr svg { |
| 613 | display: block; |
| 614 | width: 100%; |
| 615 | height: auto; |
| 616 | margin: 0; |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 617 | // the quiet zone comes from the plate around it here |
| 618 | padding: 0; |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 619 | } |
| 620 | |
| 621 | .reveal .slides section.title-frame img.funder-logo { |
| 622 | position: absolute; |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 623 | left: #{$idsLogoInset}; |
| 624 | bottom: #{$idsLogoInset}; |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 625 | height: calc(var(--slide-height) * 0.07); |
| Marc Kupietz | b2cc523 | 2026-08-29 16:21:52 +0300 | [diff] [blame] | 626 | // reveal.js gives images a vertical margin, which for an absolutely |
| 627 | // positioned one would add itself to the inset above. |
| 628 | margin: 0; |
| Marc Kupietz | 59e95a6 | 2026-08-29 10:19:05 +0300 | [diff] [blame] | 629 | width: auto; |
| 630 | } |
| 631 | |
| 632 | // Lift the funder logo above the print footer band, like the WGL logo above |
| 633 | html.reveal-print .reveal .slides section.title-frame img.funder-logo { |
| 634 | bottom: 55px; |
| 635 | } |
| 636 | |
| 637 | // The navigation chrome is hidden on the title slide (the template toggles |
| 638 | // the ids-title-plain class when the title frame is the current slide). Use |
| 639 | // opacity/visibility rather than display:none so the transition out of the |
| 640 | // title slide fades the chrome in instead of popping it up, and so reveal.js' |
| 641 | // own controls bookkeeping keeps working underneath. |
| 642 | html.ids-title-plain .reveal .controls, |
| 643 | html.ids-title-plain .reveal .slide-number, |
| 644 | html.ids-title-plain .reveal .slide-menu-button { |
| 645 | opacity: 0 !important; |
| 646 | visibility: hidden !important; |
| 647 | pointer-events: none !important; |
| 648 | } |
| 649 | |
| 650 | .reveal .controls, |
| 651 | .reveal .slide-number, |
| 652 | .reveal .slide-menu-button { |
| 653 | transition: opacity 0.4s; |
| 654 | } |
| 655 | |
| Marc Kupietz | e9ace29 | 2024-05-14 22:11:15 +0200 | [diff] [blame] | 656 | |
| Marc Kupietz | 903104a | 2026-08-20 10:10:41 +0200 | [diff] [blame] | 657 | /********************************************* |
| 658 | * SLIDES MENU |
| 659 | *********************************************/ |
| 660 | |
| 661 | // The menu plugin copies .reveal's computed font-family onto .slide-menu as an |
| 662 | // inline style (and its own CSS is loaded after the theme), so without |
| 663 | // !important here the menu would come out in the Libertinus serif body face. |
| 664 | // Fira Sans Condensed is the IDS sans for navigation/UI text, and its narrow |
| 665 | // glyphs keep long (German) slide titles on one line. |
| 666 | .slide-menu-wrapper .slide-menu { |
| 667 | font-family: "Fira Sans Condensed", sans-serif !important; |
| 668 | } |
| 669 | |
| 670 | // Widen the menu a little over the plugin's 300px default -- but only the |
| 671 | // default: a width the user picked via the menu-width option maps to one of |
| 672 | // the plugin's width classes (or an inline style), which must keep winning. |
| 673 | .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 Kupietz | 7427cca | 2026-08-20 10:53:03 +0200 | [diff] [blame] | 674 | width: 372px !important; |
| Marc Kupietz | 903104a | 2026-08-20 10:10:41 +0200 | [diff] [blame] | 675 | } |
| 676 | |
| 677 | // Tighter, less wasteful rows than the plugin's 10px 18px padding with a 12px |
| 678 | // icon gap: the icon column and generous side padding eat exactly the width |
| 679 | // the titles need. |
| 680 | .slide-menu-wrapper .slide-menu-item, |
| 681 | .slide-menu-wrapper .slide-menu-item-vertical { |
| 682 | padding: 6px 12px !important; |
| 683 | line-height: 1.3 !important; |
| 684 | } |
| 685 | |
| 686 | .slide-menu-wrapper .slide-menu-item-vertical { |
| 687 | padding-left: 26px !important; |
| 688 | } |
| 689 | |
| 690 | // Wrapped titles: make the row a flex line so the second line aligns with the |
| 691 | // first instead of sliding under the bullet/circle icon. The icon sits on the |
| 692 | // first line's text baseline; the title column takes the remaining width and |
| 693 | // wraps within itself. |
| 694 | .slide-menu-wrapper .slide-menu-item, |
| 695 | .slide-menu-wrapper .slide-menu-item-vertical { |
| 696 | display: flex !important; |
| 697 | align-items: baseline !important; |
| 698 | } |
| 699 | |
| 700 | .slide-menu-wrapper .slide-menu-item-title { |
| 701 | flex: 1 !important; |
| 702 | min-width: 0 !important; |
| 703 | } |
| 704 | |
| 705 | .slide-menu-wrapper .slide-menu-item i.far, |
| 706 | .slide-menu-wrapper .slide-menu-item i.fas, |
| 707 | .slide-menu-wrapper .slide-menu-item-vertical i.far, |
| 708 | .slide-menu-wrapper .slide-menu-item-vertical i.fas, |
| 709 | .slide-menu-wrapper .slide-menu-item svg.svg-inline--fa, |
| 710 | .slide-menu-wrapper .slide-menu-item-vertical svg.svg-inline--fa { |
| 711 | padding-right: 8px !important; |
| 712 | } |
| 713 | |
| Marc Kupietz | 7427cca | 2026-08-20 10:53:03 +0200 | [diff] [blame] | 714 | // Top-level (section) entries in bold, marking the hierarchy as the indented |
| 715 | // sub-slides alone do now. Note the Google Fonts import only ships Fira Sans |
| 716 | // Condensed in 300/400/700/800 -- there is no 600. |
| 717 | .slide-menu-wrapper .slide-menu-item { |
| 718 | font-weight: 700 !important; |
| 719 | } |
| 720 | |
| Marc Kupietz | 903104a | 2026-08-20 10:10:41 +0200 | [diff] [blame] | 721 | // Current slide in the IDS accent colour, matching the slide-number and the |
| 722 | // orange bar. |
| 723 | .slide-menu-wrapper .active-menu-panel li.active { |
| 724 | color: #{$idsOrange} !important; |
| Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 725 | } |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 726 | |
| 727 | /* |
| 728 | * Menu controls |
| 729 | */ |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 730 | body .reveal .slide-menu-button { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 731 | color: #aaaaaa !important; |
| 732 | position: fixed; |
| 733 | left: 30px; |
| 734 | bottom: 2%; |
| 735 | vertical-align: middle; |
| 736 | z-index: 30; |
| 737 | font-size: 2vh; |
| 738 | } |
| 739 | |
| 740 | #customcontrols > ul { |
| 741 | color: #aaaaaa !important; |
| 742 | position: fixed; |
| Marc Kupietz | f51e915 | 2023-10-07 15:32:33 +0200 | [diff] [blame] | 743 | left: 50px; |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 744 | bottom: 2% !important; |
| 745 | vertical-align: middle; |
| 746 | z-index: 30; |
| 747 | font-size: 2vh; |
| 748 | } |
| 749 | |
| 750 | @media only screen and (min-width: 500px) { |
| 751 | #customcontrols > ul { |
| 752 | bottom: 2% !important; |
| 753 | } |
| 754 | } |
| Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 755 | |
| Marc Kupietz | c7249f9 | 2023-10-10 07:16:50 +0200 | [diff] [blame] | 756 | .reveal .controls .controls-arrow { |
| 757 | position: relative; |
| 758 | width: 3.6em; |
| 759 | height: 3.6em; |
| 760 | bottom: -12px; |
| 761 | right: -4px; |
| 762 | } |
| 763 | |
| Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 764 | .reveal h3, h4, h5, h6 { |
| 765 | text-transform: none !important; |
| 766 | } |
| 767 | |
| 768 | .reveal h3, h4, h5, h6 { |
| 769 | text-transform: none !important; |
| 770 | } |
| 771 | |
| 772 | .reveal h2 + h3 { |
| 773 | margin-top: -0.5em !important; |
| 774 | } |
| Marc Kupietz | df0eda9 | 2023-10-07 20:50:00 +0200 | [diff] [blame] | 775 | |
| 776 | .title-frame h1, |
| 777 | .title-frame h2 { |
| 778 | margin: 0 0 0 0; |
| 779 | background: rgb(246, 168, 0); |
| 780 | color: white; |
| 781 | font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif; |
| 782 | font-weight: 600; |
| 783 | line-height: 1.2; |
| 784 | letter-spacing: 0.05ex; |
| 785 | text-transform: uppercase; |
| 786 | width: 100%; |
| 787 | margin-top: .5em; |
| 788 | padding-top: .5em; |
| 789 | font-size: 1.75em; |
| 790 | margin-left: 0; |
| 791 | text-align: center; |
| 792 | text-shadow: none; |
| 793 | word-wrap: break-word; |
| 794 | } |
| 795 | |
| 796 | |
| 797 | .title-frame .author { |
| 798 | font-family: "Fira Sans Condensed", sans-serif; |
| 799 | font-weight: 400; |
| 800 | color: #657b83; |
| 801 | margin-top: 10vh; |
| 802 | } |
| 803 | |
| 804 | .title-frame .place { |
| 805 | font-family: "Fira Sans Condensed", sans-serif; |
| 806 | margin-top: 40px; |
| 807 | font-weight: 400; |
| 808 | color: #657b83; |
| 809 | } |
| 810 | |
| 811 | .title-frame h2 { |
| 812 | margin-top: -3px; |
| 813 | margin-bottom: 1em; |
| 814 | padding-bottom: .5em; |
| 815 | font-size: 1em; |
| 816 | } |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 817 | |
| 818 | /********************************************* |
| 819 | * TABLES |
| 820 | *********************************************/ |
| 821 | |
| 822 | th { |
| 823 | color: rgb(246, 168, 0); |
| 824 | } |
| 825 | |
| 826 | table { |
| 827 | font-family: 'Fira Sans Condensed', sans-serif; |
| 828 | font-weight: 400; |
| 829 | font-size: 16px; |
| Marc Kupietz | 25570ef | 2026-08-28 14:03:21 +0300 | [diff] [blame] | 830 | // Fira Sans Condensed ships proportional figures by default, so the digits |
| 831 | // in neighbouring rows do not line up; tabular numbers (tnum) fix the digit |
| 832 | // widths and align numeric table columns vertically. |
| 833 | font-variant-numeric: tabular-nums; |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 834 | } |
| 835 | |
| 836 | .reveal table.dataTable { |
| 837 | border: #aaaaaa 1px solid; |
| 838 | border-collapse: collapse; |
| 839 | } |
| 840 | |
| 841 | .reveal table.dataTable td { |
| 842 | border: #aaaaaa 1px solid; |
| 843 | border-collapse: collapse; |
| 844 | } |
| 845 | |
| 846 | .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 { |
| 847 | display: none; |
| 848 | } |
| 849 | |
| 850 | .caption { |
| 851 | font-family: 'Fira Sans Condensed', sans-serif; |
| 852 | font-weight: 400; |
| 853 | font-size: 16px; |
| 854 | text-align: center; |
| 855 | } |
| 856 | |
| 857 | /* |
| 858 | table.display td { white-space: nowrap; } |
| 859 | */ |
| 860 | |
| 861 | .dt-buttons, .dataTables_filter { |
| 862 | margin-top: 10pt; |
| 863 | } |
| 864 | |
| Marc Kupietz | 069f1e4 | 2023-10-11 10:26:16 +0200 | [diff] [blame] | 865 | /* Sort Arrows in DataTables */ |
| 866 | 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 { |
| 867 | right: 0 !important; |
| 868 | line-height: 80% !important; |
| 869 | } |
| 870 | |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 871 | /********************************************* |
| 872 | * BIBLIOGRAPHY |
| 873 | *********************************************/ |
| 874 | |
| 875 | .reveal .references { |
| 876 | font-family: "Fira Sans Condensed", sans-serif; |
| 877 | font-size: 16px; |
| 878 | text-align: left; |
| Marc Kupietz | bfab8a1 | 2026-08-19 14:42:42 +0200 | [diff] [blame] | 879 | margin-top: 10px; |
| 880 | max-height: 510px; |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 881 | font-weight: 400; |
| 882 | color: #253b43; |
| 883 | overflow-y: auto; |
| 884 | } |
| 885 | |
| 886 | .hanging-indent > .csl-entry { |
| 887 | padding-left: 22px ; |
| 888 | text-indent: -22px ; |
| 889 | } |
| 890 | |
| Marc Kupietz | 21f526c | 2026-08-14 12:32:56 +0200 | [diff] [blame] | 891 | // .references scopes these above pandoc's CSL defaults (div.csl-entry), which |
| 892 | // otherwise win on specificity and pin margin-bottom to 0em. |
| 893 | .references .csl-entry { |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 894 | color: #888888; |
| Marc Kupietz | 21f526c | 2026-08-14 12:32:56 +0200 | [diff] [blame] | 895 | margin-bottom: 0.5em; |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 896 | } |
| 897 | |
| Marc Kupietz | 21f526c | 2026-08-14 12:32:56 +0200 | [diff] [blame] | 898 | // "Authors (Year):" as a bold dark first line; the theme template's JS wraps |
| 899 | // the leading text of each entry in .csl-authors-year (see default.html) -- |
| 900 | // which part of an entry citeproc wraps in spans depends on the entry type, so |
| 901 | // a CSS-only break cannot place it reliably. |
| 902 | .csl-entry .csl-authors-year { |
| 903 | display: block; |
| 904 | font-weight: bold; |
| 905 | color: #4d616b; |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 906 | } |
| Marc Kupietz | 1179716 | 2023-10-09 23:17:36 +0200 | [diff] [blame] | 907 | |
| 908 | .reveal code.sourceCode:last-child + pre { |
| 909 | height: 800px !important; |
| Marc Kupietz | c7249f9 | 2023-10-10 07:16:50 +0200 | [diff] [blame] | 910 | } |
| 911 | |
| Marc Kupietz | 589d1b8 | 2023-10-10 12:31:33 +0200 | [diff] [blame] | 912 | |
| 913 | /********************************************* |
| Marc Kupietz | 54d9ce0 | 2026-08-21 11:38:45 +0200 | [diff] [blame] | 914 | * FULLSCREEN TOGGLE |
| Marc Kupietz | 589d1b8 | 2023-10-10 12:31:33 +0200 | [diff] [blame] | 915 | *********************************************/ |
| 916 | |
| Marc Kupietz | 54d9ce0 | 2026-08-21 11:38:45 +0200 | [diff] [blame] | 917 | // Small fixed toggle for touch devices (script injected by default.html): |
| 918 | // phones have no F11 and the browser chrome eats slide pixels. Hidden on |
| 919 | // pointer devices (F11 exists there) and whenever the Fullscreen API is |
| 920 | // unavailable -- the script also removes it then. Same muted look and column |
| 921 | // as the slide menu button, one slot above it. |
| 922 | #ids-fullscreen { |
| 923 | display: none; |
| 924 | position: fixed; |
| 925 | left: 30px; |
| 926 | bottom: 6%; |
| 927 | z-index: 30; |
| 928 | width: 28px; |
| 929 | height: 28px; |
| 930 | border: 0; |
| 931 | padding: 0; |
| 932 | cursor: pointer; |
| 933 | opacity: 0.55; |
| 934 | // Feather-style corner brackets; gray idle, IDS orange while fullscreen |
| 935 | // (the two data URIs differ only in the stroke colour). |
| 936 | background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3'/%3E%3Cpath d='M16 3h3a2 2 0 0 1 2 2v3'/%3E%3Cpath d='M8 21H5a2 2 0 0 1-2-2v-3'/%3E%3Cpath d='M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat; |
| 937 | |
| 938 | &:active, |
| 939 | &:focus-visible { |
| 940 | opacity: 0.9; |
| 941 | } |
| 942 | |
| 943 | &.is-fullscreen { |
| 944 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6a800' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3'/%3E%3Cpath d='M16 3h3a2 2 0 0 1 2 2v3'/%3E%3Cpath d='M8 21H5a2 2 0 0 1-2-2v-3'/%3E%3Cpath d='M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E"); |
| 945 | } |
| 946 | } |
| 947 | |
| 948 | // Only touch devices get the button; desktops keep their F11. |
| 949 | @media (hover: none) and (pointer: coarse) { |
| 950 | #ids-fullscreen { |
| 951 | display: block; |
| 952 | } |
| 953 | } |
| 954 | |
| 955 | // position:fixed elements repeat on every printed page -- never print it. |
| 956 | html.reveal-print #ids-fullscreen { |
| 957 | display: none !important; |
| 958 | } |
| 959 | |
| 960 | |
| 961 | |
| Marc Kupietz | 589d1b8 | 2023-10-10 12:31:33 +0200 | [diff] [blame] | 962 | .reveal .controls .controls-arrow:after, .reveal .controls .controls-arrow:before { |
| 963 | width: 13px !important; /* size */ |
| 964 | height: 4px; /* line width */ |
| 965 | } |
| 966 | |
| 967 | .reveal .controls { |
| 968 | display: none; |
| 969 | position: absolute; |
| 970 | top: auto; |
| 971 | bottom: -8px; |
| 972 | right: 16px; |
| 973 | left: auto; |
| 974 | z-index: 11; |
| 975 | /* color: #000;*/ |
| 976 | pointer-events: none; |
| 977 | font-size: 8px; |
| 978 | } |
| 979 | |
| 980 | .reveal .controls .controls-arrow { |
| 981 | position: relative; |
| 982 | height: 3.6em; |
| 983 | width: 1.2em; /* distance betwee arrows */ |
| 984 | bottom: 0; |
| 985 | right: 0; |
| 986 | } |
| 987 | |
| 988 | .reveal div.slide-number { |
| 989 | text-align: center; |
| 990 | width: 2em; |
| 991 | position: absolute; |
| 992 | display: block; |
| 993 | right: 29px; |
| 994 | bottom: 22px; |
| 995 | z-index: 31; |
| 996 | font-family: "Fira Sans Condensed", sans-serif; |
| 997 | font-size: 18px; |
| 998 | line-height: 1; |
| 999 | background-color: white; |
| 1000 | color: #666; |
| 1001 | padding: 0; |
| 1002 | } |
| 1003 | |
| Marc Kupietz | ddd9ba5 | 2026-08-29 16:22:29 +0300 | [diff] [blame] | 1004 | |
| 1005 | /********************************************* |
| Marc Kupietz | f8e92bb | 2026-08-29 16:32:01 +0300 | [diff] [blame] | 1006 | * SPEAKER NOTES OVERLAY (touch devices) |
| 1007 | *********************************************/ |
| 1008 | #ids-notes { |
| 1009 | display: none; |
| 1010 | position: fixed; |
| 1011 | left: 70px; |
| 1012 | bottom: 6%; |
| 1013 | z-index: 30; |
| 1014 | width: 28px; |
| 1015 | height: 28px; |
| 1016 | border: 0; |
| 1017 | padding: 0; |
| 1018 | cursor: pointer; |
| 1019 | opacity: 0.55; |
| 1020 | background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat; |
| 1021 | } |
| 1022 | |
| 1023 | #ids-notes:active, #ids-notes:focus-visible { |
| 1024 | opacity: 0.9; |
| 1025 | } |
| 1026 | |
| 1027 | #ids-notes.is-open { |
| 1028 | opacity: 0.9; |
| 1029 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6a800' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); |
| 1030 | } |
| 1031 | |
| 1032 | #ids-transcript-btn { |
| 1033 | display: none; |
| 1034 | position: fixed; |
| 1035 | left: 110px; |
| 1036 | bottom: 6%; |
| 1037 | z-index: 30; |
| 1038 | width: 28px; |
| 1039 | height: 28px; |
| 1040 | border: 0; |
| 1041 | padding: 0; |
| 1042 | cursor: pointer; |
| 1043 | opacity: 0.55; |
| 1044 | background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat; |
| 1045 | } |
| 1046 | |
| 1047 | #ids-transcript-btn:active, #ids-transcript-btn:focus-visible, #ids-transcript-btn.is-open { |
| 1048 | opacity: 0.9; |
| 1049 | } |
| 1050 | |
| 1051 | #ids-transcript-btn.is-open { |
| 1052 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6a800' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E"); |
| 1053 | } |
| 1054 | |
| 1055 | @media (hover: none) and (pointer: coarse) { |
| 1056 | #ids-notes, #ids-transcript-btn { |
| 1057 | display: block; |
| 1058 | } |
| 1059 | } |
| 1060 | |
| 1061 | html.reveal-print #ids-notes, html.reveal-print #ids-transcript-btn { |
| 1062 | display: none !important; |
| 1063 | } |
| 1064 | |
| 1065 | #ids-notes-overlay { |
| 1066 | position: fixed; |
| 1067 | inset: 0; |
| 1068 | z-index: 100; |
| 1069 | background: #fff; |
| 1070 | color: #444444; |
| 1071 | font-family: "Fira Sans", "Fira Sans Condensed", sans-serif; |
| 1072 | overflow-y: auto; |
| 1073 | -webkit-overflow-scrolling: touch; |
| 1074 | padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) |
| 1075 | max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); |
| 1076 | } |
| 1077 | |
| 1078 | #ids-notes-overlay[hidden] { |
| 1079 | display: none; |
| 1080 | } |
| 1081 | |
| 1082 | #ids-notes-header { |
| 1083 | display: flex; |
| 1084 | align-items: baseline; |
| 1085 | gap: 12px; |
| 1086 | border-bottom: 1px solid #e0e0e0; |
| 1087 | margin-bottom: 16px; |
| 1088 | padding-bottom: 8px; |
| 1089 | } |
| 1090 | |
| 1091 | #ids-notes-timing { |
| 1092 | flex-shrink: 0; |
| 1093 | color: #f6a800; |
| 1094 | font-weight: bold; |
| 1095 | white-space: nowrap; |
| 1096 | } |
| 1097 | |
| 1098 | #ids-notes-title { |
| 1099 | flex-grow: 1; |
| 1100 | margin: 0; |
| 1101 | font-size: 1.1em; |
| 1102 | } |
| 1103 | |
| 1104 | #ids-notes-close { |
| 1105 | flex-shrink: 0; |
| 1106 | border: 0; |
| 1107 | background: none; |
| 1108 | color: #888888; |
| 1109 | font-size: 1.2em; |
| 1110 | cursor: pointer; |
| 1111 | padding: 8px; |
| 1112 | margin: -8px; |
| 1113 | } |
| 1114 | |
| 1115 | #ids-notes-content { |
| 1116 | font-size: 20px; |
| 1117 | line-height: 1.5; |
| 1118 | } |
| 1119 | |
| 1120 | #ids-notes-content em { |
| 1121 | color: #888888; |
| 1122 | } |
| 1123 | |
| 1124 | /********************************************* |
| Marc Kupietz | ddd9ba5 | 2026-08-29 16:22:29 +0300 | [diff] [blame] | 1125 | * OVERVIEW / TOC SLIDES |
| 1126 | *********************************************/ |
| 1127 | /* Entries stay at the normal slide body size and keep the theme's link |
| 1128 | colour, so they read as the navigation links they are. Only the denser |
| 1129 | two-column variant with sub-headings is scaled down. */ |
| 1130 | .reveal .ids-overview-toc { |
| 1131 | list-style: none; |
| 1132 | margin: 0.2em 0 0 0; |
| 1133 | padding: 0; |
| 1134 | line-height: 1.35; |
| 1135 | } |
| 1136 | .reveal .ids-overview-toc > li { |
| 1137 | margin: 0.45em 0; |
| 1138 | font-weight: bold; |
| 1139 | } |
| 1140 | .reveal .ids-overview-toc ul { |
| 1141 | list-style: none; |
| 1142 | margin: 0.1em 0 0.2em 0; |
| 1143 | padding: 0 0 0 1.1em; |
| 1144 | font-weight: normal; |
| 1145 | } |
| 1146 | .reveal .ids-overview-toc.with-subheadings { |
| 1147 | columns: 2; |
| 1148 | column-gap: 2.5em; |
| 1149 | font-size: 0.8em; |
| 1150 | } |
| 1151 | .reveal .ids-overview-toc.with-subheadings > li { |
| 1152 | break-inside: avoid; |
| 1153 | } |
| 1154 | .reveal .ids-overview-toc ul li { |
| 1155 | margin: 0.18em 0; |
| 1156 | } |
| Marc Kupietz | f8e92bb | 2026-08-29 16:32:01 +0300 | [diff] [blame] | 1157 | |
| 1158 | /********************************************* |
| 1159 | * TRANSCRIPT / READ-ALOUD VIEW ('r') |
| 1160 | *********************************************/ |
| 1161 | #ids-transcript { |
| 1162 | position: fixed; |
| 1163 | inset: 0; |
| 1164 | z-index: 90; |
| 1165 | background: #fff; |
| 1166 | color: #444444; |
| 1167 | font-family: "Fira Sans", "Fira Sans Condensed", sans-serif; |
| 1168 | font-size: 18px; |
| 1169 | line-height: 1.5; |
| 1170 | overflow-y: auto; |
| 1171 | -webkit-overflow-scrolling: touch; |
| 1172 | padding: max(32px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) |
| 1173 | max(32px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left)); |
| 1174 | } |
| 1175 | |
| 1176 | #ids-transcript[hidden] { |
| 1177 | display: none; |
| 1178 | } |
| 1179 | |
| 1180 | #ids-transcript .ids-transcript-slide { |
| 1181 | max-width: 900px; |
| 1182 | margin: 0 auto 2.5em auto; |
| 1183 | } |
| 1184 | |
| 1185 | #ids-transcript h1, #ids-transcript h2 { |
| 1186 | color: var(--r-heading-color); |
| 1187 | margin: 0 0 0.4em 0; |
| 1188 | } |
| 1189 | |
| 1190 | #ids-transcript h1 { font-size: 1.4em; } |
| 1191 | |
| 1192 | #ids-transcript h2 { font-size: 1.2em; } |
| 1193 | |
| 1194 | #ids-transcript .fragment { |
| 1195 | opacity: 1; |
| 1196 | visibility: visible; |
| 1197 | } |
| 1198 | |
| 1199 | #ids-transcript .ids-transcript-notes { |
| 1200 | border-left: 3px solid #f6a800; |
| 1201 | padding: 0.2em 0 0.2em 0.8em; |
| 1202 | margin-top: 0.8em; |
| 1203 | color: #666; |
| 1204 | } |
| 1205 | |
| 1206 | #ids-transcript .ids-transcript-notes:empty { |
| 1207 | display: none; |
| 1208 | } |
| 1209 | |
| 1210 | #ids-transcript img, #ids-transcript video, #ids-transcript iframe { |
| 1211 | max-width: 100%; |
| 1212 | } |
| Marc Kupietz | 7532797 | 2026-08-29 18:25:28 +0300 | [diff] [blame^] | 1213 | |
| 1214 | // The title slide's branding is cloned into the transcript along with the |
| 1215 | // rest of the slide, but outside .reveal, where neither the title frame's |
| 1216 | // sizing rules nor the svg's own (absent) intrinsic dimensions constrain it |
| 1217 | // -- both would fill the transcript's whole width. Give them a size that |
| 1218 | // suits a page one reads rather than presents: the QR stays tappable and |
| 1219 | // scannable, the funder logo shrinks to a line of text. |
| 1220 | #ids-transcript .title-qr { |
| 1221 | box-sizing: border-box; |
| 1222 | width: 140px; |
| 1223 | max-width: 40%; |
| 1224 | padding: #{$idsLogoInset}; |
| 1225 | background: #fff; |
| 1226 | } |
| 1227 | |
| 1228 | #ids-transcript .title-qr a.qrcode, |
| 1229 | #ids-transcript .title-qr svg { |
| 1230 | display: block; |
| 1231 | width: 100%; |
| 1232 | height: auto; |
| 1233 | padding: 0; |
| 1234 | } |
| 1235 | |
| 1236 | #ids-transcript img.funder-logo { |
| 1237 | height: 2.5em; |
| 1238 | width: auto; |
| 1239 | margin: 0.6em 0; |
| 1240 | } |