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; |
| 105 | font-size: 2vh; |
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 | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 158 | .reveal .title-frame .slide-number { |
| 159 | display: none !important; |
| 160 | } |
| 161 | |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 162 | .title-frame div.slide-background-content { |
| 163 | text-align: right !important; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 164 | background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg") !important; |
| 165 | background-repeat: no-repeat; |
| 166 | background-position: right 90px bottom 10px !important; |
| 167 | background-size: 7vH auto !important; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 168 | } |
| 169 | |
| 170 | .slide-menu-items, .slide-menu-toolbar { |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 171 | font-family: "Fira Sans" !important; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 172 | } |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 173 | |
| 174 | /* |
| 175 | * Menu controls |
| 176 | */ |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 177 | body .reveal .slide-menu-button { |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 178 | color: #aaaaaa !important; |
| 179 | position: fixed; |
| 180 | left: 30px; |
| 181 | bottom: 2%; |
| 182 | vertical-align: middle; |
| 183 | z-index: 30; |
| 184 | font-size: 2vh; |
| 185 | } |
| 186 | |
| 187 | #customcontrols > ul { |
| 188 | color: #aaaaaa !important; |
| 189 | position: fixed; |
Marc Kupietz | f51e915 | 2023-10-07 15:32:33 +0200 | [diff] [blame] | 190 | left: 50px; |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 191 | bottom: 2% !important; |
| 192 | vertical-align: middle; |
| 193 | z-index: 30; |
| 194 | font-size: 2vh; |
| 195 | } |
| 196 | |
| 197 | @media only screen and (min-width: 500px) { |
| 198 | #customcontrols > ul { |
| 199 | bottom: 2% !important; |
| 200 | } |
| 201 | } |
Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 202 | |
Marc Kupietz | c7249f9 | 2023-10-10 07:16:50 +0200 | [diff] [blame] | 203 | .reveal .controls .controls-arrow { |
| 204 | position: relative; |
| 205 | width: 3.6em; |
| 206 | height: 3.6em; |
| 207 | bottom: -12px; |
| 208 | right: -4px; |
| 209 | } |
| 210 | |
Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 211 | .reveal h3, h4, h5, h6 { |
| 212 | text-transform: none !important; |
| 213 | } |
| 214 | |
| 215 | .reveal h3, h4, h5, h6 { |
| 216 | text-transform: none !important; |
| 217 | } |
| 218 | |
| 219 | .reveal h2 + h3 { |
| 220 | margin-top: -0.5em !important; |
| 221 | } |
Marc Kupietz | df0eda9 | 2023-10-07 20:50:00 +0200 | [diff] [blame] | 222 | |
Marc Kupietz | fac437e | 2023-10-09 23:16:38 +0200 | [diff] [blame] | 223 | .reveal h1:last-child { |
| 224 | margin-top: 250px; |
| 225 | } |
| 226 | |
Marc Kupietz | df0eda9 | 2023-10-07 20:50:00 +0200 | [diff] [blame] | 227 | .title-frame h1, |
| 228 | .title-frame h2 { |
| 229 | margin: 0 0 0 0; |
| 230 | background: rgb(246, 168, 0); |
| 231 | color: white; |
| 232 | font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif; |
| 233 | font-weight: 600; |
| 234 | line-height: 1.2; |
| 235 | letter-spacing: 0.05ex; |
| 236 | text-transform: uppercase; |
| 237 | width: 100%; |
| 238 | margin-top: .5em; |
| 239 | padding-top: .5em; |
| 240 | font-size: 1.75em; |
| 241 | margin-left: 0; |
| 242 | text-align: center; |
| 243 | text-shadow: none; |
| 244 | word-wrap: break-word; |
| 245 | } |
| 246 | |
| 247 | |
| 248 | .title-frame .author { |
| 249 | font-family: "Fira Sans Condensed", sans-serif; |
| 250 | font-weight: 400; |
| 251 | color: #657b83; |
| 252 | margin-top: 10vh; |
| 253 | } |
| 254 | |
| 255 | .title-frame .place { |
| 256 | font-family: "Fira Sans Condensed", sans-serif; |
| 257 | margin-top: 40px; |
| 258 | font-weight: 400; |
| 259 | color: #657b83; |
| 260 | } |
| 261 | |
| 262 | .title-frame h2 { |
| 263 | margin-top: -3px; |
| 264 | margin-bottom: 1em; |
| 265 | padding-bottom: .5em; |
| 266 | font-size: 1em; |
| 267 | } |
Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 268 | |
| 269 | /********************************************* |
| 270 | * TABLES |
| 271 | *********************************************/ |
| 272 | |
| 273 | th { |
| 274 | color: rgb(246, 168, 0); |
| 275 | } |
| 276 | |
| 277 | table { |
| 278 | font-family: 'Fira Sans Condensed', sans-serif; |
| 279 | font-weight: 400; |
| 280 | font-size: 16px; |
| 281 | } |
| 282 | |
| 283 | .reveal table.dataTable { |
| 284 | border: #aaaaaa 1px solid; |
| 285 | border-collapse: collapse; |
| 286 | } |
| 287 | |
| 288 | .reveal table.dataTable td { |
| 289 | border: #aaaaaa 1px solid; |
| 290 | border-collapse: collapse; |
| 291 | } |
| 292 | |
| 293 | .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 { |
| 294 | display: none; |
| 295 | } |
| 296 | |
| 297 | .caption { |
| 298 | font-family: 'Fira Sans Condensed', sans-serif; |
| 299 | font-weight: 400; |
| 300 | font-size: 16px; |
| 301 | text-align: center; |
| 302 | } |
| 303 | |
| 304 | /* |
| 305 | table.display td { white-space: nowrap; } |
| 306 | */ |
| 307 | |
| 308 | .dt-buttons, .dataTables_filter { |
| 309 | margin-top: 10pt; |
| 310 | } |
| 311 | |
Marc Kupietz | 069f1e4 | 2023-10-11 10:26:16 +0200 | [diff] [blame^] | 312 | /* Sort Arrows in DataTables */ |
| 313 | 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 { |
| 314 | right: 0 !important; |
| 315 | line-height: 80% !important; |
| 316 | } |
| 317 | |
Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 318 | /********************************************* |
| 319 | * BIBLIOGRAPHY |
| 320 | *********************************************/ |
| 321 | |
| 322 | .reveal .references { |
| 323 | font-family: "Fira Sans Condensed", sans-serif; |
| 324 | font-size: 16px; |
| 325 | text-align: left; |
| 326 | margin-top: 35px; |
| 327 | max-height: 540px; |
| 328 | font-weight: 400; |
| 329 | color: #253b43; |
| 330 | overflow-y: auto; |
| 331 | } |
| 332 | |
| 333 | .hanging-indent > .csl-entry { |
| 334 | padding-left: 22px ; |
| 335 | text-indent: -22px ; |
| 336 | } |
| 337 | |
| 338 | .csl-entry::first-line { |
| 339 | color: #253b43; |
| 340 | } |
| 341 | |
| 342 | .csl-entry { |
| 343 | color: #888888; |
| 344 | } |
| 345 | |
| 346 | /* Add line break after authors and year*/ |
| 347 | .csl-entry :first-child::before { |
| 348 | content: "\a"; |
| 349 | white-space: pre; |
| 350 | } |
Marc Kupietz | 1179716 | 2023-10-09 23:17:36 +0200 | [diff] [blame] | 351 | |
| 352 | .reveal code.sourceCode:last-child + pre { |
| 353 | height: 800px !important; |
Marc Kupietz | c7249f9 | 2023-10-10 07:16:50 +0200 | [diff] [blame] | 354 | } |
| 355 | |
Marc Kupietz | 589d1b8 | 2023-10-10 12:31:33 +0200 | [diff] [blame] | 356 | |
| 357 | /********************************************* |
| 358 | * ARROWS and SLIDE NUMBERS |
| 359 | *********************************************/ |
| 360 | |
| 361 | .reveal .controls .controls-arrow:after, .reveal .controls .controls-arrow:before { |
| 362 | width: 13px !important; /* size */ |
| 363 | height: 4px; /* line width */ |
| 364 | } |
| 365 | |
| 366 | .reveal .controls { |
| 367 | display: none; |
| 368 | position: absolute; |
| 369 | top: auto; |
| 370 | bottom: -8px; |
| 371 | right: 16px; |
| 372 | left: auto; |
| 373 | z-index: 11; |
| 374 | /* color: #000;*/ |
| 375 | pointer-events: none; |
| 376 | font-size: 8px; |
| 377 | } |
| 378 | |
| 379 | .reveal .controls .controls-arrow { |
| 380 | position: relative; |
| 381 | height: 3.6em; |
| 382 | width: 1.2em; /* distance betwee arrows */ |
| 383 | bottom: 0; |
| 384 | right: 0; |
| 385 | } |
| 386 | |
| 387 | .reveal div.slide-number { |
| 388 | text-align: center; |
| 389 | width: 2em; |
| 390 | position: absolute; |
| 391 | display: block; |
| 392 | right: 29px; |
| 393 | bottom: 22px; |
| 394 | z-index: 31; |
| 395 | font-family: "Fira Sans Condensed", sans-serif; |
| 396 | font-size: 18px; |
| 397 | line-height: 1; |
| 398 | background-color: white; |
| 399 | color: #666; |
| 400 | padding: 0; |
| 401 | } |
| 402 | |