blob: 75e5c2094fc66ee92d87b41e99dbcf6766e58cf3 [file] [log] [blame]
JJ Allaireefa6ad42016-01-30 13:12:05 -05001/**
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 Kupietzcf6e9982026-08-15 15:37:40 +020013// Default mixins and settings -----------------
14@use "sass:color";
JJ Allaireefa6ad42016-01-30 13:12:05 -050015@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 Allaireefa6ad42016-01-30 13:12:05 -050032$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 Kupietzcf6e9982026-08-15 15:37:40 +020044$linkColorHover: color.scale( $linkColor, $lightness: 20% );
JJ Allaireefa6ad42016-01-30 13:12:05 -050045
46// Text selection
47$selectionBackgroundColor: $blood;
48$selectionColor: #fff;
49
Christophe Dervieuxe1893ae2021-10-07 17:09:02 +020050// Change text colors against dark slide backgrounds
51@include light-bg-text-color(#222);
52
JJ Allaireefa6ad42016-01-30 13:12:05 -050053
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 Dervieuxe1893ae2021-10-07 17:09:02 +020065section.has-light-background {
66 p, h1, h2, h3, h4 {
67 text-shadow: none;
68 }
69}
70
JJ Allaireefa6ad42016-01-30 13:12:05 -050071.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}