aboutsummaryrefslogtreecommitdiff
path: root/site/style.css
blob: 732bb2a39669f04b2a3ac943d6cfe7badd74bc2e (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
106
107
108
109
110
111
112
113
114
115
116
body {
  font-family: monospace;
  font-size: 14px;
  max-width: 780px;
  margin: 0 auto;
  padding: 10px;
  padding-bottom: 80px;
}

h1::before {
  content: "# ";
}

h2 {
  margin-top: 40px;
}

h2::before {
  content: "## ";
}

h3::before {
  content: "### ";
}

blockquote {
  margin: 0;
  padding: 0;
}

blockquote::before {
  content: "> ";
}

blockquote p {
  font-style: italic;
  display: inline;
}

p.link::before {
  content: "→ ";
}

strong::before { content: "*" }
strong::after  { content: "*" }

hr {
  border: 0;
  height: 1px;
  background-color: #222;
  width: 100%;
  display: block;
  margin: 2em auto;
}

ul.link-list {
  list-style: disclosure-closed;
}

img {
  border-radius: 5px;
}

pre {
  overflow: auto;
  padding: 1rem;
  background-color: #f0f0f0;
  border-radius: 3px;
}

pre.banner {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

code, kbd {
  color: #9d109d;
}

img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

@media (prefers-color-scheme: dark) {
  body {
background-color: #222;
color: white;
  }

  a {
color: aqua;
  }

  hr {
background-color: #ddd;
  }

  pre {
background-color: #353535;
  }

  code, kbd {
color: #ff4cff;
  }
}

@media (max-width: 400px) {
  pre.banner { font-size: 9px; }
}

@media (max-width: 500px) {
  pre.banner { font-size: 10px; }
}