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 | *********************************************/ |
| 85 | |
| 86 | #ids-footer { |
| 87 | opacity: 1; |
| 88 | background: white; |
| 89 | color: #444444; |
| 90 | border-top: dotted orange 2px; |
| 91 | transition: opacity 800ms ease-in-out; |
| 92 | position: fixed; |
| 93 | height: 6%; |
| 94 | line-height: 6%; |
| 95 | z-index: -20; |
| 96 | width: 100%; |
| 97 | letter-spacing: 0em; |
| 98 | text-align: center; |
| 99 | display: table; |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 100 | } |
| 101 | |
| 102 | #ids-footer span { |
| 103 | height: 100%; |
| 104 | line-height: 100%; |
| 105 | z-index: -20; |
| 106 | font-size: 2vh; |
Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame^] | 107 | 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] | 108 | display: inline-block; |
| 109 | display: table-cell; |
| 110 | vertical-align: middle; |
| 111 | } |
| 112 | |
| 113 | #ids-footer div span {} |
| 114 | |
| 115 | |
| 116 | /* Bottom position for the IDS-Footer footer when both progress bar and TOC-Progress are visible */ |
| 117 | |
| 118 | div.progress[style="display: block;"]~#ids-footer { |
| 119 | bottom: calc(3px + 0vh); |
| 120 | } |
| 121 | |
| 122 | |
| 123 | /* Bottom position for the IDS-Footer footer when TOC-Progress is visible */ |
| 124 | |
| 125 | #ids-footer { |
| 126 | bottom: 3px; |
| 127 | } |
| 128 | |
| 129 | #ids-footer a { |
| 130 | color: #555555; |
| 131 | } |
| 132 | |
| 133 | |
| 134 | /* Bottom position for the IDS-Footer footer when progress bar is visible */ |
| 135 | |
| 136 | div.progress[style="display: block;"]~footer:last-of-type#ids-footer { |
| 137 | bottom: 3px; |
| 138 | } |
| 139 | |
| 140 | |
| 141 | /* Bottom position for the IDS-Footer footer when neither progress bar nor TOC-Progress are visible */ |
| 142 | |
| 143 | footer:last-of-type#ids-footer { |
| 144 | bottom: 0px; |
| 145 | } |
| 146 | |
| 147 | |
| 148 | /* Make IDS-Footer invisible if explicitly indicated */ |
| 149 | |
| 150 | .no-ids-footer #ids-footer { |
| 151 | opacity: 0; |
| 152 | transition: opacity 800ms ease-in-out; |
| 153 | } |
| 154 | |
| 155 | .title-frame #ids-footer { |
| 156 | opacity: 0; |
| 157 | transition: opacity 800ms ease-in-out; |
| 158 | } |
| 159 | |
| 160 | .no-toc-progress #ids-footer { |
| 161 | opacity: 0; |
| 162 | transition: opacity 800ms ease-in-out; |
| 163 | } |
| 164 | |
| 165 | |
| 166 | /* Make IDS-Footer invisible in overview mode */ |
| 167 | |
| 168 | .overview #ids-footer { |
| 169 | opacity: 0; |
| 170 | transition: opacity 800ms ease-in-out; |
| 171 | } |
| 172 | |
Marc Kupietz | f0ce032 | 2023-10-07 15:33:47 +0200 | [diff] [blame] | 173 | .reveal .slide-number { |
| 174 | position: absolute; |
| 175 | display: block; |
| 176 | right: 48px; |
| 177 | bottom: 32px; |
| 178 | z-index: 31; |
| 179 | font-family: Fira Sans, sans-serif; |
| 180 | font-size: 18px; |
| 181 | line-height: 1; |
| 182 | background-color: white; |
| 183 | color: #666; |
| 184 | padding: 5px; |
| 185 | } |
| 186 | |
| 187 | .reveal .title-frame .slide-number { |
| 188 | display: none !important; |
| 189 | } |
| 190 | |
| 191 | .title-frame div { |
| 192 | text-align:right !important; |
| 193 | background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg") !important; |
| 194 | background-repeat: no-repeat; |
| 195 | background-position: right 90px bottom 10px !important; |
| 196 | background-size: 7vH auto !important; |
| 197 | |
| 198 | } |
| 199 | |
| 200 | .slide-menu-items, .slide-menu-toolbar { |
| 201 | font-family: 'Fira Sans' !important; |
| 202 | } |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 203 | |
| 204 | /* |
| 205 | * Menu controls |
| 206 | */ |
| 207 | |
| 208 | body .reveal .slide-menu-button { |
| 209 | color: #aaaaaa !important; |
| 210 | position: fixed; |
| 211 | left: 30px; |
| 212 | bottom: 2%; |
| 213 | vertical-align: middle; |
| 214 | z-index: 30; |
| 215 | font-size: 2vh; |
| 216 | } |
| 217 | |
| 218 | #customcontrols > ul { |
| 219 | color: #aaaaaa !important; |
| 220 | position: fixed; |
Marc Kupietz | f51e915 | 2023-10-07 15:32:33 +0200 | [diff] [blame] | 221 | left: 50px; |
Marc Kupietz | 7c8f7de | 2023-10-07 11:42:29 +0200 | [diff] [blame] | 222 | bottom: 2% !important; |
| 223 | vertical-align: middle; |
| 224 | z-index: 30; |
| 225 | font-size: 2vh; |
| 226 | } |
| 227 | |
| 228 | @media only screen and (min-width: 500px) { |
| 229 | #customcontrols > ul { |
| 230 | bottom: 2% !important; |
| 231 | } |
| 232 | } |
Marc Kupietz | 3fdee73 | 2023-10-07 18:52:20 +0200 | [diff] [blame^] | 233 | |
| 234 | .reveal h3, h4, h5, h6 { |
| 235 | text-transform: none !important; |
| 236 | } |
| 237 | |
| 238 | .reveal h3, h4, h5, h6 { |
| 239 | text-transform: none !important; |
| 240 | } |
| 241 | |
| 242 | .reveal h2 + h3 { |
| 243 | margin-top: -0.5em !important; |
| 244 | } |