| JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 1 | /** |
| 2 | * Blood theme for reveal.js |
| 3 | * Author: Walther http://github.com/Walther |
| 4 | * |
| 5 | * Designed to be used with highlight.js theme |
| 6 | * "monokai_sublime.css" available from |
| 7 | * https://github.com/isagalaev/highlight.js/ |
| 8 | * |
| 9 | * For other themes, change $codeBackground accordingly. |
| 10 | * |
| 11 | */ |
| 12 | |
| Marc Kupietz | cf6e998 | 2026-08-15 15:37:40 +0200 | [diff] [blame] | 13 | // Default mixins and settings ----------------- |
| 14 | @use "sass:color"; |
| JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 15 | @import "../template/mixins"; |
| 16 | @import "../template/settings"; |
| 17 | // --------------------------------------------- |
| 18 | |
| 19 | // Include theme-specific fonts |
| 20 | |
| 21 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic); |
| 22 | |
| 23 | // Colors used in the theme |
| 24 | $blood: #a23; |
| 25 | $coal: #222; |
| 26 | $codeBackground: #23241f; |
| 27 | |
| 28 | $backgroundColor: $coal; |
| 29 | |
| 30 | // Main text |
| 31 | $mainFont: Ubuntu, 'sans-serif'; |
| JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 32 | $mainColor: #eee; |
| 33 | |
| 34 | // Headings |
| 35 | $headingFont: Ubuntu, 'sans-serif'; |
| 36 | $headingTextShadow: 2px 2px 2px $coal; |
| 37 | |
| 38 | // h1 shadow, borrowed humbly from |
| 39 | // (c) Default theme by Hakim El Hattab |
| 40 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); |
| 41 | |
| 42 | // Links |
| 43 | $linkColor: $blood; |
| Marc Kupietz | cf6e998 | 2026-08-15 15:37:40 +0200 | [diff] [blame] | 44 | $linkColorHover: color.scale( $linkColor, $lightness: 20% ); |
| JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 45 | |
| 46 | // Text selection |
| 47 | $selectionBackgroundColor: $blood; |
| 48 | $selectionColor: #fff; |
| 49 | |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 50 | // Change text colors against dark slide backgrounds |
| 51 | @include light-bg-text-color(#222); |
| 52 | |
| JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 53 | |
| 54 | // Theme template ------------------------------ |
| 55 | @import "../template/theme"; |
| 56 | // --------------------------------------------- |
| 57 | |
| 58 | // some overrides after theme template import |
| 59 | |
| 60 | .reveal p { |
| 61 | font-weight: 300; |
| 62 | text-shadow: 1px 1px $coal; |
| 63 | } |
| 64 | |
| Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 65 | section.has-light-background { |
| 66 | p, h1, h2, h3, h4 { |
| 67 | text-shadow: none; |
| 68 | } |
| 69 | } |
| 70 | |
| JJ Allaire | efa6ad4 | 2016-01-30 13:12:05 -0500 | [diff] [blame] | 71 | .reveal h1, |
| 72 | .reveal h2, |
| 73 | .reveal h3, |
| 74 | .reveal h4, |
| 75 | .reveal h5, |
| 76 | .reveal h6 { |
| 77 | font-weight: 700; |
| 78 | } |
| 79 | |
| 80 | .reveal p code { |
| 81 | background-color: $codeBackground; |
| 82 | display: inline-block; |
| 83 | border-radius: 7px; |
| 84 | } |
| 85 | |
| 86 | .reveal small code { |
| 87 | vertical-align: baseline; |
| 88 | } |