summaryrefslogtreecommitdiff
path: root/mod/web/blog/static/style.css
blob: fdfd6926f12232690a8477bf198e4e8e69865224 (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
:root {
  --bg: #181616;
  --fg: #c5c9c5;
  --link: #76946a;
  --linkhover: #98bb6c;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: serif;
  padding: 0 0.75em;
  max-width: 42em;
  margin: auto;
  background: var(--bg);
  color: var(--fg);
}

p {
  line-height: 1.3em;
}

th,
td {
  padding: 0.2em 0.4em;
  border: thin solid;
}

table {
  border: thin solid;
  border-collapse: collapse;
}

article {
  padding-top: 1em;
}

footer {
  margin: 3em auto;
  text-align: center;
}

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

a:hover {
  color: var(--linkhover);
}

a[href^="http"]:where(:not([href*="4kb.net/"]))::after {
  content: " \21e2";
}

article img {
  display: block;
  margin: 0 auto;
  max-width: 80%;
  height: auto;
  object-fit: contain;
}

nav {
  margin-top: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-weight: bold;
  gap: 8px;
}

nav div {
  display: flex;
  gap: 10px;
}

pre {
  padding: 1em;
  overflow-x: scroll;
}