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

John Schroeder
21.13.2019 b00b75064d67953db2f32fee676360477026d97f
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@mixin content_dark {
 
  .content {
  
    .list {
      ul {
        li {
          .title {
            color: $fg-color-dark;
            &:hover,
            &:focus {
              color: $link-color-dark;
            }
          }
        }
      }
    }
 
    .centered {
      .about {
        ul {
          li {
            a {
              color: $fg-color-dark;
              &:hover,
              &:focus {
                color: $link-color-dark;
              }
            }
          }
        }
      }
    }
  }
 
}
 
body.colorscheme-dark {
  @include content_dark()
}
 
body.colorscheme-auto {
  @media (prefers-color-scheme: dark) {
    @include content_dark()
  }
}