From 00ad05bb828b5ffccfa3ee826bb9152d305b9fc2 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 14 May 2024 18:59:05 +0200 Subject: [PATCH] feat: use accent color for switch and multichoices on dark background --- umap/static/umap/base.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css index f7c9969a..0e21f65d 100644 --- a/umap/static/umap/base.css +++ b/umap/static/umap/base.css @@ -449,9 +449,10 @@ input.switch:checked ~ label:before { text-indent: 0.7em; text-align: left; font-weight: bold; +} .dark input.switch:checked ~ label:before { border: none; -} + background-color: var(--color-accent); } input.switch:checked ~ label:after { margin-left: 3em; @@ -497,7 +498,7 @@ input.switch:checked ~ label:after { background-color: #2c3233; } .umap-multiplechoice input[type='radio']:checked + label { - background-color: var(--color-lightCyan); + background-color: var(--color-accent); box-shadow: inset 0 0 6px 0px #2c3233; color: var(--color-darkGray); }