Path: blob/main/package/src/common/patches/revealjs-theme-0003-code-block-fixup.patch
6456 views
diff --git a/src/resources/formats/revealjs/themes/beige.scss b/src/resources/formats/revealjs/themes/beige.scss1index 193eac567..6786c08c0 1006442--- a/src/resources/formats/revealjs/themes/beige.scss3+++ b/src/resources/formats/revealjs/themes/beige.scss4@@ -34,6 +34,9 @@ $presentation-h1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb,5$overlayElementBgColor: 0, 0, 0 !default;6$overlayElementFgColor: 240, 240, 240 !default;78+// code blocks9+$code-block-bg: transparent !default;10+11/*-- scss:mixins --*/1213@mixin bodyBackground() {14diff --git a/src/resources/formats/revealjs/themes/league.scss b/src/resources/formats/revealjs/themes/league.scss15index 3005e6c1e..f7e7d5a15 10064416--- a/src/resources/formats/revealjs/themes/league.scss17+++ b/src/resources/formats/revealjs/themes/league.scss18@@ -39,6 +39,9 @@ $light-bg-text-color: #222 !default;19// input panel20$input-panel-bg: rgba(233, 236, 239, 0.2) !default;2122+// code blocks23+$code-block-bg: transparent !default;24+25/*-- scss:mixins --*/2627// Background generator28diff --git a/src/resources/formats/revealjs/themes/night.scss b/src/resources/formats/revealjs/themes/night.scss29index 9d84bbf86..46a2b7eed 10064430--- a/src/resources/formats/revealjs/themes/night.scss31+++ b/src/resources/formats/revealjs/themes/night.scss32@@ -30,3 +30,6 @@ $light-bg-text-color: #222 !default;3334// input panel35$input-panel-bg: rgba(233, 236, 239, 0.2) !default;36+37+// code blocks38+$code-block-bg: transparent !default;39diff --git a/src/resources/formats/revealjs/themes/sky.scss b/src/resources/formats/revealjs/themes/sky.scss40index 2debff7bc..4821a919d 10064441--- a/src/resources/formats/revealjs/themes/sky.scss42+++ b/src/resources/formats/revealjs/themes/sky.scss43@@ -33,6 +33,10 @@ $overlayElementFgColor: 240, 240, 240 !default;44// Change text colors against dark slide backgrounds45$dark-bg-text-color: #fff !default;4647+// code blocks48+$code-block-border-color: lighten($link-color, 30%) !default;49+$code-block-bg: transparent !default;50+51/*-- scss:rules --*/5253// Fix links so they are not cut off54diff --git a/src/resources/formats/revealjs/themes/solarized.scss b/src/resources/formats/revealjs/themes/solarized.scss55index 0bfaf51ad..d2e4d223e 10064456--- a/src/resources/formats/revealjs/themes/solarized.scss57+++ b/src/resources/formats/revealjs/themes/solarized.scss58@@ -49,6 +49,9 @@ $selection-bg: $magenta !default;59$overlayElementBgColor: 0, 0, 0 !default;60$overlayElementFgColor: 240, 240, 240 !default;6162+// code blocks63+$code-block-border-color: #93a1a1 !default;64+65/*-- scss:rules --*/6667html * {686970