返回 reveal.js
simple.scss
根目录 / css / theme / simple.scss
1 /**
2 * A simple theme for reveal.js presentations, similar
3 * to the default theme. The accent color is darkblue.
4 *
5 * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6 * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 */
8
9 // Load utils
10 @use 'sass:color';
11 @use 'template/mixins' as mixins;
12
13 $active-color: #00008b;
14
15 // Inject theme variables (with some overrides)
16 @use 'template/settings' with (
17 $background-color: #fff,
18
19 $main-color: #000,
20 $main-font: "'Lato', sans-serif",
21
22 $heading-color: #000,
23 $heading-font: "'News Cycle', Impact, sans-serif",
24 $heading-font-weight: 600,
25
26 $heading1-size: 2.5em,
27 $heading2-size: 1.6em,
28 $heading3-size: 1.3em,
29 $heading4-size: 1em,
30
31 $link-color: $active-color,
32 $link-color-hover: color.scale($active-color, $lightness: 20%),
33 $selection-color: #fff,
34 $selection-background-color: $active-color,
35
36 $overlay-element-bg-color: '0, 0, 0',
37 $overlay-element-fg-color: '240, 240, 240'
38 );
39
40 // Inject the theme template
41 @use 'template/theme';
42
43 // Include theme-specific fonts
44 @import url('https://fonts.googleapis.com/css?family=News+Cycle:400,700');
45 @import url('https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic');
46
47 // Change text when the background is inverted
48 @include mixins.dark-bg-text-color(#fff);
49
49 lines Plain Text