summaryrefslogtreecommitdiff
path: root/src/styles/global.css
blob: 11d9e5bc92d34c8541fd75a2658ca2ddd0278598 (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
94
95
96
97
98
99
100
101
102
103
104
105
:root {
  --ff-serif: ui-serif, serif;
  --ff-sans: ui-sans-serif, sans-serif;
  --ff-mono: ui-monospace, monospace;
  --ff-icons: "glyphicons", emoji;
  --color-link: #1a9850;
  --color-visited: #006837;
  --color-active: #a50026;
}

body {
  margin: 1rem auto;
  max-width: 80ch;
  font-family: var(--ff-sans);
  padding: 0 0.62em 3.24em;
}

a:link {
  color: var(--color-link);
}

a:visited {
  color: var(--color-visited);
}

a:active {
  color: var(--color-active);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-link: #a6d96a;
    --color-visited: #d9ef8b;
    --color-active: #f46d43;
  }

  body {
    background: #000;
    color: #fff;
  }
}

body.theme-dark {
  --color-link: #a6d96a;
  --color-visited: #d9ef8b;
  --color-active: #f46d43;
  background: #000;
  color: #fff;
}

@media print {
  body {
    max-width: none;
  }
}

.emoji {
  font-family: var(--ff-icons);
}

[title] {
  border-bottom: thin dashed;
}

dt::after {
  content: ":";
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-auto-rows: auto;
  gap: 0.25rem 1rem;
  align-items: start;
}

dl dt,
dl dd {
  margin: 0;
  word-break: break-word;
}

dl dt {
  grid-column: 1;
}

dl dd {
  grid-column: 2;
}

dl.divider {
  gap: 0;
}
dl.divider dl {
  gap: 0;
}
dl.divider dt {
  padding-inline-end: 1em;
}
dl.divider dt + dd:not(:first-of-type) {
  border-block-start: 1px solid #181818;
}
dl.divide dd + dt {
  border-block-start: 1px solid #181818;
}