|
@@ -1,188 +1,68 @@
|
|
// stylelint-disable declaration-no-important
|
|
// stylelint-disable declaration-no-important
|
|
-body:not(.theme-dark) .hide-theme-light {
|
|
|
|
- display: none !important;
|
|
|
|
|
|
+
|
|
|
|
+body {
|
|
|
|
+ &:not(.theme-dark):not([data-bs-theme="dark"]) {
|
|
|
|
+ .hide-theme-light {
|
|
|
|
+ display: none !important;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ &.theme-dark,
|
|
|
|
+ &[data-bs-theme="dark"] {
|
|
|
|
+ .hide-theme-dark {
|
|
|
|
+ display: none !important;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
-@include dark-mode {
|
|
|
|
- & {
|
|
|
|
- --#{$prefix}body-color: #{$dark-mode-text};
|
|
|
|
- --#{$prefix}body-color-rgb: #{to-rgb($dark-mode-text)};
|
|
|
|
- --#{$prefix}muted: rgba(153, 159, 164, 1);
|
|
|
|
|
|
+@if $enable-dark-mode {
|
|
|
|
+ @include color-mode(dark, true) {
|
|
|
|
+ --#{$prefix}body-color: #{$body-color-dark};
|
|
|
|
+ --#{$prefix}body-color-rgb: #{to-rgb($body-color-dark)};
|
|
|
|
+ --#{$prefix}muted: #{$text-muted-dark};
|
|
|
|
|
|
- --#{$prefix}body-bg: #{$dark-mode-darken};
|
|
|
|
- --#{$prefix}body-bg-rgb: #{to-rgb($dark-mode-darken)};
|
|
|
|
|
|
+ --#{$prefix}body-bg: #{$darken-dark};
|
|
|
|
+ --#{$prefix}body-bg-rgb: #{to-rgb($darken-dark)};
|
|
|
|
+ --#{$prefix}emphasis-color: #{$body-emphasis-color-dark};
|
|
|
|
+ --#{$prefix}emphasis-color-rgb: #{to-rgb($body-emphasis-color-dark)};
|
|
|
|
|
|
- --#{$prefix}bg-forms: #{$dark-mode-darken};
|
|
|
|
|
|
+ --#{$prefix}bg-forms: #{$darken-dark};
|
|
--#{$prefix}bg-surface: #{$dark};
|
|
--#{$prefix}bg-surface: #{$dark};
|
|
- --#{$prefix}bg-surface-dark: #{$dark-mode-darken};
|
|
|
|
- --#{$prefix}bg-surface-secondary: #{$dark-mode-lighten};
|
|
|
|
- --#{$prefix}bg-surface-tertiary: #{$dark-mode-darken};
|
|
|
|
|
|
+ --#{$prefix}bg-surface-dark: #{$darken-dark};
|
|
|
|
+ --#{$prefix}bg-surface-secondary: #{$lighten-dark};
|
|
|
|
+ --#{$prefix}bg-surface-tertiary: #{$darken-dark};
|
|
|
|
|
|
--#{$prefix}link-color: #{lighten($primary, 8%)};
|
|
--#{$prefix}link-color: #{lighten($primary, 8%)};
|
|
--#{$prefix}link-hover-color: #{$primary};
|
|
--#{$prefix}link-hover-color: #{$primary};
|
|
|
|
|
|
- --#{$prefix}active-bg: #{$dark-mode-lighten};
|
|
|
|
|
|
+ --#{$prefix}active-bg: #{$lighten-dark};
|
|
--#{$prefix}disabled-color: var(--#{$prefix}gray-700);
|
|
--#{$prefix}disabled-color: var(--#{$prefix}gray-700);
|
|
|
|
|
|
- --#{$prefix}card-bg: #{$dark-mode-darken};
|
|
|
|
- --#{$prefix}card-bg-hover: #{$dark-mode-darken};
|
|
|
|
- --#{$prefix}card-bg-rgb: #{to-rgb($dark-mode-darken)};
|
|
|
|
- --#{$prefix}card-color: #{$dark-mode-text};
|
|
|
|
-
|
|
|
|
--#{$prefix}border-color: var(--#{$prefix}dark-mode-border-color);
|
|
--#{$prefix}border-color: var(--#{$prefix}dark-mode-border-color);
|
|
|
|
+ --#{$prefix}border-color-translucent: var(
|
|
|
|
+ --#{$prefix}dark-mode-border-color-translucent
|
|
|
|
+ );
|
|
--#{$prefix}border-dark-color: var(--#{$prefix}dark-mode-border-dark-color);
|
|
--#{$prefix}border-dark-color: var(--#{$prefix}dark-mode-border-dark-color);
|
|
- --#{$prefix}border-color-active: var(--#{$prefix}dark-mode-border-color-active);
|
|
|
|
|
|
+ --#{$prefix}border-color-active: var(
|
|
|
|
+ --#{$prefix}dark-mode-border-color-active
|
|
|
|
+ );
|
|
|
|
|
|
- --#{$prefix}btn-color: #{$dark-mode-darken};
|
|
|
|
|
|
+ --#{$prefix}btn-color: #{$darken-dark};
|
|
|
|
|
|
--#{$prefix}code-color: var(--#{$prefix}body-color);
|
|
--#{$prefix}code-color: var(--#{$prefix}body-color);
|
|
- --#{$prefix}code-bg: #{$dark-mode-border-dark-color};
|
|
|
|
|
|
+ --#{$prefix}code-bg: #{$border-dark-color-dark};
|
|
|
|
|
|
@each $color, $value in $theme-colors {
|
|
@each $color, $value in $theme-colors {
|
|
- --#{$prefix}#{$color}-lt-rgb: #{to-rgb(theme-color-lighter($value, $dark))};
|
|
|
|
|
|
+ --#{$prefix}#{$color}-lt: #{theme-color-lighter($value, $dark)};
|
|
|
|
+ --#{$prefix}#{$color}-lt-rgb: #{to-rgb(
|
|
|
|
+ theme-color-lighter($value, $dark)
|
|
|
|
+ )};
|
|
}
|
|
}
|
|
|
|
|
|
- color-scheme: dark;
|
|
|
|
- color: $dark-mode-text;
|
|
|
|
- background-color: $dark-mode-darken;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .page {
|
|
|
|
- color: $dark-mode-text;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .hide-theme-dark {
|
|
|
|
- display: none !important;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .text-body {
|
|
|
|
- color: $dark-mode-text!important;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .card,
|
|
|
|
- .card-footer,
|
|
|
|
- .card-stacked::after,
|
|
|
|
- .footer:not(.footer-transparent),
|
|
|
|
- .modal-content,
|
|
|
|
- .modal-header,
|
|
|
|
- .dropdown-menu,
|
|
|
|
- .toast,
|
|
|
|
- .toast-header,
|
|
|
|
- .alert:not(.alert-important) {
|
|
|
|
- background-color: var(--#{$prefix}bg-surface);
|
|
|
|
- color: inherit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .modal {
|
|
|
|
- --#{$prefix}modal-border-color: var(--#{$prefix}border-color);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .bg-light {
|
|
|
|
- background-color: $dark-mode-darken !important;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .card-tabs .nav-tabs .nav-link {
|
|
|
|
- background-color: $dark-mode-darken;
|
|
|
|
- color: inherit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .card-tabs .nav-tabs .nav-link.active {
|
|
|
|
- background-color: $dark;
|
|
|
|
- color: inherit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .form-check-input:not(:checked),
|
|
|
|
- .form-select,
|
|
|
|
- .form-file-text,
|
|
|
|
- .form-control,
|
|
|
|
- .form-selectgroup-check {
|
|
|
|
- background-color: $dark-mode-darken;
|
|
|
|
- color: $dark-mode-text;
|
|
|
|
- border-color: $dark-mode-border-color;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .form-control-plaintext {
|
|
|
|
- color: $dark-mode-text;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .input-group-flat .input-group-text {
|
|
|
|
- background-color: $dark-mode-darken;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .input-group-text {
|
|
|
|
- border-color: $dark-mode-border-color;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .highlight {
|
|
|
|
- background-color: $dark-mode-darken;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .timeline-event-icon {
|
|
|
|
- background-color: #{$dark-mode-lighten};
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .markdown,
|
|
|
|
- .markdown>*,
|
|
|
|
- .accordion-button {
|
|
|
|
- color: inherit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .btn-close,
|
|
|
|
- .accordion-button:after {
|
|
|
|
- filter: $btn-close-white-filter;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .apexcharts-text {
|
|
|
|
- fill: $dark-mode-text;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .apexcharts-gridline {
|
|
|
|
- stroke: var(--#{$prefix}border-color);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .apexcharts-legend-text {
|
|
|
|
- color: inherit !important;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .navbar-brand-autodark {
|
|
|
|
- @include autodark-image;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .table thead th,
|
|
|
|
- .input-group-text {
|
|
|
|
- background: transparent;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .list-group-header {
|
|
|
|
- background: $dark-mode-darken;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .list-group-item {
|
|
|
|
- //border-color: $border-color-transparent;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .list-group-item:not(.disabled):not(:disabled) {
|
|
|
|
- color: $dark-mode-text;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .list-group-item {
|
|
|
|
- &.disabled,
|
|
|
|
- &:disabled {
|
|
|
|
- color: $gray-600;
|
|
|
|
|
|
+ .navbar-brand-autodark {
|
|
|
|
+ .navbar-brand-image {
|
|
|
|
+ @include autodark-image;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- .apexcharts-radialbar-area {
|
|
|
|
- stroke: $dark-mode-border-color;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .form-control.is-invalid,
|
|
|
|
- .was-validated .form-control:invalid {
|
|
|
|
- border-color: var(--#{$prefix}danger);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .form-control.is-valid,
|
|
|
|
- .was-validated .form-control:valid {
|
|
|
|
- border-color: var(--#{$prefix}success);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|