summaryrefslogtreecommitdiffstats
path: root/assets/styles/main.css
blob: d7a47f6da534d4d4516270e5e77d403b64e7085e (plain) (blame)
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
/* nebbet.no — shared styles */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --color-bg:   #ffffff;
  --color-text: #1a1a1a;
  --color-link: #0057b7;
  --color-muted: #666666;
  --font-body:  system-ui, sans-serif;
  --font-mono:  ui-monospace, monospace;
  --max-width:  72ch;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

pre, code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 4px;
}

img {
  max-width: 100%;
}