Skip to content

Commit 3a9a494

Browse files
committed
Patch dracula theme regarding callout-title
1 parent ecc0254 commit 3a9a494

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

package/src/common/patches/revealjs-theme-0001-dracula.patch

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/src/resources/formats/revealjs/themes/dracula.scss b/src/resources/formats/revealjs/themes/dracula.scss
2-
index 5330fbc1b..45498dd41 100644
2+
index 5330fbc1b..fe068d9a8 100644
33
--- a/src/resources/formats/revealjs/themes/dracula.scss
44
+++ b/src/resources/formats/revealjs/themes/dracula.scss
5-
@@ -1,106 +1,88 @@
5+
@@ -1,106 +1,90 @@
66
/**
77
* Dracula Dark theme for reveal.js.
88
* Based on https://draculatheme.com
@@ -151,7 +151,9 @@ index 5330fbc1b..45498dd41 100644
151151
- }
152152
+ strong,
153153
+ b {
154-
+ color: var(--r-bold-color);
154+
+ &:not(.callout-title strong, .callout-tile b) {
155+
+ color: var(--r-bold-color);
156+
+ }
155157
+ }
156158
+ em,
157159
+ i,

package/src/common/update-html-dependencies.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,9 @@ async function updateGithubSourceCodeDependency(
11231123
await unzip(zipFile, working);
11241124

11251125
await onDownload(working, version);
1126-
if (patches) await applyGitPatches(patches);
1126+
if (patches) {
1127+
await applyGitPatches(patches);
1128+
}
11271129
} else {
11281130
throw new Error(`${versionEnvVar} is not defined`);
11291131
}

src/resources/formats/revealjs/themes/dracula.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ $light-bg-text-color: $body-bg !default;
5959
.reveal {
6060
strong,
6161
b {
62-
color: var(--r-bold-color);
62+
&:not(.callout-title strong, .callout-tile b) {
63+
color: var(--r-bold-color);
64+
}
6365
}
6466
em,
6567
i,

0 commit comments

Comments
 (0)