diff options
Diffstat (limited to 'src/components/Highlight.module.css')
-rw-r--r-- | src/components/Highlight.module.css | 13 |
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 |