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

Codruț Constantin Gușoi
25.13.2021 8384e09033f0fdd00af3c872c6ad097bd63914fa
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@mixin base_dark {
 
  color: $fg-color-dark;
  background-color: $bg-color-dark;
 
  a {
    color: $link-color-dark;
  }
 
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: $alt-fg-color-dark;
 
    &:hover .heading-link {
      visibility: visible;
    }
 
    .heading-link {
      color: $link-color-dark;
      font-weight: inherit;
      text-decoration: none;
      font-size: 80%;
      visibility: hidden;
    }
 
    .title-link {
      color: inherit;
      font-weight: inherit;
      text-decoration: none;
    }
  }
 
  code {
    background-color: $alt-bg-color-dark;
    color: $fg-color-dark;
  }
 
  pre {
    code {
      background-color: inherit;
      color: inherit;
    }
  }
 
  blockquote {
    border-left: 2px solid $alt-bg-color-dark;
  }
 
  table td, table th {
    border: 2px solid $alt-fg-color-dark;
  }
 
}
 
body.colorscheme-dark {
  @include base_dark()
}
 
body.colorscheme-auto {
  @media (prefers-color-scheme: dark) {
    @include base_dark()
  }
}