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 .slide-number { |
| 159 | position: absolute; |
| 160 | display: block; |
| 161 | right: 48px; |
| 162 | bottom: 32px; |
| 163 | z-index: 31; |
| 164 | font-family: Fira Sans, sans-serif; |
| 165 | font-size: 18px; |
| 166 | line-height: 1; |
| 167 | background-color: white; |
| 168 | color: #666; |
| 169 | padding: 5px; |
| 170 | } |
| 171 | |
| 172 | .reveal .title-frame .slide-number { |
| 173 | display: none !important; |
| 174 | } |
| 175 | |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 176 | .title-frame div.slide-background-content { |
| 177 | text-align: right !important; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 178 | background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg") !important; |
| 179 | background-repeat: no-repeat; |
| 180 | background-position: right 90px bottom 10px !important; |
| 181 | background-size: 7vH auto !important; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 182 | } |
| 183 | |
| 184 | .slide-menu-items, .slide-menu-toolbar { |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 185 | font-family: "Fira Sans" !important; |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 186 | } |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 187 | |
| 188 | /* |
| 189 | * Menu controls |
| 190 | */ |
Marc Kupietz | c0b272d | 2023-10-08 14:24:18 +0200 | [diff] [blame] | 191 | body .reveal .slide-menu-button { |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 192 | color: #aaaaaa !important; |
| 193 | position: fixed; |
| 194 | left: 30px; |
| 195 | bottom: 2%; |
| 196 | vertical-align: middle; |
| 197 | z-index: 30; |
| 198 | font-size: 2vh; |
| 199 | } |
| 200 | |
| 201 | #customcontrols > ul { |
| 202 | color: #aaaaaa !important; |
| 203 | position: fixed; |
Marc Kupietz | f51e915 | 2023-10-07 15:32:33 +0200 | [diff] [blame] | 204 | left: 50px; |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 205 | bottom: 2% !important; |
| 206 | vertical-align: middle; |
| 207 | z-index: 30; |
| 208 | font-size: 2vh; |
| 209 | } |
| 210 | |
| 211 | @media only screen and (min-width: 500px) { |
| 212 | #customcontrols > ul { |
| 213 | bottom: 2% !important; |
| 214 | } |
| 215 | } |
Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame] | 216 | |
| 217 | .reveal h3, h4, h5, h6 { |
| 218 | text-transform: none !important; |
| 219 | } |
| 220 | |
| 221 | .reveal h3, h4, h5, h6 { |
| 222 | text-transform: none !important; |
| 223 | } |
| 224 | |
| 225 | .reveal h2 + h3 { |
| 226 | margin-top: -0.5em !important; |
| 227 | } |
Marc Kupietz | df0eda9 | 2023-10-07 20:50:00 +0200 | [diff] [blame] | 228 | |
Marc Kupietz | fac437e | 2023-10-09 23:16:38 +0200 | [diff] [blame^] | 229 | .reveal h1:last-child { |
| 230 | margin-top: 250px; |
| 231 | } |
| 232 | |
Marc Kupietz | df0eda9 | 2023-10-07 20:50:00 +0200 | [diff] [blame] | 233 | .title-frame h1, |
| 234 | .title-frame h2 { |
| 235 | margin: 0 0 0 0; |
| 236 | background: rgb(246, 168, 0); |
| 237 | color: white; |
| 238 | font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif; |
| 239 | font-weight: 600; |
| 240 | line-height: 1.2; |
| 241 | letter-spacing: 0.05ex; |
| 242 | text-transform: uppercase; |
| 243 | width: 100%; |
| 244 | margin-top: .5em; |
| 245 | padding-top: .5em; |
| 246 | font-size: 1.75em; |
| 247 | margin-left: 0; |
| 248 | text-align: center; |
| 249 | text-shadow: none; |
| 250 | word-wrap: break-word; |
| 251 | } |
| 252 | |
| 253 | |
| 254 | .title-frame .author { |
| 255 | font-family: "Fira Sans Condensed", sans-serif; |
| 256 | font-weight: 400; |
| 257 | color: #657b83; |
| 258 | margin-top: 10vh; |
| 259 | } |
| 260 | |
| 261 | .title-frame .place { |
| 262 | font-family: "Fira Sans Condensed", sans-serif; |
| 263 | margin-top: 40px; |
| 264 | font-weight: 400; |
| 265 | color: #657b83; |
| 266 | } |
| 267 | |
| 268 | .title-frame h2 { |
| 269 | margin-top: -3px; |
| 270 | margin-bottom: 1em; |
| 271 | padding-bottom: .5em; |
| 272 | font-size: 1em; |
| 273 | } |
Marc Kupietz | 0a3c2e5 | 2023-10-08 20:20:43 +0200 | [diff] [blame] | 274 | |
| 275 | /********************************************* |
| 276 | * TABLES |
| 277 | *********************************************/ |
| 278 | |
| 279 | th { |
| 280 | color: rgb(246, 168, 0); |
| 281 | } |
| 282 | |
| 283 | table { |
| 284 | font-family: 'Fira Sans Condensed', sans-serif; |
| 285 | font-weight: 400; |
| 286 | font-size: 16px; |
| 287 | } |
| 288 | |
| 289 | .reveal table.dataTable { |
| 290 | border: #aaaaaa 1px solid; |
| 291 | border-collapse: collapse; |
| 292 | } |
| 293 | |
| 294 | .reveal table.dataTable td { |
| 295 | border: #aaaaaa 1px solid; |
| 296 | border-collapse: collapse; |
| 297 | } |
| 298 | |
| 299 | .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 { |
| 300 | display: none; |
| 301 | } |
| 302 | |
| 303 | .caption { |
| 304 | font-family: 'Fira Sans Condensed', sans-serif; |
| 305 | font-weight: 400; |
| 306 | font-size: 16px; |
| 307 | text-align: center; |
| 308 | } |
| 309 | |
| 310 | /* |
| 311 | table.display td { white-space: nowrap; } |
| 312 | */ |
| 313 | |
| 314 | .dt-buttons, .dataTables_filter { |
| 315 | margin-top: 10pt; |
| 316 | } |
| 317 | |
| 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 | } |