From 29736fe32d9226ba2499e1e3111869512b83f1fb Mon Sep 17 00:00:00 2001 From: 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> Date: Sun, 4 Feb 2024 23:41:02 +0900 Subject: darkとlightに対応 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Highlight.module.css | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/components') 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 -- cgit v1.2.3-54-g00ecf