| 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 |
| 116 | // blocks so they line up with the headings, with the markers hanging in the |
| 117 | // padding so the marker column itself aligns with the heading text. |
| 118 | .reveal .slides section:not(.title-frame) ul, |
| 119 | .reveal .slides section:not(.title-frame) ol { |
| 120 | display: block !important; |
| 121 | text-align: left !important; |
| 122 | margin-left: 0 !important; |
| 123 | padding-left: 0.7em !important; |
| 124 | } |
| 125 | |
| 126 | // reveal.js centres code blocks (width: 90%; margin: auto); make them fill the |
| 127 | // slide's text column so they start on the same left edge as the headings. |
| 128 | .reveal .slides section:not(.title-frame) pre { |
| 129 | width: auto !important; |
| 130 | margin-left: 0 !important; |
| 131 | margin-right: 0 !important; |
| 132 | } |
| 133 | |
| 134 | // The IDS logo stays a slide-wide watermark (top right of every slide, |
| 135 | // including the title page). The top offset is chosen so the logo's cap line |
| 136 | // meets the top of the heading text rather than sitting below it; the SVG |
| 137 | // carries a little transparent padding of its own, which this accounts for. |
| 138 | $idsLogoTop: 10px; |
| 139 | $idsLogoRight: 8px; |
| 140 | |
| 141 | .reveal .slides { |
| 142 | background-image: url('https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/IDS-Logo-2019.svg'); |
| 143 | background-repeat: no-repeat; |
| 144 | background-position: top #{$idsLogoTop} right #{$idsLogoRight}; |
| 145 | background-size: calc(var(--slide-height) * #{$idsLogoWidthRatio}) auto; |
| 146 | } |
| 147 | |
| 148 | // The orange bar is drawn as a ::before on the headings rather than on the |
| 149 | // slide, in two segments: one behind the title and one behind the subtitle. |
| 150 | // Because each segment is sized as a percentage of its own heading's box, the |
| 151 | // bar always ends exactly at the bottom of the last heading -- it follows a |
| 152 | // subtitle when there is one, stops at the title when there isn't, and grows |
| 153 | // by itself when a heading wraps onto a second line. No fixed heights, and no |
| 154 | // JavaScript. Headings carry no vertical padding, so they sit as high on the |
| 155 | // slide as the bar does. Every rule is !important because this theme has to |
| 156 | // win against plugin- and document-level CSS loaded after it. |
| 157 | .reveal .slides section:not(.title-frame) > h1:first-child, |
| 158 | .reveal .slides section:not(.title-frame) > h2:first-child { |
| 159 | position: relative !important; |
| 160 | display: block !important; |
| 161 | text-align: left !important; |
| 162 | margin: 0 calc(-1 * #{$idsContentInset}) #{$idsHeadingSpacing} calc(-1 * #{$idsContentInset}) !important; |
| 163 | padding: 0 0 0 #{$idsContentInset} !important; |
| 164 | font-weight: var(--r-heading-font-weight) !important; |
| 165 | } |
| 166 | |
| 167 | .reveal .slides section:not(.title-frame) > h1:first-child::before, |
| 168 | .reveal .slides section:not(.title-frame) > h2:first-child::before, |
| 169 | .reveal .slides section:not(.title-frame) > h2:first-child + h3::before { |
| 170 | content: "" !important; |
| 171 | position: absolute !important; |
| 172 | width: #{$idsBarWidth} !important; |
| 173 | // A flat fill rather than orange_bar.png: that image is two-toned (a lighter |
| 174 | // band across its top), so stretching it over each segment separately left a |
| 175 | // pale seam where the two met. The IDS reference decks draw a flat #f6a800. |
| 176 | background: #{$idsOrange} !important; |
| 177 | } |
| 178 | |
| 179 | // Title segment: pulled out to the window's physical left edge. |
| 180 | .reveal .slides section:not(.title-frame) > h1:first-child::before, |
| 181 | .reveal .slides section:not(.title-frame) > h2:first-child::before { |
| 182 | top: 0 !important; |
| 183 | left: calc(-1 * #{$idsBandLeft}) !important; |
| 184 | height: 100% !important; |
| 185 | } |
| 186 | |
| 187 | // A slide without a subtitle reserves the room one would have taken, so the |
| 188 | // bar keeps the same height and the body content starts at the same place on |
| 189 | // every slide. :has() is what lets us ask "is a subtitle coming?" in CSS; where |
| 190 | // it is unsupported such slides simply keep a title-height bar. |
| 191 | .reveal .slides section:not(.title-frame) > h1:first-child:not(:has(+ h3)), |
| 192 | .reveal .slides section:not(.title-frame) > h2:first-child:not(:has(+ h3)) { |
| 193 | margin-bottom: calc(#{$idsHeadingSpacing} + #{$idsSubtitleHeight} + #{$blockMargin}) !important; |
| 194 | } |
| 195 | |
| 196 | .reveal .slides section:not(.title-frame) > h1:first-child:not(:has(+ h3))::before, |
| 197 | .reveal .slides section:not(.title-frame) > h2:first-child:not(:has(+ h3))::before { |
| 198 | height: calc(100% + #{$idsHeadingSpacing} + #{$idsSubtitleHeight}) !important; |
| 199 | } |
| 200 | |
| 201 | // The subtitle sits in the slide's normal text column, so its segment has to |
| 202 | // reach back out to the slide edge, and up over the gap to the title. |
| 203 | .reveal .slides section:not(.title-frame) > h2:first-child + h3 { |
| 204 | position: relative !important; |
| 205 | text-align: left !important; |
| 206 | margin-top: 0 !important; |
| 207 | margin-left: 0 !important; |
| 208 | margin-bottom: $blockMargin !important; |
| 209 | } |
| 210 | |
| 211 | .reveal .slides section:not(.title-frame) > h2:first-child + h3::before { |
| 212 | top: calc(-1 * (#{$idsHeadingSpacing} + #{$idsBarOverlap})) !important; |
| 213 | left: calc(-1 * (#{$idsContentInset} + #{$idsBandLeft})) !important; |
| 214 | height: calc(100% + #{$idsHeadingSpacing} + #{$idsBarOverlap}) !important; |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 215 | } |
| 216 | |
| Marc Kupietz | 55c9cef | 2026-08-08 16:03:06 +0200 | [diff] [blame] | 217 | // Section-divider slides: a level 1 heading alone on a slide (pandoc marks |
| 218 | // these .level1). The IDS reference decks centre that title on the slide while |
| 219 | // the bar stays in its usual top left corner, so here the bar cannot hang off |
| 220 | // the heading -- it is painted on the slide itself, at the height it has on |
| 221 | // every other slide, and the heading gets none of the top-left treatment. |
| 222 | $idsTitleHeight: 1.35 * $mainFontSize * 1.2; |
| 223 | $idsBarBlockHeight: $idsTitleHeight + $idsHeadingSpacing + $idsSubtitleHeight; |
| 224 | |
| 225 | .reveal .slides section.level1:not(.title-frame) { |
| 226 | height: 100% !important; |
| 227 | display: flex !important; |
| 228 | flex-direction: column !important; |
| 229 | justify-content: center !important; |
| 230 | } |
| 231 | |
| 232 | .reveal .slides section.level1:not(.title-frame)::before { |
| 233 | content: "" !important; |
| 234 | position: absolute !important; |
| 235 | top: 0 !important; |
| 236 | left: calc(-1 * #{$idsBandLeft}) !important; |
| 237 | width: #{$idsBarWidth} !important; |
| 238 | height: #{$idsBarBlockHeight} !important; |
| 239 | background: #{$idsOrange} !important; |
| 240 | } |
| 241 | |
| 242 | .reveal .slides section.level1:not(.title-frame) > h1:first-child { |
| 243 | text-align: center !important; |
| 244 | margin: 0 !important; |
| 245 | padding: 0 !important; |
| 246 | } |
| 247 | |
| 248 | .reveal .slides section.level1:not(.title-frame) > h1:first-child::before { |
| 249 | content: none !important; |
| 250 | } |
| 251 | |
| Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 252 | // Define additional color effects based on Dracula spec |
| 253 | // https://spec.draculatheme.com/ |
| 254 | :root { |
| 255 | --r-bold-color: #{$idsOrange}; |
| 256 | --r-list-bullet-color: #{$listBulletColor}; |
| 257 | } |
| 258 | |
| 259 | .reveal { |
| 260 | strong, b { |
| 261 | color: var(--r-bold-color); |
| 262 | } |
| 263 | |
| 264 | // Dracula colored list bullets and numbers |
| 265 | ul, ol { |
| 266 | li::marker { |
| 267 | color: var(--r-list-bullet-color) !important; |
| 268 | } |
| 269 | } |
| 270 | } |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 271 | |
| Marc Kupietz | 281ba9c | 2026-08-11 15:37:48 +0200 | [diff] [blame^] | 272 | // Nested list items are set progressively smaller, both to emphasise the |
| 273 | // hierarchy and to keep deeply nested lists from visually competing with the |
| 274 | // first level. The em size compounds down the nesting levels, so each deeper |
| 275 | // level is 80% of its parent (level 2: 80%, level 3: 64%, level 4: 51%). |
| 276 | // Markers and the hanging indentation (padding-left: 0.7em above) scale with |
| 277 | // the text automatically. |
| 278 | .reveal li li { |
| 279 | font-size: 0.8em; |
| 280 | } |
| 281 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 282 | |
| 283 | /********************************************* |
| 284 | * FOOTER |
| 285 | *********************************************/ |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 286 | #ids-footer:not(title-slide) { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 287 | opacity: 1; |
| 288 | background: white; |
| 289 | color: #444444; |
| 290 | border-top: dotted orange 2px; |
| 291 | transition: opacity 800ms ease-in-out; |
| 292 | position: fixed; |
| 293 | height: 6%; |
| 294 | line-height: 6%; |
| 295 | z-index: -20; |
| 296 | width: 100%; |
| 297 | letter-spacing: 0em; |
| 298 | text-align: center; |
| 299 | display: table; |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 300 | } |
| 301 | |
| 302 | #ids-footer span { |
| 303 | height: 100%; |
| 304 | line-height: 100%; |
| 305 | z-index: -20; |
| Marc Kupietz | 61ad026 | 2024-05-14 22:07:50 +0200 | [diff] [blame] | 306 | font-size: 1.8vh; |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 307 | 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] | 308 | display: inline-block; |
| 309 | display: table-cell; |
| 310 | vertical-align: middle; |
| 311 | } |
| 312 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 313 | /* 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] | 314 | div.progress[style="display: block;"] ~ #ids-footer { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 315 | bottom: calc(3px + 0vh); |
| 316 | } |
| 317 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 318 | /* Bottom position for the IDS-Footer footer when TOC-Progress is visible */ |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 319 | #ids-footer { |
| 320 | bottom: 3px; |
| 321 | } |
| 322 | |
| 323 | #ids-footer a { |
| 324 | color: #555555; |
| 325 | } |
| 326 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 327 | /* Bottom position for the IDS-Footer footer when progress bar is visible */ |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 328 | div.progress[style="display: block;"] ~ footer:last-of-type#ids-footer { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 329 | bottom: 3px; |
| 330 | } |
| 331 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 332 | /* 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] | 333 | footer:last-of-type#ids-footer { |
| 334 | bottom: 0px; |
| 335 | } |
| 336 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 337 | /* Make IDS-Footer invisible if explicitly indicated */ |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 338 | .no-ids-footer #ids-footer { |
| 339 | opacity: 0; |
| 340 | transition: opacity 800ms ease-in-out; |
| 341 | } |
| 342 | |
| 343 | .title-frame #ids-footer { |
| 344 | opacity: 0; |
| 345 | transition: opacity 800ms ease-in-out; |
| 346 | } |
| 347 | |
| 348 | .no-toc-progress #ids-footer { |
| 349 | opacity: 0; |
| 350 | transition: opacity 800ms ease-in-out; |
| 351 | } |
| 352 | |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 353 | /* Make IDS-Footer invisible in overview mode */ |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 354 | .overview #ids-footer { |
| 355 | opacity: 0; |
| 356 | transition: opacity 800ms ease-in-out; |
| 357 | } |
| 358 | |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 359 | // Like the orange bar/IDS logo above, this is painted on the slide itself |
| 360 | // (rather than on .slide-background-content, which spans the raw, |
| 361 | // unscaled viewport) so it stays pinned to the title slide's true |
| 362 | // bottom-right corner instead of the browser window's. |
| 363 | .reveal .slides section.title-frame { |
| 364 | 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] | 365 | background-repeat: no-repeat; |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 366 | background-position: right 15px bottom 5px; |
| 367 | background-size: calc(var(--slide-height) * 0.07) auto; |
| Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 368 | } |
| 369 | |
| Marc Kupietz | e9ace29 | 2024-05-14 22:11:15 +0200 | [diff] [blame] | 370 | @media only screen { |
| Marc Kupietz | a0f8f68 | 2026-08-08 14:13:11 +0200 | [diff] [blame] | 371 | .reveal .slides section.title-frame { |
| 372 | background-position: right 45px bottom 5px; |
| Marc Kupietz | e9ace29 | 2024-05-14 22:11:15 +0200 | [diff] [blame] | 373 | } |
| 374 | } |
| 375 | |
| 376 | |
| Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 377 | .slide-menu-items, .slide-menu-toolbar { |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 378 | font-family: "Fira Sans" !important; |
| Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 379 | } |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 380 | |
| 381 | /* |
| 382 | * Menu controls |
| 383 | */ |
| Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 384 | body .reveal .slide-menu-button { |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 385 | color: #aaaaaa !important; |
| 386 | position: fixed; |
| 387 | left: 30px; |
| 388 | bottom: 2%; |
| 389 | vertical-align: middle; |
| 390 | z-index: 30; |
| 391 | font-size: 2vh; |
| 392 | } |
| 393 | |
| 394 | #customcontrols > ul { |
| 395 | color: #aaaaaa !important; |
| 396 | position: fixed; |
| Marc Kupietz | f51e915 | 2023-10-07 15:32:33 +0200 | [diff] [blame] | 397 | left: 50px; |
| Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 398 | bottom: 2% !important; |
| 399 | vertical-align: middle; |
| 400 | z-index: 30; |
| 401 | font-size: 2vh; |
| 402 | } |
| 403 | |
| 404 | @media only screen and (min-width: 500px) { |
| 405 | #customcontrols > ul { |
| 406 | bottom: 2% !important; |
| 407 | } |
| 408 | } |
| Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 409 | |
| Marc Kupietz | c7249f9 | 2023-10-10 07:16:50 +0200 | [diff] [blame] | 410 | .reveal .controls .controls-arrow { |
| 411 | position: relative; |
| 412 | width: 3.6em; |
| 413 | height: 3.6em; |
| 414 | bottom: -12px; |
| 415 | right: -4px; |
| 416 | } |
| 417 | |
| Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 418 | .reveal h3, h4, h5, h6 { |
| 419 | text-transform: none !important; |
| 420 | } |
| 421 | |
| 422 | .reveal h3, h4, h5, h6 { |
| 423 | text-transform: none !important; |
| 424 | } |
| 425 | |
| 426 | .reveal h2 + h3 { |
| 427 | margin-top: -0.5em !important; |
| 428 | } |
| Marc Kupietz | df0eda9 | 2023-10-07 20:50:00 +0200 | [diff] [blame] | 429 | |
| 430 | .title-frame h1, |
| 431 | .title-frame h2 { |
| 432 | margin: 0 0 0 0; |
| 433 | background: rgb(246, 168, 0); |
| 434 | color: white; |
| 435 | font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif; |
| 436 | font-weight: 600; |
| 437 | line-height: 1.2; |
| 438 | letter-spacing: 0.05ex; |
| 439 | text-transform: uppercase; |
| 440 | width: 100%; |
| 441 | margin-top: .5em; |
| 442 | padding-top: .5em; |
| 443 | font-size: 1.75em; |
| 444 | margin-left: 0; |
| 445 | text-align: center; |
| 446 | text-shadow: none; |
| 447 | word-wrap: break-word; |
| 448 | } |
| 449 | |
| 450 | |
| 451 | .title-frame .author { |
| 452 | font-family: "Fira Sans Condensed", sans-serif; |
| 453 | font-weight: 400; |
| 454 | color: #657b83; |
| 455 | margin-top: 10vh; |
| 456 | } |
| 457 | |
| 458 | .title-frame .place { |
| 459 | font-family: "Fira Sans Condensed", sans-serif; |
| 460 | margin-top: 40px; |
| 461 | font-weight: 400; |
| 462 | color: #657b83; |
| 463 | } |
| 464 | |
| 465 | .title-frame h2 { |
| 466 | margin-top: -3px; |
| 467 | margin-bottom: 1em; |
| 468 | padding-bottom: .5em; |
| 469 | font-size: 1em; |
| 470 | } |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 471 | |
| 472 | /********************************************* |
| 473 | * TABLES |
| 474 | *********************************************/ |
| 475 | |
| 476 | th { |
| 477 | color: rgb(246, 168, 0); |
| 478 | } |
| 479 | |
| 480 | table { |
| 481 | font-family: 'Fira Sans Condensed', sans-serif; |
| 482 | font-weight: 400; |
| 483 | font-size: 16px; |
| 484 | } |
| 485 | |
| 486 | .reveal table.dataTable { |
| 487 | border: #aaaaaa 1px solid; |
| 488 | border-collapse: collapse; |
| 489 | } |
| 490 | |
| 491 | .reveal table.dataTable td { |
| 492 | border: #aaaaaa 1px solid; |
| 493 | border-collapse: collapse; |
| 494 | } |
| 495 | |
| 496 | .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 { |
| 497 | display: none; |
| 498 | } |
| 499 | |
| 500 | .caption { |
| 501 | font-family: 'Fira Sans Condensed', sans-serif; |
| 502 | font-weight: 400; |
| 503 | font-size: 16px; |
| 504 | text-align: center; |
| 505 | } |
| 506 | |
| 507 | /* |
| 508 | table.display td { white-space: nowrap; } |
| 509 | */ |
| 510 | |
| 511 | .dt-buttons, .dataTables_filter { |
| 512 | margin-top: 10pt; |
| 513 | } |
| 514 | |
| Marc Kupietz | 069f1e4 | 2023-10-11 10:26:16 +0200 | [diff] [blame] | 515 | /* Sort Arrows in DataTables */ |
| 516 | 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 { |
| 517 | right: 0 !important; |
| 518 | line-height: 80% !important; |
| 519 | } |
| 520 | |
| Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 521 | /********************************************* |
| 522 | * BIBLIOGRAPHY |
| 523 | *********************************************/ |
| 524 | |
| 525 | .reveal .references { |
| 526 | font-family: "Fira Sans Condensed", sans-serif; |
| 527 | font-size: 16px; |
| 528 | text-align: left; |
| 529 | margin-top: 35px; |
| 530 | max-height: 540px; |
| 531 | font-weight: 400; |
| 532 | color: #253b43; |
| 533 | overflow-y: auto; |
| 534 | } |
| 535 | |
| 536 | .hanging-indent > .csl-entry { |
| 537 | padding-left: 22px ; |
| 538 | text-indent: -22px ; |
| 539 | } |
| 540 | |
| 541 | .csl-entry::first-line { |
| 542 | color: #253b43; |
| 543 | } |
| 544 | |
| 545 | .csl-entry { |
| 546 | color: #888888; |
| 547 | } |
| 548 | |
| 549 | /* Add line break after authors and year*/ |
| 550 | .csl-entry :first-child::before { |
| 551 | content: "\a"; |
| 552 | white-space: pre; |
| 553 | } |
| Marc Kupietz | 1179716 | 2023-10-09 23:17:36 +0200 | [diff] [blame] | 554 | |
| 555 | .reveal code.sourceCode:last-child + pre { |
| 556 | height: 800px !important; |
| Marc Kupietz | c7249f9 | 2023-10-10 07:16:50 +0200 | [diff] [blame] | 557 | } |
| 558 | |
| Marc Kupietz | 589d1b8 | 2023-10-10 12:31:33 +0200 | [diff] [blame] | 559 | |
| 560 | /********************************************* |
| 561 | * ARROWS and SLIDE NUMBERS |
| 562 | *********************************************/ |
| 563 | |
| 564 | .reveal .controls .controls-arrow:after, .reveal .controls .controls-arrow:before { |
| 565 | width: 13px !important; /* size */ |
| 566 | height: 4px; /* line width */ |
| 567 | } |
| 568 | |
| 569 | .reveal .controls { |
| 570 | display: none; |
| 571 | position: absolute; |
| 572 | top: auto; |
| 573 | bottom: -8px; |
| 574 | right: 16px; |
| 575 | left: auto; |
| 576 | z-index: 11; |
| 577 | /* color: #000;*/ |
| 578 | pointer-events: none; |
| 579 | font-size: 8px; |
| 580 | } |
| 581 | |
| 582 | .reveal .controls .controls-arrow { |
| 583 | position: relative; |
| 584 | height: 3.6em; |
| 585 | width: 1.2em; /* distance betwee arrows */ |
| 586 | bottom: 0; |
| 587 | right: 0; |
| 588 | } |
| 589 | |
| 590 | .reveal div.slide-number { |
| 591 | text-align: center; |
| 592 | width: 2em; |
| 593 | position: absolute; |
| 594 | display: block; |
| 595 | right: 29px; |
| 596 | bottom: 22px; |
| 597 | z-index: 31; |
| 598 | font-family: "Fira Sans Condensed", sans-serif; |
| 599 | font-size: 18px; |
| 600 | line-height: 1; |
| 601 | background-color: white; |
| 602 | color: #666; |
| 603 | padding: 0; |
| 604 | } |
| 605 | |