Welcome to mirror list, hosted at ThFree Co, Russian Federation.

darkmode.css « css « static - github.com/7ma7X/HugoTeX.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 642670482635ad4c72b5db2ce28179045c98337d (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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@media (prefers-color-scheme: dark) {
  html, body {
    color: #dcdcdc;
    background-color: #292929;
  }

  html *:not(input) *:not(span) {
    color: #dcdcdc !important;
  }

  a[ping]:link,
  :link:not(cite) {
    color: #8db2e5 !important;
  }

  html a:visited {
    color: #d248ea !important;
  }

  html cite,
  html cite a:link,
  html cite a:visited {
    color: #92de92 !important;
  }

  /* inline styles */
  [style*='background: #'], [style*='background:#'],
  [style*='background: rgb'], [style*='background:rgb'],
  [style*='background: var('], [style*='background:var('],
  [style*='background-color: #'], [style*='background-color:#'],
  [style*='background-color: rgb'], [style*='background-color:rgb'],
  [style*='background-color: var('], [style*='background-color:var('] {
    background-color: #292929 !important;
  }

  pre {
    margin: 0;
    background: #414040 !important;
  }
  pre code {
    font-size: 95%;
    position: relative;
  }

  /* Better tables */
  table {
    border-collapse: collapse;
    border-spacing: 0;
    width: auto;
    max-width: 100%;
    border-top: 2.27px solid white;
    border-bottom: 2.27px solid white;
    /* display: block; */
    overflow-x: auto; /* does not work because element is not block */
    /* white-space: nowrap; */
    counter-increment: caption;
  }
  /* add bottom border on column table headings  */
  table tr > th[scope='col'] {
    border-bottom: 1.36px solid white;
  }
  /* add right border on row table headings  */
  table tr > th[scope='row'] {
    border-right: 1.36px solid white;
  }
  table > tbody > tr:first-child > td,
  table > tbody > tr:first-child > th {
    border-top: 1.36px solid white;
  }
  table > tbody > tr:last-child > td,
  table > tbody > tr:last-child > th {
    border-bottom: 1.36px solid white;
  }

  /* frame of the code block */
  div.highlight {
    border: 1px solid;
    border-radius: 4px;
  }

  /* Styles for inline code or code snippets */
  kbd {
    background: #292929;
    border: 1px solid hsl(210, 5%, 70%);
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 75%;
  }

  mark {
    background-color: rgb(97, 96, 96) !important;
  }
}