diff options
author | 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> | 2024-02-04 23:41:02 +0900 |
---|---|---|
committer | 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> | 2024-02-04 23:41:02 +0900 |
commit | 29736fe32d9226ba2499e1e3111869512b83f1fb (patch) | |
tree | 46e7e7c23d35861443961ef20549a5fc2a8e6911 /src/components | |
parent | 39105f5a8b609ec8ff7772ca1883e6d6a0a81b62 (diff) |
darkとlightに対応
Diffstat (limited to 'src/components')
-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 |