_dark.scss 816 字节
Newer Older
C
chomik 已提交
1 2
// stylelint-disable declaration-no-important

C
codecalm 已提交
3
@mixin dark-mode {
4 5
  & {
    color: #ffffff;
C
codecalm 已提交
6
    background: $dark-body-bg;
C
codecalm 已提交
7
  }
C
chomik 已提交
8 9

  .card,
10
  .navbar-light {
C
codecalm 已提交
11
    background: $dark;
12
    color: inherit;
C
codecalm 已提交
13 14
  }

15 16
  .card {
    border-color: transparent;
C
chomik 已提交
17
  }
C
chomik 已提交
18

19 20 21
  .btn-secondary {
    @include button-variant($min-white, $border-color, $light, rgba($dark, 0), $border-color, $light);
    background-image: none;
C
chomik 已提交
22
  }
C
codecalm 已提交
23

24 25
  .avatar-list-stacked .avatar {
    box-shadow: 0 0 0 2px $dark;
C
codecalm 已提交
26
  }
C
codecalm 已提交
27

28 29
  .apexcharts-text {
    fill: #ffffff;
C
codecalm 已提交
30 31
  }

32 33
  .apexcharts-legend-text {
    color: inherit !important;
C
codecalm 已提交
34
  }
C
codecalm 已提交
35

36 37
  .navbar-brand-autodark {
    @include autodark-image;
C
codecalm 已提交
38
  }
C
chomik 已提交
39 40
}

C
codecalm 已提交
41
@media not print {
C
codecalm 已提交
42
  .theme-dark {
C
codecalm 已提交
43 44
    @include dark-mode;
  }
C
chomik 已提交
45 46
}

C
codecalm 已提交
47
@media not print and (prefers-color-scheme: dark) {
48
  .theme-dark-auto {
C
codecalm 已提交
49
    @include dark-mode;
C
chomik 已提交
50 51
  }
}