summaryrefslogtreecommitdiff
path: root/www/index.css
blob: 21baa50623fd84c82de2a6ddc8da7d70a879b60e (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/* default / light */
:root {
  --background: white;
  --font: black;
  --quote: #eee;
  --link: #0303ee;
  --linkv: #551a8b;
  --linkf: #f02727;
  --articleborder: #060606;
  --tableborder: #aaa;
  --tablehead: #ebcfff;
  --tablez: #eee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1e1e1e;
    --font: #eee;
    --quote: #444;
    --link: #00d3d3;
    --linkv: #cd78f4;
    --linkf: #f02727;
    --articleborder: #23ed9b;
    --tableborder: #aaa;
    --tablehead: #6f5a7e;
    --tablez: #313131;
  }
}

html,body { 
  margin: 0; 
  font-family: sans-serif;
  background-color: var(--background);
  color: var(--font);
}
a {
  color: var(--link);
}
a:visited {
  color: var(--linkv);
}
a:focus {
  color: var(--linkf);
}
#body { 
  margin: 16px auto; 
  max-width: 700px;
}
@media only screen and (max-width: 800px) {
  #body {
    margin: 16px 10%;
    max-width: 700px;
  }
}

#body article { 
  border-bottom: 1px solid var(--articleborder); 
}
#body article:last { border-bottom: none; }
#body table { border-collapse: collapse; border: 1px solid var(--tableborder); }
#body table thead tr { background-color: var(--tablehead); }
#body table td, #body table th { border: 1px solid var(--tableborder); padding: 2px 8px; } 
#body table tr:nth-child(even) { background-color: var(--tablez); }
#body ul.compact { columns: 2; }

#body blockquote {
  background-color: var(--quote);
  border-radius: 2px;
  padding: 4px;
}

#body blockquote p {
  font-style: italic;
}

#body figure blockquote {
  margin: 0;
}

#header {
        background-color: #060606;
        color: #67ff79;
        border-bottom: 4px solid #23ed9b;
        line-height: 2em;
        margin: 0;
        padding: 8px 10%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
}
@media only screen and (max-width: 800px) {
  #header {
    flex-direction: column;
    align-items: center;
  }
}
#header > nav { flex: initial; }
#header > nav > a:link { color: #81b7ff }
#header > nav > a:visited { color: #cd78f4; }
#header > nav > a:focus, #header > nav > a:active, #header > nav > a:hover { color: #6005dd; }
#header > .title { flex: auto; font-family: monospace; font-size: 1.5em; }
#header > a.title:link, 
  #header > a.title:visited, 
  #header > a.title:hover,
  #header > a.title:focus,
  #header > a.title:active { 
  color:inherit; text-decoration: none; 
}
#footer {
  font-size: 0.90em;
  float:right;
}

#copyright {
  font-size: 0.80em;
  float:left;
}

article .footer {
  font-size: 0.90em;
  float:right;
}

.footnote {
  /* always shift the footnotes a bit below whats above */
  margin: 24px 0 0 0;
  font-size: 0.75em;
}

code {
  font-family: monospace;
  background-color: var(--quote);
  padding: 4px 4px;
  border-radius: 5px 5px;
  display: inline-block;
}
code.inline {
  display: inline;
  padding: 2px 2px;
}

.scaled-half {
  display:inline;
}
.scaled-half > img {
  width: 25%;
  height: 25%;
}
.scaled-half:hover > img {
  width: auto;
  height: auto;
}

#tutorial { margin: 2% }