Skip to content

Commit 627101a

Browse files
committed
fix: [slides] Use hugo-xterm theme colors
External reveal js theme 'black' must be removed in future.
1 parent d948ce6 commit 627101a

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

assets/styles/_slides.scss

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
:root {
2-
--r-background-color: #{$background--light};
32
--r-code-font: #{$font-family-mono};
4-
--r-heading-color: #{$text--light};
53
--r-heading-font: #{$font-family-title};
6-
--r-link-color: #{$text-links--light};
7-
--r-main-color: #{$text--light};
84
--r-main-font-size: #{$font-size};
95
--r-main-font: #{$font-family-normal};
6+
7+
/* FIXME doesn't work in light theme */
8+
@include themed {
9+
--r-background-color: t($background);
10+
--r-heading-color: t($text);
11+
--r-main-color: t($text);
12+
--r-link-color: t($text-links);
13+
--r-link-color-dark: t($text-links);
14+
--r-link-color-hover: t($text);
15+
}
16+
}
17+
18+
/* HACK use this until reveal.js theme colors are fixed */
19+
.reveal a {
20+
@include themed {
21+
color: t($text-links);
22+
}
1023
}
1124

1225
.reveal {

layouts/partials/slides/style.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/reveal.min.css" />
2+
<!-- FIXME Removing these reveal themes breaks slides styles, need to fix. -->
23
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/theme/black.min.css" id="theme" />
34
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/plugin/highlight/monokai.min.css" />

0 commit comments

Comments
 (0)