From a2585ea83a8367261c7d15b330dbddda60efb3b6 Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Thu, 10 Feb 2022 14:12:24 +0100 Subject: [PATCH] ux: add styles for dark mode --- assets/scss/common/_dark.scss | 16 ++++++++++++++++ assets/scss/components/_details.scss | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/assets/scss/common/_dark.scss b/assets/scss/common/_dark.scss index c312215..7608aa4 100644 --- a/assets/scss/common/_dark.scss +++ b/assets/scss/common/_dark.scss @@ -543,3 +543,19 @@ $navbar-dark-active-color: $link-color-dark; [data-dark-mode] .dropdown-menu-main .dropdown-item.active { color: $link-color-dark; } + +[data-dark-mode] details { + border: 1px solid $border-dark; +} + +[data-dark-mode] summary:hover { + background: $body-overlay-dark; +} + +[data-dark-mode] details[open] > summary { + border-bottom: 1px solid $border-dark; +} + +[data-dark-mode] details summary::before { + content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28222, 226, 230, 0.75%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e"); +} diff --git a/assets/scss/components/_details.scss b/assets/scss/components/_details.scss index 0b56bef..f3877dc 100644 --- a/assets/scss/components/_details.scss +++ b/assets/scss/components/_details.scss @@ -1,7 +1,7 @@ details { display: block; - border: 1px solid $gray-300; - border-radius: 4px; + border: 1px solid $gray-200; + border-radius: 0.25rem; padding: 0.5rem 1rem 0; margin: 0.5rem 0; }