mirror of https://github.com/luizdepra/hugo-coder.git

Alphonse Mariya
02.49.2021 3c132254988c872e955b8b024e009a2ba0c8fb05
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();
  }
}