| 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; |
| 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 Kupietz | e082686 | 2026-08-11 16:34:54 +0200 | [diff] [blame] | 123 | // 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 Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 148 | .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 Kupietz | e082686 | 2026-08-11 16:34:54 +0200 | [diff] [blame] | 153 | 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 Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 205 | } |
| 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, |
| 216 | // including the title page). The top offset is chosen so the logo's cap line |
| 217 | // meets the top of the heading text rather than sitting below it; the SVG |
| 218 | // carries a little transparent padding of its own, which this accounts for. |
| 219 | $idsLogoTop: 10px; |
| 220 | $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. |
| 272 | .reveal .slides section:not(.title-frame) > h1:first-child:not(:has(+ h3)), |
| 273 | .reveal .slides section:not(.title-frame) > h2:first-child:not(:has(+ h3)) { |
| 274 | margin-bottom: calc(#{$idsHeadingSpacing} + #{$idsSubtitleHeight} + #{$blockMargin}) !important; |
| 275 | } |
| 276 | |
| 277 | .reveal .slides section:not(.title-frame) > h1:first-child:not(:has(+ h3))::before, |
| 278 | .reveal .slides section:not(.title-frame) > h2:first-child:not(:has(+ h3))::before { |
| 279 | height: calc(100% + #{$idsHeadingSpacing} + #{$idsSubtitleHeight}) !important; |
| 280 | } |
| 281 | |
| 282 | // The subtitle sits in the slide's normal text column, so its segment has to |
| 283 | // reach back out to the slide edge, and up over the gap to the title. |
| 284 | .reveal .slides section:not(.title-frame) > h2:first-child + h3 { |
| 285 | position: relative !important; |
| 286 | text-align: left !important; |
| 287 | margin-top: 0 !important; |
| 288 | margin-left: 0 !important; |
| 289 | margin-bottom: $blockMargin !important; |
| 290 | } |
| 291 | |
| 292 | .reveal .slides section:not(.title-frame) > h2:first-child + h3::before { |
| 293 | top: calc(-1 * (#{$idsHeadingSpacing} + #{$idsBarOverlap})) !important; |
| 294 | left: calc(-1 * (#{$idsContentInset} + #{$idsBandLeft})) !important; |
| 295 | height: calc(100% + #{$idsHeadingSpacing} + #{$idsBarOverlap}) !important; |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 296 | } |
| 297 | |
| Marc Kupietz | 55c9cef | 2026-08-08 16:03:06 +0200 | [diff] [blame] | 298 | // Section-divider slides: a level 1 heading alone on a slide (pandoc marks |
| 299 | // these .level1). The IDS reference decks centre that title on the slide while |
| 300 | // the bar stays in its usual top left corner, so here the bar cannot hang off |
| 301 | // the heading -- it is painted on the slide itself, at the height it has on |
| 302 | // every other slide, and the heading gets none of the top-left treatment. |
| 303 | $idsTitleHeight: 1.35 * $mainFontSize * 1.2; |
| 304 | $idsBarBlockHeight: $idsTitleHeight + $idsHeadingSpacing + $idsSubtitleHeight; |
| 305 | |
| 306 | .reveal .slides section.level1:not(.title-frame) { |
| 307 | height: 100% !important; |
| 308 | display: flex !important; |
| 309 | flex-direction: column !important; |
| 310 | justify-content: center !important; |
| 311 | } |
| 312 | |
| 313 | .reveal .slides section.level1:not(.title-frame)::before { |
| 314 | content: "" !important; |
| 315 | position: absolute !important; |
| 316 | top: 0 !important; |
| 317 | left: calc(-1 * #{$idsBandLeft}) !important; |
| 318 | width: #{$idsBarWidth} !important; |
| 319 | height: #{$idsBarBlockHeight} !important; |
| 320 | background: #{$idsOrange} !important; |
| 321 | } |
| 322 | |
| 323 | .reveal .slides section.level1:not(.title-frame) > h1:first-child { |
| 324 | text-align: center !important; |
| 325 | margin: 0 !important; |
| 326 | padding: 0 !important; |
| 327 | } |
| 328 | |
| 329 | .reveal .slides section.level1:not(.title-frame) > h1:first-child::before { |
| 330 | content: none !important; |
| 331 | } |
| 332 | |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 333 | // Define additional color effects based on Dracula spec |
| 334 | // https://spec.draculatheme.com/ |
| 335 | :root { |
| 336 | --r-bold-color: #{$idsOrange}; |
| 337 | --r-list-bullet-color: #{$listBulletColor}; |
| 338 | } |
| 339 | |
| 340 | .reveal { |
| Marc Kupietz | 9b795bd | 2026-08-19 06:58:44 +0200 | [diff] [blame] | 341 | // Bold ("highlighted") text gets the orange colour AND the condensed Fira |
| 342 | // Sans face, as in the IDS reference decks -- the lighter weight and 90% |
| 343 | // size keep it from dominating the serif body text. |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 344 | strong, b { |
| Marc Kupietz | 9b795bd | 2026-08-19 06:58:44 +0200 | [diff] [blame] | 345 | font-family: "Fira Sans Condensed", sans-serif; |
| 346 | font-weight: 600; |
| 347 | font-size: 90%; |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 348 | color: var(--r-bold-color); |
| 349 | } |
| 350 | |
| 351 | // Dracula colored list bullets and numbers |
| 352 | ul, ol { |
| 353 | li::marker { |
| 354 | color: var(--r-list-bullet-color) !important; |
| 355 | } |
| 356 | } |
| 357 | } |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 358 | |
| Marc Kupietz | 281ba9c | 2026-08-11 15:37:48 +0200 | [diff] [blame] | 359 | // Nested list items are set progressively smaller, both to emphasise the |
| 360 | // hierarchy and to keep deeply nested lists from visually competing with the |
| 361 | // first level. The em size compounds down the nesting levels, so each deeper |
| 362 | // level is 80% of its parent (level 2: 80%, level 3: 64%, level 4: 51%). |
| 363 | // Markers and the hanging indentation (padding-left: 0.7em above) scale with |
| 364 | // the text automatically. |
| 365 | .reveal li li { |
| 366 | font-size: 0.8em; |
| 367 | } |
| 368 | |
| Marc Kupietz | f4945eb | 2026-08-19 17:48:41 +0200 | [diff] [blame] | 369 | // Description lists: dt in orange Fira Sans Condensed, dd indented. |
| 370 | .reveal dl { |
| 371 | font-size: 0.62em; |
| 372 | line-height: 1.25; |
| 373 | } |
| 374 | .reveal dt { |
| 375 | font-weight: 700; |
| 376 | margin-top: 0.35em; |
| 377 | font-family: "Fira Sans Condensed", sans-serif; |
| 378 | color: $idsOrange; |
| 379 | } |
| 380 | .reveal dd { |
| 381 | margin: 0 0 0 1.2em; |
| 382 | color: #444; |
| 383 | } |
| 384 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 385 | |
| 386 | /********************************************* |
| 387 | * FOOTER |
| 388 | *********************************************/ |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 389 | #ids-footer:not(title-slide) { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 390 | opacity: 1; |
| 391 | background: white; |
| 392 | color: #444444; |
| 393 | border-top: dotted orange 2px; |
| 394 | transition: opacity 800ms ease-in-out; |
| 395 | position: fixed; |
| 396 | height: 6%; |
| 397 | line-height: 6%; |
| 398 | z-index: -20; |
| 399 | width: 100%; |
| 400 | letter-spacing: 0em; |
| 401 | text-align: center; |
| 402 | display: table; |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 403 | } |
| 404 | |
| 405 | #ids-footer span { |
| 406 | height: 100%; |
| 407 | line-height: 100%; |
| 408 | z-index: -20; |
| Marc Kupietz | 61ad026 | 2024-05-14 22:07:50 +0200 | [diff] [blame] | 409 | font-size: 1.8vh; |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 410 | 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] | 411 | display: inline-block; |
| 412 | display: table-cell; |
| 413 | vertical-align: middle; |
| 414 | } |
| 415 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 416 | /* 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] | 417 | div.progress[style="display: block;"] ~ #ids-footer { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 418 | bottom: calc(3px + 0vh); |
| 419 | } |
| 420 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 421 | /* Bottom position for the IDS-Footer footer when TOC-Progress is visible */ |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 422 | #ids-footer { |
| 423 | bottom: 3px; |
| 424 | } |
| 425 | |
| 426 | #ids-footer a { |
| 427 | color: #555555; |
| 428 | } |
| 429 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 430 | /* Bottom position for the IDS-Footer footer when progress bar is visible */ |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 431 | div.progress[style="display: block;"] ~ footer:last-of-type#ids-footer { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 432 | bottom: 3px; |
| 433 | } |
| 434 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 435 | /* 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] | 436 | footer:last-of-type#ids-footer { |
| 437 | bottom: 0px; |
| 438 | } |
| 439 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 440 | /* Make IDS-Footer invisible if explicitly indicated */ |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 441 | .no-ids-footer #ids-footer { |
| 442 | opacity: 0; |
| 443 | transition: opacity 800ms ease-in-out; |
| 444 | } |
| 445 | |
| 446 | .title-frame #ids-footer { |
| 447 | opacity: 0; |
| 448 | transition: opacity 800ms ease-in-out; |
| 449 | } |
| 450 | |
| 451 | .no-toc-progress #ids-footer { |
| 452 | opacity: 0; |
| 453 | transition: opacity 800ms ease-in-out; |
| 454 | } |
| 455 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 456 | /* Make IDS-Footer invisible in overview mode */ |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 457 | .overview #ids-footer { |
| 458 | opacity: 0; |
| 459 | transition: opacity 800ms ease-in-out; |
| 460 | } |
| 461 | |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 462 | // Like the orange bar/IDS logo above, this is painted on the slide itself |
| 463 | // (rather than on .slide-background-content, which spans the raw, |
| 464 | // unscaled viewport) so it stays pinned to the title slide's true |
| Marc Kupietz | 6771559 | 2026-08-15 14:55:18 +0200 | [diff] [blame] | 465 | // bottom-right corner instead of the browser window's. Its margin mirrors |
| 466 | // the IDS logo's (top 10px / right 8px of the slide), so the two sit on |
| 467 | // one shared inset. |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 468 | .reveal .slides section.title-frame { |
| 469 | 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] | 470 | background-repeat: no-repeat; |
| Marc Kupietz | 6771559 | 2026-08-15 14:55:18 +0200 | [diff] [blame] | 471 | background-position: right 8px bottom 10px; |
| 472 | background-size: calc(var(--slide-height) * 0.1) auto; |
| 473 | /* full slide height, so "bottom" really is the slide's bottom edge */ |
| 474 | height: 100%; |
| Marc Kupietz | e9ace29 | 2024-05-14 22:11:15 +0200 | [diff] [blame] | 475 | } |
| 476 | |
| 477 | |
| Marc Kupietz | 903104a | 2026-08-20 10:10:41 +0200 | [diff] [blame^] | 478 | /********************************************* |
| 479 | * SLIDES MENU |
| 480 | *********************************************/ |
| 481 | |
| 482 | // The menu plugin copies .reveal's computed font-family onto .slide-menu as an |
| 483 | // inline style (and its own CSS is loaded after the theme), so without |
| 484 | // !important here the menu would come out in the Libertinus serif body face. |
| 485 | // Fira Sans Condensed is the IDS sans for navigation/UI text, and its narrow |
| 486 | // glyphs keep long (German) slide titles on one line. |
| 487 | .slide-menu-wrapper .slide-menu { |
| 488 | font-family: "Fira Sans Condensed", sans-serif !important; |
| 489 | } |
| 490 | |
| 491 | // Widen the menu a little over the plugin's 300px default -- but only the |
| 492 | // default: a width the user picked via the menu-width option maps to one of |
| 493 | // the plugin's width classes (or an inline style), which must keep winning. |
| 494 | .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) { |
| 495 | width: 365px !important; |
| 496 | } |
| 497 | |
| 498 | // Tighter, less wasteful rows than the plugin's 10px 18px padding with a 12px |
| 499 | // icon gap: the icon column and generous side padding eat exactly the width |
| 500 | // the titles need. |
| 501 | .slide-menu-wrapper .slide-menu-item, |
| 502 | .slide-menu-wrapper .slide-menu-item-vertical { |
| 503 | padding: 6px 12px !important; |
| 504 | line-height: 1.3 !important; |
| 505 | } |
| 506 | |
| 507 | .slide-menu-wrapper .slide-menu-item-vertical { |
| 508 | padding-left: 26px !important; |
| 509 | } |
| 510 | |
| 511 | // Wrapped titles: make the row a flex line so the second line aligns with the |
| 512 | // first instead of sliding under the bullet/circle icon. The icon sits on the |
| 513 | // first line's text baseline; the title column takes the remaining width and |
| 514 | // wraps within itself. |
| 515 | .slide-menu-wrapper .slide-menu-item, |
| 516 | .slide-menu-wrapper .slide-menu-item-vertical { |
| 517 | display: flex !important; |
| 518 | align-items: baseline !important; |
| 519 | } |
| 520 | |
| 521 | .slide-menu-wrapper .slide-menu-item-title { |
| 522 | flex: 1 !important; |
| 523 | min-width: 0 !important; |
| 524 | } |
| 525 | |
| 526 | .slide-menu-wrapper .slide-menu-item i.far, |
| 527 | .slide-menu-wrapper .slide-menu-item i.fas, |
| 528 | .slide-menu-wrapper .slide-menu-item-vertical i.far, |
| 529 | .slide-menu-wrapper .slide-menu-item-vertical i.fas, |
| 530 | .slide-menu-wrapper .slide-menu-item svg.svg-inline--fa, |
| 531 | .slide-menu-wrapper .slide-menu-item-vertical svg.svg-inline--fa { |
| 532 | padding-right: 8px !important; |
| 533 | } |
| 534 | |
| 535 | // Current slide in the IDS accent colour, matching the slide-number and the |
| 536 | // orange bar. |
| 537 | .slide-menu-wrapper .active-menu-panel li.active { |
| 538 | color: #{$idsOrange} !important; |
| Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 539 | } |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 540 | |
| 541 | /* |
| 542 | * Menu controls |
| 543 | */ |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 544 | body .reveal .slide-menu-button { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 545 | color: #aaaaaa !important; |
| 546 | position: fixed; |
| 547 | left: 30px; |
| 548 | bottom: 2%; |
| 549 | vertical-align: middle; |
| 550 | z-index: 30; |
| 551 | font-size: 2vh; |
| 552 | } |
| 553 | |
| 554 | #customcontrols > ul { |
| 555 | color: #aaaaaa !important; |
| 556 | position: fixed; |
| Marc Kupietz | f51e915 | 2023-10-07 15:32:33 +0200 | [diff] [blame] | 557 | left: 50px; |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 558 | bottom: 2% !important; |
| 559 | vertical-align: middle; |
| 560 | z-index: 30; |
| 561 | font-size: 2vh; |
| 562 | } |
| 563 | |
| 564 | @media only screen and (min-width: 500px) { |
| 565 | #customcontrols > ul { |
| 566 | bottom: 2% !important; |
| 567 | } |
| 568 | } |
| Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 569 | |
| Marc Kupietz | c7249f9 | 2023-10-10 07:16:50 +0200 | [diff] [blame] | 570 | .reveal .controls .controls-arrow { |
| 571 | position: relative; |
| 572 | width: 3.6em; |
| 573 | height: 3.6em; |
| 574 | bottom: -12px; |
| 575 | right: -4px; |
| 576 | } |
| 577 | |
| Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 578 | .reveal h3, h4, h5, h6 { |
| 579 | text-transform: none !important; |
| 580 | } |
| 581 | |
| 582 | .reveal h3, h4, h5, h6 { |
| 583 | text-transform: none !important; |
| 584 | } |
| 585 | |
| 586 | .reveal h2 + h3 { |
| 587 | margin-top: -0.5em !important; |
| 588 | } |
| Marc Kupietz | df0eda9 | 2023-10-07 20:50:00 +0200 | [diff] [blame] | 589 | |
| 590 | .title-frame h1, |
| 591 | .title-frame h2 { |
| 592 | margin: 0 0 0 0; |
| 593 | background: rgb(246, 168, 0); |
| 594 | color: white; |
| 595 | font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif; |
| 596 | font-weight: 600; |
| 597 | line-height: 1.2; |
| 598 | letter-spacing: 0.05ex; |
| 599 | text-transform: uppercase; |
| 600 | width: 100%; |
| 601 | margin-top: .5em; |
| 602 | padding-top: .5em; |
| 603 | font-size: 1.75em; |
| 604 | margin-left: 0; |
| 605 | text-align: center; |
| 606 | text-shadow: none; |
| 607 | word-wrap: break-word; |
| 608 | } |
| 609 | |
| 610 | |
| 611 | .title-frame .author { |
| 612 | font-family: "Fira Sans Condensed", sans-serif; |
| 613 | font-weight: 400; |
| 614 | color: #657b83; |
| 615 | margin-top: 10vh; |
| 616 | } |
| 617 | |
| 618 | .title-frame .place { |
| 619 | font-family: "Fira Sans Condensed", sans-serif; |
| 620 | margin-top: 40px; |
| 621 | font-weight: 400; |
| 622 | color: #657b83; |
| 623 | } |
| 624 | |
| 625 | .title-frame h2 { |
| 626 | margin-top: -3px; |
| 627 | margin-bottom: 1em; |
| 628 | padding-bottom: .5em; |
| 629 | font-size: 1em; |
| 630 | } |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 631 | |
| 632 | /********************************************* |
| 633 | * TABLES |
| 634 | *********************************************/ |
| 635 | |
| 636 | th { |
| 637 | color: rgb(246, 168, 0); |
| 638 | } |
| 639 | |
| 640 | table { |
| 641 | font-family: 'Fira Sans Condensed', sans-serif; |
| 642 | font-weight: 400; |
| 643 | font-size: 16px; |
| 644 | } |
| 645 | |
| 646 | .reveal table.dataTable { |
| 647 | border: #aaaaaa 1px solid; |
| 648 | border-collapse: collapse; |
| 649 | } |
| 650 | |
| 651 | .reveal table.dataTable td { |
| 652 | border: #aaaaaa 1px solid; |
| 653 | border-collapse: collapse; |
| 654 | } |
| 655 | |
| 656 | .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 { |
| 657 | display: none; |
| 658 | } |
| 659 | |
| 660 | .caption { |
| 661 | font-family: 'Fira Sans Condensed', sans-serif; |
| 662 | font-weight: 400; |
| 663 | font-size: 16px; |
| 664 | text-align: center; |
| 665 | } |
| 666 | |
| 667 | /* |
| 668 | table.display td { white-space: nowrap; } |
| 669 | */ |
| 670 | |
| 671 | .dt-buttons, .dataTables_filter { |
| 672 | margin-top: 10pt; |
| 673 | } |
| 674 | |
| Marc Kupietz | 069f1e4 | 2023-10-11 10:26:16 +0200 | [diff] [blame] | 675 | /* Sort Arrows in DataTables */ |
| 676 | 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 { |
| 677 | right: 0 !important; |
| 678 | line-height: 80% !important; |
| 679 | } |
| 680 | |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 681 | /********************************************* |
| 682 | * BIBLIOGRAPHY |
| 683 | *********************************************/ |
| 684 | |
| 685 | .reveal .references { |
| 686 | font-family: "Fira Sans Condensed", sans-serif; |
| 687 | font-size: 16px; |
| 688 | text-align: left; |
| Marc Kupietz | bfab8a1 | 2026-08-19 14:42:42 +0200 | [diff] [blame] | 689 | margin-top: 10px; |
| 690 | max-height: 510px; |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 691 | font-weight: 400; |
| 692 | color: #253b43; |
| 693 | overflow-y: auto; |
| 694 | } |
| 695 | |
| 696 | .hanging-indent > .csl-entry { |
| 697 | padding-left: 22px ; |
| 698 | text-indent: -22px ; |
| 699 | } |
| 700 | |
| Marc Kupietz | 21f526c | 2026-08-14 12:32:56 +0200 | [diff] [blame] | 701 | // .references scopes these above pandoc's CSL defaults (div.csl-entry), which |
| 702 | // otherwise win on specificity and pin margin-bottom to 0em. |
| 703 | .references .csl-entry { |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 704 | color: #888888; |
| Marc Kupietz | 21f526c | 2026-08-14 12:32:56 +0200 | [diff] [blame] | 705 | margin-bottom: 0.5em; |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 706 | } |
| 707 | |
| Marc Kupietz | 21f526c | 2026-08-14 12:32:56 +0200 | [diff] [blame] | 708 | // "Authors (Year):" as a bold dark first line; the theme template's JS wraps |
| 709 | // the leading text of each entry in .csl-authors-year (see default.html) -- |
| 710 | // which part of an entry citeproc wraps in spans depends on the entry type, so |
| 711 | // a CSS-only break cannot place it reliably. |
| 712 | .csl-entry .csl-authors-year { |
| 713 | display: block; |
| 714 | font-weight: bold; |
| 715 | color: #4d616b; |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 716 | } |
| Marc Kupietz | 1179716 | 2023-10-09 23:17:36 +0200 | [diff] [blame] | 717 | |
| 718 | .reveal code.sourceCode:last-child + pre { |
| 719 | height: 800px !important; |
| Marc Kupietz | c7249f9 | 2023-10-10 07:16:50 +0200 | [diff] [blame] | 720 | } |
| 721 | |
| Marc Kupietz | 589d1b8 | 2023-10-10 12:31:33 +0200 | [diff] [blame] | 722 | |
| 723 | /********************************************* |
| 724 | * ARROWS and SLIDE NUMBERS |
| 725 | *********************************************/ |
| 726 | |
| 727 | .reveal .controls .controls-arrow:after, .reveal .controls .controls-arrow:before { |
| 728 | width: 13px !important; /* size */ |
| 729 | height: 4px; /* line width */ |
| 730 | } |
| 731 | |
| 732 | .reveal .controls { |
| 733 | display: none; |
| 734 | position: absolute; |
| 735 | top: auto; |
| 736 | bottom: -8px; |
| 737 | right: 16px; |
| 738 | left: auto; |
| 739 | z-index: 11; |
| 740 | /* color: #000;*/ |
| 741 | pointer-events: none; |
| 742 | font-size: 8px; |
| 743 | } |
| 744 | |
| 745 | .reveal .controls .controls-arrow { |
| 746 | position: relative; |
| 747 | height: 3.6em; |
| 748 | width: 1.2em; /* distance betwee arrows */ |
| 749 | bottom: 0; |
| 750 | right: 0; |
| 751 | } |
| 752 | |
| 753 | .reveal div.slide-number { |
| 754 | text-align: center; |
| 755 | width: 2em; |
| 756 | position: absolute; |
| 757 | display: block; |
| 758 | right: 29px; |
| 759 | bottom: 22px; |
| 760 | z-index: 31; |
| 761 | font-family: "Fira Sans Condensed", sans-serif; |
| 762 | font-size: 18px; |
| 763 | line-height: 1; |
| 764 | background-color: white; |
| 765 | color: #666; |
| 766 | padding: 0; |
| 767 | } |
| 768 | |