返回 reveal.js
blood.scss
根目录 / css / theme / blood.scss
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
13 // Load utils
14 @use 'sass:color';
15 @use 'template/mixins' as mixins;
16
17 $coal: #222;
18 $active-color: #a23;
19 $code-background-color: #23241f;
20
21 // Inject theme variables (with some overrides)
22 @use 'template/settings' with (
23 $background-color: $coal,
24
25 $main-font: 'Ubuntu, sans-serif',
26 $main-color: #eee,
27
28 $heading-font: 'Ubuntu, sans-serif',
29 $heading-text-shadow: 2px 2px 2px $coal,
30
31 $heading1-text-shadow: #{0 1px 0 #ccc,
32 0 2px 0 #c9c9c9,
33 0 3px 0 #bbb,
34 0 4px 0 #b9b9b9,
35 0 5px 0 #aaa,
36 0 6px 1px rgba(0, 0, 0, 0.1),
37 0 0 5px rgba(0, 0, 0, 0.1),
38 0 1px 3px rgba(0, 0, 0, 0.3),
39 0 3px 5px rgba(0, 0, 0, 0.2),
40 0 5px 10px rgba(0, 0, 0, 0.25),
41 0 20px 20px rgba(0, 0, 0, 0.15)},
42
43 $link-color: $active-color,
44 $link-color-hover: color.scale($active-color, $lightness: 20%),
45 $selection-background-color: $active-color,
46 $selection-color: #fff
47 );
48
49 // Inject the theme template
50 @use 'template/theme';
51
52 // Fonts
53 @import url('https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic');
54
55 // Invert text color when the background is light
56 @include mixins.light-bg-text-color(#222);
57
58 .reveal p {
59 font-weight: 300;
60 text-shadow: 1px 1px $coal;
61 }
62
63 section.has-light-background {
64 p,
65 h1,
66 h2,
67 h3,
68 h4 {
69 text-shadow: none;
70 }
71 }
72
73 .reveal h1,
74 .reveal h2,
75 .reveal h3,
76 .reveal h4,
77 .reveal h5,
78 .reveal h6 {
79 font-weight: 700;
80 }
81
82 .reveal p code {
83 background-color: $code-background-color;
84 display: inline-block;
85 border-radius: 7px;
86 }
87
88 .reveal small code {
89 vertical-align: baseline;
90 }
91
91 lines Plain Text