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