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-0003-code-block-fixup.patch
6456 views
1
diff --git a/src/resources/formats/revealjs/themes/beige.scss b/src/resources/formats/revealjs/themes/beige.scss
2
index 193eac567..6786c08c0 100644
3
--- a/src/resources/formats/revealjs/themes/beige.scss
4
+++ b/src/resources/formats/revealjs/themes/beige.scss
5
@@ -34,6 +34,9 @@ $presentation-h1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb,
6
$overlayElementBgColor: 0, 0, 0 !default;
7
$overlayElementFgColor: 240, 240, 240 !default;
8
9
+// code blocks
10
+$code-block-bg: transparent !default;
11
+
12
/*-- scss:mixins --*/
13
14
@mixin bodyBackground() {
15
diff --git a/src/resources/formats/revealjs/themes/league.scss b/src/resources/formats/revealjs/themes/league.scss
16
index 3005e6c1e..f7e7d5a15 100644
17
--- a/src/resources/formats/revealjs/themes/league.scss
18
+++ b/src/resources/formats/revealjs/themes/league.scss
19
@@ -39,6 +39,9 @@ $light-bg-text-color: #222 !default;
20
// input panel
21
$input-panel-bg: rgba(233, 236, 239, 0.2) !default;
22
23
+// code blocks
24
+$code-block-bg: transparent !default;
25
+
26
/*-- scss:mixins --*/
27
28
// Background generator
29
diff --git a/src/resources/formats/revealjs/themes/night.scss b/src/resources/formats/revealjs/themes/night.scss
30
index 9d84bbf86..46a2b7eed 100644
31
--- a/src/resources/formats/revealjs/themes/night.scss
32
+++ b/src/resources/formats/revealjs/themes/night.scss
33
@@ -30,3 +30,6 @@ $light-bg-text-color: #222 !default;
34
35
// input panel
36
$input-panel-bg: rgba(233, 236, 239, 0.2) !default;
37
+
38
+// code blocks
39
+$code-block-bg: transparent !default;
40
diff --git a/src/resources/formats/revealjs/themes/sky.scss b/src/resources/formats/revealjs/themes/sky.scss
41
index 2debff7bc..4821a919d 100644
42
--- a/src/resources/formats/revealjs/themes/sky.scss
43
+++ b/src/resources/formats/revealjs/themes/sky.scss
44
@@ -33,6 +33,10 @@ $overlayElementFgColor: 240, 240, 240 !default;
45
// Change text colors against dark slide backgrounds
46
$dark-bg-text-color: #fff !default;
47
48
+// code blocks
49
+$code-block-border-color: lighten($link-color, 30%) !default;
50
+$code-block-bg: transparent !default;
51
+
52
/*-- scss:rules --*/
53
54
// Fix links so they are not cut off
55
diff --git a/src/resources/formats/revealjs/themes/solarized.scss b/src/resources/formats/revealjs/themes/solarized.scss
56
index 0bfaf51ad..d2e4d223e 100644
57
--- a/src/resources/formats/revealjs/themes/solarized.scss
58
+++ b/src/resources/formats/revealjs/themes/solarized.scss
59
@@ -49,6 +49,9 @@ $selection-bg: $magenta !default;
60
$overlayElementBgColor: 0, 0, 0 !default;
61
$overlayElementFgColor: 240, 240, 240 !default;
62
63
+// code blocks
64
+$code-block-border-color: #93a1a1 !default;
65
+
66
/*-- scss:rules --*/
67
68
html * {
69
70