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 |
| 15 | @import url('https://code.cdn.mozilla.net/fonts/fira.css'); |
| 16 | @import url('https://korap.ids-mannheim.de/font/fira-condensed.css'); |
| 17 | @import url('https://korap.ids-mannheim.de/font/libertinus.css'); |
| 18 | |
| 19 | $idsOrange: #f6a800; |
| 20 | |
| 21 | // Override theme settings (see ../template/settings.scss) |
| 22 | $backgroundColor: #fff; |
| 23 | |
| 24 | $mainColor: #222; |
| 25 | $headingColor: $idsOrange; |
| 26 | |
| 27 | $mainFontSize: 42px; |
| 28 | $mainFont: 'Libertinus Serif', Helvetica, sans-serif; |
Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 29 | $headingFont: 'Fira Sans Condensed', 'Fira Sans', Helvetica, sans-serif; |
Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 30 | $headingTextShadow: none; |
| 31 | $headingLetterSpacing: 0.05ex; |
| 32 | $headingTextTransform: uppercase; |
| 33 | $headingFontWeight: 600; |
| 34 | $linkColor: #2a76dd; |
| 35 | $linkColorHover: lighten( $linkColor, 15% ); |
| 36 | $selectionBackgroundColor: lighten( $linkColor, 25% ); |
| 37 | |
| 38 | $heading1Size: 2em; |
| 39 | $heading2Size: 1.35em; |
Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 40 | $heading3Size: 0.9em; |
| 41 | $heading4Size: 0.7em; |
Marc Kupietz | a737b1b | 2023-10-07 09:32:20 +0200 | [diff] [blame] | 42 | |
| 43 | $listBulletColor: $idsOrange; |
| 44 | |
| 45 | // Change text colors against dark slide backgrounds |
| 46 | @include dark-bg-text-color(#fff); |
| 47 | |
| 48 | |
| 49 | // Theme template ------------------------------ |
| 50 | @import "../template/theme"; |
| 51 | // --------------------------------------------- |
| 52 | |
| 53 | body { |
| 54 | background-image: url('https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/IDS-Logo-2019.svg'), |
| 55 | url('https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/orange_bar.png') !important; |
| 56 | background-repeat: no-repeat !important; |
| 57 | background-position: top 20px right 20px, top 20px left !important; |
| 58 | background-size: 25vH auto, 4vH 16vH !important; |
| 59 | } |
| 60 | |
| 61 | // Define additional color effects based on Dracula spec |
| 62 | // https://spec.draculatheme.com/ |
| 63 | :root { |
| 64 | --r-bold-color: #{$idsOrange}; |
| 65 | --r-list-bullet-color: #{$listBulletColor}; |
| 66 | } |
| 67 | |
| 68 | .reveal { |
| 69 | strong, b { |
| 70 | color: var(--r-bold-color); |
| 71 | } |
| 72 | |
| 73 | // Dracula colored list bullets and numbers |
| 74 | ul, ol { |
| 75 | li::marker { |
| 76 | color: var(--r-list-bullet-color) !important; |
| 77 | } |
| 78 | } |
| 79 | } |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 80 | |
| 81 | |
| 82 | /********************************************* |
| 83 | * FOOTER |
| 84 | *********************************************/ |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 85 | #ids-footer:not(title-slide) { |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 86 | opacity: 1; |
| 87 | background: white; |
| 88 | color: #444444; |
| 89 | border-top: dotted orange 2px; |
| 90 | transition: opacity 800ms ease-in-out; |
| 91 | position: fixed; |
| 92 | height: 6%; |
| 93 | line-height: 6%; |
| 94 | z-index: -20; |
| 95 | width: 100%; |
| 96 | letter-spacing: 0em; |
| 97 | text-align: center; |
| 98 | display: table; |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | #ids-footer span { |
| 102 | height: 100%; |
| 103 | line-height: 100%; |
| 104 | z-index: -20; |
Marc Kupietz | 61ad026 | 2024-05-14 22:07:50 +0200 | [diff] [blame] | 105 | font-size: 1.8vh; |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 106 | 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] | 107 | display: inline-block; |
| 108 | display: table-cell; |
| 109 | vertical-align: middle; |
| 110 | } |
| 111 | |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 112 | /* 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] | 113 | div.progress[style="display: block;"] ~ #ids-footer { |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 114 | bottom: calc(3px + 0vh); |
| 115 | } |
| 116 | |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 117 | /* Bottom position for the IDS-Footer footer when TOC-Progress is visible */ |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 118 | #ids-footer { |
| 119 | bottom: 3px; |
| 120 | } |
| 121 | |
| 122 | #ids-footer a { |
| 123 | color: #555555; |
| 124 | } |
| 125 | |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 126 | /* Bottom position for the IDS-Footer footer when progress bar is visible */ |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 127 | div.progress[style="display: block;"] ~ footer:last-of-type#ids-footer { |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 128 | bottom: 3px; |
| 129 | } |
| 130 | |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 131 | /* 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] | 132 | footer:last-of-type#ids-footer { |
| 133 | bottom: 0px; |
| 134 | } |
| 135 | |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 136 | /* Make IDS-Footer invisible if explicitly indicated */ |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 137 | .no-ids-footer #ids-footer { |
| 138 | opacity: 0; |
| 139 | transition: opacity 800ms ease-in-out; |
| 140 | } |
| 141 | |
| 142 | .title-frame #ids-footer { |
| 143 | opacity: 0; |
| 144 | transition: opacity 800ms ease-in-out; |
| 145 | } |
| 146 | |
| 147 | .no-toc-progress #ids-footer { |
| 148 | opacity: 0; |
| 149 | transition: opacity 800ms ease-in-out; |
| 150 | } |
| 151 | |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 152 | /* Make IDS-Footer invisible in overview mode */ |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 153 | .overview #ids-footer { |
| 154 | opacity: 0; |
| 155 | transition: opacity 800ms ease-in-out; |
| 156 | } |
| 157 | |
Marc Kupietz | e9ace29 | 2024-05-14 22:11:15 +0200 | [diff] [blame] | 158 | .title-frame .slide-number { |
| 159 | opacity: 0 !important; |
| 160 | transition: opacity 800ms ease-in-out; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 161 | display: none !important; |
| 162 | } |
| 163 | |
Marc Kupietz | e9ace29 | 2024-05-14 22:11:15 +0200 | [diff] [blame] | 164 | |
| 165 | .title-frame .controls .controls-arrow { |
| 166 | opacity: 0 !important; |
| 167 | display: none !important; |
| 168 | z-index: 0; |
| 169 | } |
| 170 | |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 171 | .title-frame div.slide-background-content { |
| 172 | text-align: right !important; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 173 | background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg") !important; |
| 174 | background-repeat: no-repeat; |
Marc Kupietz | e9ace29 | 2024-05-14 22:11:15 +0200 | [diff] [blame] | 175 | background-position: right 15px bottom 5px !important; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 176 | background-size: 7vH auto !important; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 177 | } |
| 178 | |
Marc Kupietz | e9ace29 | 2024-05-14 22:11:15 +0200 | [diff] [blame] | 179 | @media only screen { |
| 180 | .title-frame div.slide-background-content { |
| 181 | background-position: right 45px !important; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 186 | .slide-menu-items, .slide-menu-toolbar { |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 187 | font-family: "Fira Sans" !important; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 188 | } |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 189 | |
| 190 | /* |
| 191 | * Menu controls |
| 192 | */ |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 193 | body .reveal .slide-menu-button { |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 194 | color: #aaaaaa !important; |
| 195 | position: fixed; |
| 196 | left: 30px; |
| 197 | bottom: 2%; |
| 198 | vertical-align: middle; |
| 199 | z-index: 30; |
| 200 | font-size: 2vh; |
| 201 | } |
| 202 | |
| 203 | #customcontrols > ul { |
| 204 | color: #aaaaaa !important; |
| 205 | position: fixed; |
Marc Kupietz | f51e915 | 2023-10-07 15:32:33 +0200 | [diff] [blame] | 206 | left: 50px; |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 207 | bottom: 2% !important; |
| 208 | vertical-align: middle; |
| 209 | z-index: 30; |
| 210 | font-size: 2vh; |
| 211 | } |
| 212 | |
| 213 | @media only screen and (min-width: 500px) { |
| 214 | #customcontrols > ul { |
| 215 | bottom: 2% !important; |
| 216 | } |
| 217 | } |
Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 218 | |
Marc Kupietz | c7249f9 | 2023-10-10 07:16:50 +0200 | [diff] [blame] | 219 | .reveal .controls .controls-arrow { |
| 220 | position: relative; |
| 221 | width: 3.6em; |
| 222 | height: 3.6em; |
| 223 | bottom: -12px; |
| 224 | right: -4px; |
| 225 | } |
| 226 | |
Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 227 | .reveal h3, h4, h5, h6 { |
| 228 | text-transform: none !important; |
| 229 | } |
| 230 | |
| 231 | .reveal h3, h4, h5, h6 { |
| 232 | text-transform: none !important; |
| 233 | } |
| 234 | |
| 235 | .reveal h2 + h3 { |
| 236 | margin-top: -0.5em !important; |
| 237 | } |
Marc Kupietz | df0eda9 | 2023-10-07 20:50:00 +0200 | [diff] [blame] | 238 | |
Marc Kupietz | fac437e | 2023-10-09 23:16:38 +0200 | [diff] [blame] | 239 | .reveal h1:last-child { |
| 240 | margin-top: 250px; |
| 241 | } |
| 242 | |
Marc Kupietz | df0eda9 | 2023-10-07 20:50:00 +0200 | [diff] [blame] | 243 | .title-frame h1, |
| 244 | .title-frame h2 { |
| 245 | margin: 0 0 0 0; |
| 246 | background: rgb(246, 168, 0); |
| 247 | color: white; |
| 248 | font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif; |
| 249 | font-weight: 600; |
| 250 | line-height: 1.2; |
| 251 | letter-spacing: 0.05ex; |
| 252 | text-transform: uppercase; |
| 253 | width: 100%; |
| 254 | margin-top: .5em; |
| 255 | padding-top: .5em; |
| 256 | font-size: 1.75em; |
| 257 | margin-left: 0; |
| 258 | text-align: center; |
| 259 | text-shadow: none; |
| 260 | word-wrap: break-word; |
| 261 | } |
| 262 | |
| 263 | |
| 264 | .title-frame .author { |
| 265 | font-family: "Fira Sans Condensed", sans-serif; |
| 266 | font-weight: 400; |
| 267 | color: #657b83; |
| 268 | margin-top: 10vh; |
| 269 | } |
| 270 | |
| 271 | .title-frame .place { |
| 272 | font-family: "Fira Sans Condensed", sans-serif; |
| 273 | margin-top: 40px; |
| 274 | font-weight: 400; |
| 275 | color: #657b83; |
| 276 | } |
| 277 | |
| 278 | .title-frame h2 { |
| 279 | margin-top: -3px; |
| 280 | margin-bottom: 1em; |
| 281 | padding-bottom: .5em; |
| 282 | font-size: 1em; |
| 283 | } |
Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 284 | |
| 285 | /********************************************* |
| 286 | * TABLES |
| 287 | *********************************************/ |
| 288 | |
| 289 | th { |
| 290 | color: rgb(246, 168, 0); |
| 291 | } |
| 292 | |
| 293 | table { |
| 294 | font-family: 'Fira Sans Condensed', sans-serif; |
| 295 | font-weight: 400; |
| 296 | font-size: 16px; |
| 297 | } |
| 298 | |
| 299 | .reveal table.dataTable { |
| 300 | border: #aaaaaa 1px solid; |
| 301 | border-collapse: collapse; |
| 302 | } |
| 303 | |
| 304 | .reveal table.dataTable td { |
| 305 | border: #aaaaaa 1px solid; |
| 306 | border-collapse: collapse; |
| 307 | } |
| 308 | |
| 309 | .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 { |
| 310 | display: none; |
| 311 | } |
| 312 | |
| 313 | .caption { |
| 314 | font-family: 'Fira Sans Condensed', sans-serif; |
| 315 | font-weight: 400; |
| 316 | font-size: 16px; |
| 317 | text-align: center; |
| 318 | } |
| 319 | |
| 320 | /* |
| 321 | table.display td { white-space: nowrap; } |
| 322 | */ |
| 323 | |
| 324 | .dt-buttons, .dataTables_filter { |
| 325 | margin-top: 10pt; |
| 326 | } |
| 327 | |
Marc Kupietz | 069f1e4 | 2023-10-11 10:26:16 +0200 | [diff] [blame] | 328 | /* Sort Arrows in DataTables */ |
| 329 | 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 { |
| 330 | right: 0 !important; |
| 331 | line-height: 80% !important; |
| 332 | } |
| 333 | |
Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 334 | /********************************************* |
| 335 | * BIBLIOGRAPHY |
| 336 | *********************************************/ |
| 337 | |
| 338 | .reveal .references { |
| 339 | font-family: "Fira Sans Condensed", sans-serif; |
| 340 | font-size: 16px; |
| 341 | text-align: left; |
| 342 | margin-top: 35px; |
| 343 | max-height: 540px; |
| 344 | font-weight: 400; |
| 345 | color: #253b43; |
| 346 | overflow-y: auto; |
| 347 | } |
| 348 | |
| 349 | .hanging-indent > .csl-entry { |
| 350 | padding-left: 22px ; |
| 351 | text-indent: -22px ; |
| 352 | } |
| 353 | |
| 354 | .csl-entry::first-line { |
| 355 | color: #253b43; |
| 356 | } |
| 357 | |
| 358 | .csl-entry { |
| 359 | color: #888888; |
| 360 | } |
| 361 | |
| 362 | /* Add line break after authors and year*/ |
| 363 | .csl-entry :first-child::before { |
| 364 | content: "\a"; |
| 365 | white-space: pre; |
| 366 | } |
Marc Kupietz | 1179716 | 2023-10-09 23:17:36 +0200 | [diff] [blame] | 367 | |
| 368 | .reveal code.sourceCode:last-child + pre { |
| 369 | height: 800px !important; |
Marc Kupietz | c7249f9 | 2023-10-10 07:16:50 +0200 | [diff] [blame] | 370 | } |
| 371 | |
Marc Kupietz | 589d1b8 | 2023-10-10 12:31:33 +0200 | [diff] [blame] | 372 | |
| 373 | /********************************************* |
| 374 | * ARROWS and SLIDE NUMBERS |
| 375 | *********************************************/ |
| 376 | |
| 377 | .reveal .controls .controls-arrow:after, .reveal .controls .controls-arrow:before { |
| 378 | width: 13px !important; /* size */ |
| 379 | height: 4px; /* line width */ |
| 380 | } |
| 381 | |
| 382 | .reveal .controls { |
| 383 | display: none; |
| 384 | position: absolute; |
| 385 | top: auto; |
| 386 | bottom: -8px; |
| 387 | right: 16px; |
| 388 | left: auto; |
| 389 | z-index: 11; |
| 390 | /* color: #000;*/ |
| 391 | pointer-events: none; |
| 392 | font-size: 8px; |
| 393 | } |
| 394 | |
| 395 | .reveal .controls .controls-arrow { |
| 396 | position: relative; |
| 397 | height: 3.6em; |
| 398 | width: 1.2em; /* distance betwee arrows */ |
| 399 | bottom: 0; |
| 400 | right: 0; |
| 401 | } |
| 402 | |
| 403 | .reveal div.slide-number { |
| 404 | text-align: center; |
| 405 | width: 2em; |
| 406 | position: absolute; |
| 407 | display: block; |
| 408 | right: 29px; |
| 409 | bottom: 22px; |
| 410 | z-index: 31; |
| 411 | font-family: "Fira Sans Condensed", sans-serif; |
| 412 | font-size: 18px; |
| 413 | line-height: 1; |
| 414 | background-color: white; |
| 415 | color: #666; |
| 416 | padding: 0; |
| 417 | } |
| 418 | |