ux: add styles for dark mode

This commit is contained in:
Henk Verlinde 2022-02-10 14:12:24 +01:00
parent 151aaef5a6
commit a2585ea83a
2 changed files with 18 additions and 2 deletions

View File

@ -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");
}

View File

@ -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;
}