Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 1 | /** |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 2 | * Dracula Dark theme for reveal.js. |
| 3 | * Based on https://draculatheme.com |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 4 | */ |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 5 | /** |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 6 | * Dracula colors by Zeno Rocha |
| 7 | * https://draculatheme.com/contribute |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 8 | */ |
| 9 | html * { |
| 10 | color-profile: sRGB; |
| 11 | rendering-intent: auto; |
| 12 | } |
| 13 | |
| 14 | section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 { |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 15 | color: #282A36; |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | /********************************************* |
| 19 | * GLOBAL STYLES |
| 20 | *********************************************/ |
| 21 | :root { |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 22 | --r-background-color: #282A36; |
| 23 | --r-main-font: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 24 | --r-main-font-size: 40px; |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 25 | --r-main-color: #F8F8F2; |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 26 | --r-block-margin: 20px; |
| 27 | --r-heading-margin: 0 0 20px 0; |
| 28 | --r-heading-font: League Gothic, Impact, sans-serif; |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 29 | --r-heading-color: #BD93F9; |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 30 | --r-heading-line-height: 1.2; |
| 31 | --r-heading-letter-spacing: normal; |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 32 | --r-heading-text-transform: none; |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 33 | --r-heading-text-shadow: none; |
| 34 | --r-heading-font-weight: normal; |
| 35 | --r-heading1-text-shadow: none; |
| 36 | --r-heading1-size: 3.77em; |
| 37 | --r-heading2-size: 2.11em; |
| 38 | --r-heading3-size: 1.55em; |
| 39 | --r-heading4-size: 1em; |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 40 | --r-code-font: Fira Code, Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; |
| 41 | --r-link-color: #FF79C6; |
| 42 | --r-link-color-dark: #ff2da5; |
| 43 | --r-link-color-hover: #8BE9FD; |
| 44 | --r-selection-background-color: #44475A; |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 45 | --r-selection-color: #fff; |
| 46 | } |
| 47 | |
| 48 | .reveal-viewport { |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 49 | background: #282A36; |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 50 | background-color: var(--r-background-color); |
| 51 | } |
| 52 | |
| 53 | .reveal { |
| 54 | font-family: var(--r-main-font); |
| 55 | font-size: var(--r-main-font-size); |
| 56 | font-weight: normal; |
| 57 | color: var(--r-main-color); |
| 58 | } |
| 59 | |
| 60 | .reveal ::selection { |
| 61 | color: var(--r-selection-color); |
| 62 | background: var(--r-selection-background-color); |
| 63 | text-shadow: none; |
| 64 | } |
| 65 | |
| 66 | .reveal ::-moz-selection { |
| 67 | color: var(--r-selection-color); |
| 68 | background: var(--r-selection-background-color); |
| 69 | text-shadow: none; |
| 70 | } |
| 71 | |
| 72 | .reveal .slides section, |
| 73 | .reveal .slides section > section { |
| 74 | line-height: 1.3; |
| 75 | font-weight: inherit; |
| 76 | } |
| 77 | |
| 78 | /********************************************* |
| 79 | * HEADERS |
| 80 | *********************************************/ |
| 81 | .reveal h1, |
| 82 | .reveal h2, |
| 83 | .reveal h3, |
| 84 | .reveal h4, |
| 85 | .reveal h5, |
| 86 | .reveal h6 { |
| 87 | margin: var(--r-heading-margin); |
| 88 | color: var(--r-heading-color); |
| 89 | font-family: var(--r-heading-font); |
| 90 | font-weight: var(--r-heading-font-weight); |
| 91 | line-height: var(--r-heading-line-height); |
| 92 | letter-spacing: var(--r-heading-letter-spacing); |
| 93 | text-transform: var(--r-heading-text-transform); |
| 94 | text-shadow: var(--r-heading-text-shadow); |
| 95 | word-wrap: break-word; |
| 96 | } |
| 97 | |
| 98 | .reveal h1 { |
| 99 | font-size: var(--r-heading1-size); |
| 100 | } |
| 101 | |
| 102 | .reveal h2 { |
| 103 | font-size: var(--r-heading2-size); |
| 104 | } |
| 105 | |
| 106 | .reveal h3 { |
| 107 | font-size: var(--r-heading3-size); |
| 108 | } |
| 109 | |
| 110 | .reveal h4 { |
| 111 | font-size: var(--r-heading4-size); |
| 112 | } |
| 113 | |
| 114 | .reveal h1 { |
| 115 | text-shadow: var(--r-heading1-text-shadow); |
| 116 | } |
| 117 | |
| 118 | /********************************************* |
| 119 | * OTHER |
| 120 | *********************************************/ |
| 121 | .reveal p { |
| 122 | margin: var(--r-block-margin) 0; |
| 123 | line-height: 1.3; |
| 124 | } |
| 125 | |
| 126 | /* Remove trailing margins after titles */ |
| 127 | .reveal h1:last-child, |
| 128 | .reveal h2:last-child, |
| 129 | .reveal h3:last-child, |
| 130 | .reveal h4:last-child, |
| 131 | .reveal h5:last-child, |
| 132 | .reveal h6:last-child { |
| 133 | margin-bottom: 0; |
| 134 | } |
| 135 | |
| 136 | /* Ensure certain elements are never larger than the slide itself */ |
| 137 | .reveal img, |
| 138 | .reveal video, |
| 139 | .reveal iframe { |
| 140 | max-width: 95%; |
| 141 | max-height: 95%; |
| 142 | } |
| 143 | |
| 144 | .reveal strong, |
| 145 | .reveal b { |
| 146 | font-weight: bold; |
| 147 | } |
| 148 | |
| 149 | .reveal em { |
| 150 | font-style: italic; |
| 151 | } |
| 152 | |
| 153 | .reveal ol, |
| 154 | .reveal dl, |
| 155 | .reveal ul { |
| 156 | display: inline-block; |
| 157 | text-align: left; |
| 158 | margin: 0 0 0 1em; |
| 159 | } |
| 160 | |
| 161 | .reveal ol { |
| 162 | list-style-type: decimal; |
| 163 | } |
| 164 | |
| 165 | .reveal ul { |
| 166 | list-style-type: disc; |
| 167 | } |
| 168 | |
| 169 | .reveal ul ul { |
| 170 | list-style-type: square; |
| 171 | } |
| 172 | |
| 173 | .reveal ul ul ul { |
| 174 | list-style-type: circle; |
| 175 | } |
| 176 | |
| 177 | .reveal ul ul, |
| 178 | .reveal ul ol, |
| 179 | .reveal ol ol, |
| 180 | .reveal ol ul { |
| 181 | display: block; |
| 182 | margin-left: 40px; |
| 183 | } |
| 184 | |
| 185 | .reveal dt { |
| 186 | font-weight: bold; |
| 187 | } |
| 188 | |
| 189 | .reveal dd { |
| 190 | margin-left: 40px; |
| 191 | } |
| 192 | |
| 193 | .reveal blockquote { |
| 194 | display: block; |
| 195 | position: relative; |
| 196 | width: 70%; |
| 197 | margin: var(--r-block-margin) auto; |
| 198 | padding: 5px; |
| 199 | font-style: italic; |
| 200 | background: rgba(255, 255, 255, 0.05); |
| 201 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); |
| 202 | } |
| 203 | |
| 204 | .reveal blockquote p:first-child, |
| 205 | .reveal blockquote p:last-child { |
| 206 | display: inline-block; |
| 207 | } |
| 208 | |
| 209 | .reveal q { |
| 210 | font-style: italic; |
| 211 | } |
| 212 | |
| 213 | .reveal pre { |
| 214 | display: block; |
| 215 | position: relative; |
| 216 | width: 90%; |
| 217 | margin: var(--r-block-margin) auto; |
| 218 | text-align: left; |
| 219 | font-size: 0.55em; |
| 220 | font-family: var(--r-code-font); |
| 221 | line-height: 1.2em; |
| 222 | word-wrap: break-word; |
| 223 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); |
| 224 | } |
| 225 | |
| 226 | .reveal code { |
| 227 | font-family: var(--r-code-font); |
| 228 | text-transform: none; |
| 229 | tab-size: 2; |
| 230 | } |
| 231 | |
| 232 | .reveal pre code { |
| 233 | display: block; |
| 234 | padding: 5px; |
| 235 | overflow: auto; |
| 236 | max-height: 400px; |
| 237 | word-wrap: normal; |
| 238 | } |
| 239 | |
| 240 | .reveal .code-wrapper { |
| 241 | white-space: normal; |
| 242 | } |
| 243 | |
| 244 | .reveal .code-wrapper code { |
| 245 | white-space: pre; |
| 246 | } |
| 247 | |
| 248 | .reveal table { |
| 249 | margin: auto; |
| 250 | border-collapse: collapse; |
| 251 | border-spacing: 0; |
| 252 | } |
| 253 | |
| 254 | .reveal table th { |
| 255 | font-weight: bold; |
| 256 | } |
| 257 | |
| 258 | .reveal table th, |
| 259 | .reveal table td { |
| 260 | text-align: left; |
| 261 | padding: 0.2em 0.5em 0.2em 0.5em; |
| 262 | border-bottom: 1px solid; |
| 263 | } |
| 264 | |
| 265 | .reveal table th[align=center], |
| 266 | .reveal table td[align=center] { |
| 267 | text-align: center; |
| 268 | } |
| 269 | |
| 270 | .reveal table th[align=right], |
| 271 | .reveal table td[align=right] { |
| 272 | text-align: right; |
| 273 | } |
| 274 | |
| 275 | .reveal table tbody tr:last-child th, |
| 276 | .reveal table tbody tr:last-child td { |
| 277 | border-bottom: none; |
| 278 | } |
| 279 | |
| 280 | .reveal sup { |
| 281 | vertical-align: super; |
| 282 | font-size: smaller; |
| 283 | } |
| 284 | |
| 285 | .reveal sub { |
| 286 | vertical-align: sub; |
| 287 | font-size: smaller; |
| 288 | } |
| 289 | |
| 290 | .reveal small { |
| 291 | display: inline-block; |
| 292 | font-size: 0.6em; |
| 293 | line-height: 1.2em; |
| 294 | vertical-align: top; |
| 295 | } |
| 296 | |
| 297 | .reveal small * { |
| 298 | vertical-align: top; |
| 299 | } |
| 300 | |
| 301 | .reveal img { |
| 302 | margin: var(--r-block-margin) 0; |
| 303 | } |
| 304 | |
| 305 | /********************************************* |
| 306 | * LINKS |
| 307 | *********************************************/ |
| 308 | .reveal a { |
| 309 | color: var(--r-link-color); |
| 310 | text-decoration: none; |
| 311 | transition: color 0.15s ease; |
| 312 | } |
| 313 | |
| 314 | .reveal a:hover { |
| 315 | color: var(--r-link-color-hover); |
| 316 | text-shadow: none; |
| 317 | border: none; |
| 318 | } |
| 319 | |
| 320 | .reveal .roll span:after { |
| 321 | color: #fff; |
| 322 | background: var(--r-link-color-dark); |
| 323 | } |
| 324 | |
| 325 | /********************************************* |
| 326 | * Frame helper |
| 327 | *********************************************/ |
| 328 | .reveal .r-frame { |
| 329 | border: 4px solid var(--r-main-color); |
| 330 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); |
| 331 | } |
| 332 | |
| 333 | .reveal a .r-frame { |
| 334 | transition: all 0.15s linear; |
| 335 | } |
| 336 | |
| 337 | .reveal a:hover .r-frame { |
| 338 | border-color: var(--r-link-color); |
| 339 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); |
| 340 | } |
| 341 | |
| 342 | /********************************************* |
| 343 | * NAVIGATION CONTROLS |
| 344 | *********************************************/ |
| 345 | .reveal .controls { |
| 346 | color: var(--r-link-color); |
| 347 | } |
| 348 | |
| 349 | /********************************************* |
| 350 | * PROGRESS BAR |
| 351 | *********************************************/ |
| 352 | .reveal .progress { |
| 353 | background: rgba(0, 0, 0, 0.2); |
| 354 | color: var(--r-link-color); |
| 355 | } |
| 356 | |
| 357 | /********************************************* |
| 358 | * PRINT BACKGROUND |
| 359 | *********************************************/ |
| 360 | @media print { |
| 361 | .backgrounds { |
| 362 | background-color: var(--r-background-color); |
| 363 | } |
| 364 | } |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 365 | :root { |
| 366 | --r-bold-color: #FFB86C; |
| 367 | --r-italic-color: #F1FA8C; |
| 368 | --r-inline-code-color: #50FA7B; |
| 369 | --r-list-bullet-color: #8BE9FD; |
| 370 | } |
| 371 | |
| 372 | .reveal strong, .reveal b { |
| 373 | color: var(--r-bold-color); |
| 374 | } |
| 375 | .reveal em, .reveal i, .reveal blockquote { |
| 376 | color: var(--r-italic-color); |
| 377 | } |
| 378 | .reveal code { |
| 379 | color: var(--r-inline-code-color); |
| 380 | } |
| 381 | .reveal ul li::marker, .reveal ol li::marker { |
| 382 | color: var(--r-list-bullet-color); |
| 383 | } |