Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/package/src/common/patches/revealjs-theme-0001-blood.patch
6491 views
1
diff --git a/src/resources/formats/revealjs/themes/blood.scss b/src/resources/formats/revealjs/themes/blood.scss
2
index c64acd1b7..fe4addaf4 100644
3
--- a/src/resources/formats/revealjs/themes/blood.scss
4
+++ b/src/resources/formats/revealjs/themes/blood.scss
5
@@ -6,82 +6,73 @@
6
* "monokai_sublime.css" available from
7
* https://github.com/isagalaev/highlight.js/
8
*
9
- * For other themes, change $code-bg accordingly.
10
+ * For other themes, change $codeBackground accordingly.
11
*
12
+ * Adapted for Quarto by Posit, PBC
13
+ * Copyright (C) 2024 Posit, PBC
14
*/
15
16
- // Default mixins and settings -----------------
17
-@import "../template/mixins";
18
-@import "../template/settings";
19
-// ---------------------------------------------
20
+/*-- scss:defaults --*/
21
22
// Include theme-specific fonts
23
-
24
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
25
26
// Colors used in the theme
27
$blood: #a23;
28
$coal: #222;
29
-$codeBackground: #23241f;
30
+$code-bg: #23241f !default;
31
32
-$body-bg: $coal;
33
+$body-bg: $coal !default;
34
35
// Main text
36
-$font-family-sans-serif: Ubuntu, 'sans-serif';
37
-$body-color: #eee;
38
+$font-family-sans-serif: Ubuntu, "sans-serif" !default;
39
+$body-color: #eee !default;
40
41
// Headings
42
-$presentation-heading-font: Ubuntu, 'sans-serif';
43
-$presentation-heading-text-shadow: 2px 2px 2px $coal;
44
+$presentation-heading-font: Ubuntu, "sans-serif" !default;
45
+$presentation-heading-text-shadow: 2px 2px 2px $body-bg !default;
46
+$presentation-heading-font-weight: 700 !default;
47
+$presentation-h1-font-size: 3.77em !default;
48
49
-// h1 shadow, borrowed humbly from
50
+// h1 shadow, borrowed humbly from
51
// (c) Default theme by Hakim El Hattab
52
-$presentation-h1-text-shadow: 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);
53
+$presentation-h1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb,
54
+ 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1),
55
+ 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3),
56
+ 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25),
57
+ 0 20px 20px rgba(0, 0, 0, 0.15) !default;
58
+$presentation-heading-text-transform: uppercase !default;
59
60
// Links
61
-$link-color: $blood;
62
-$link-color-hover: lighten( $linkColor, 20% );
63
+$link-color: $blood !default;
64
65
// Text selection
66
-$selection-bg: $blood;
67
-$selection-color: #fff;
68
-
69
-// Change text colors against dark slide backgrounds
70
-@include light-bg-text-color(#222);
71
-
72
-
73
-// Theme template ------------------------------
74
-@import "../template/theme";
75
-// ---------------------------------------------
76
+$selection-bg: $link-color !default;
77
+$selection-color: #fff !default;
78
79
-// some overrides after theme template import
80
+/*-- scss:rules --*/
81
82
.reveal p {
83
- font-weight: 300;
84
- text-shadow: 1px 1px $coal;
85
+ font-weight: 300;
86
+ text-shadow: 1px 1px $body-bg;
87
}
88
89
section.has-light-background {
90
- p, h1, h2, h3, h4 {
91
- text-shadow: none;
92
- }
93
-}
94
-
95
-.reveal h1,
96
-.reveal h2,
97
-.reveal h3,
98
-.reveal h4,
99
-.reveal h5,
100
-.reveal h6 {
101
- font-weight: 700;
102
+ p,
103
+ h1,
104
+ h2,
105
+ h3,
106
+ h4 {
107
+ text-shadow: none;
108
+ }
109
}
110
111
.reveal p code {
112
- background-color: $codeBackground;
113
- display: inline-block;
114
- border-radius: 7px;
115
+ background-color: $code-bg;
116
+ display: inline-block;
117
+ border-radius: 7px;
118
}
119
120
.reveal small code {
121
- vertical-align: baseline;
122
-}
123
\ No newline at end of file
124
+ vertical-align: baseline;
125
+}
126
127