aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Highlight.module.css13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/components/Highlight.module.css b/src/components/Highlight.module.css
index a1eb5491..792543aa 100644
--- a/src/components/Highlight.module.css
+++ b/src/components/Highlight.module.css
@@ -1,6 +1,11 @@
+:root {
+ --highlight: #fff9c0;
+}
+[data-theme='dark'] {
+ --highlight: #000;
+}
+
.span {
- background-color: yellow;
- border-radius: '2px';
- color: '#fff';
- padding: '0.2rem';
+ background-color: var(--highlight);
+ border-bottom: 1px dotted var(--ifm-font-color-base);
} \ No newline at end of file