mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: dark mode should be consistent in dark mode vs system settings (#4669)
This commit is contained in:
parent
b83e6a5d5b
commit
92ee4d33c3
@ -60,10 +60,10 @@ $form-check-radio-checked-bg-image-dark: url("data:image/svg+xml,<svg xmlns='htt
|
|||||||
// Dark mode
|
// Dark mode
|
||||||
@mixin paperless-green-dark-mode {
|
@mixin paperless-green-dark-mode {
|
||||||
--pngx-primary-lightness: 31%;
|
--pngx-primary-lightness: 31%;
|
||||||
|
--bs-primary: hsl(var(--pngx-primary),var(--pngx-primary-lightness));
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin dark-mode {
|
@mixin dark-mode {
|
||||||
--bs-primary: hsl(var(--pngx-primary),var(--pngx-primary-lightness));
|
|
||||||
--bs-body-color: #{$text-color-dark-bg};
|
--bs-body-color: #{$text-color-dark-bg};
|
||||||
--pngx-body-color-accent: #{$text-color-dark-bg-accent};
|
--pngx-body-color-accent: #{$text-color-dark-bg-accent};
|
||||||
--bs-secondary-color: #6c757d;
|
--bs-secondary-color: #6c757d;
|
||||||
@ -80,6 +80,7 @@ $form-check-radio-checked-bg-image-dark: url("data:image/svg+xml,<svg xmlns='htt
|
|||||||
--pngx-primary-faded: var(--pngx-primary-darken-15);
|
--pngx-primary-faded: var(--pngx-primary-darken-15);
|
||||||
--pngx-primary-text-contrast: var(--bs-body-color);
|
--pngx-primary-text-contrast: var(--bs-body-color);
|
||||||
--bs-dark-border-subtle: var(--pngx-bg-darker);
|
--bs-dark-border-subtle: var(--pngx-bg-darker);
|
||||||
|
--bs-border-color-translucent: rgba(0, 0, 0, .175); // override bs
|
||||||
|
|
||||||
.text-dark, .text-light {
|
.text-dark, .text-light {
|
||||||
color: var(--bs-body-color) !important;
|
color: var(--bs-body-color) !important;
|
||||||
@ -142,6 +143,7 @@ $form-check-radio-checked-bg-image-dark: url("data:image/svg+xml,<svg xmlns='htt
|
|||||||
|
|
||||||
.card {
|
.card {
|
||||||
background-color: var(--bs-body-bg);
|
background-color: var(--bs-body-bg);
|
||||||
|
--bs-card-cap-bg: var(--bs-body-bg-rgb);
|
||||||
|
|
||||||
.card-header {
|
.card-header {
|
||||||
background-color: rgba(0, 0, 0, 0.12);
|
background-color: rgba(0, 0, 0, 0.12);
|
||||||
@ -279,6 +281,10 @@ $form-check-radio-checked-bg-image-dark: url("data:image/svg+xml,<svg xmlns='htt
|
|||||||
background-color: rgb(var(--bs-dark-rgb)) !important;
|
background-color: rgb(var(--bs-dark-rgb)) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tooltip {
|
||||||
|
--bs-tooltip-bg: #000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@include color-mode(dark) {
|
@include color-mode(dark) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user