summaryrefslogtreecommitdiff
path: root/themes/hugo-coder/assets/scss/_float_dark.scss
blob: 348dafe50416b599ed9a612ecaa9b1f5e303a49f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@mixin float_dark {
  .float-container {
    a {
      color: $alt-fg-color-dark;
      background-color: $alt-bg-color-dark;

      &:hover,
      &:focus {
        color: $link-color-dark;

        @media only screen and (max-width: 768px) {
          color: $alt-fg-color-dark;
        }
      }
    }
  }
}

body.colorscheme-dark {
  @include float_dark();
}

body.colorscheme-auto {
  @media (prefers-color-scheme: dark) {
    @include float_dark();
  }
}