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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
@font-face {
font-family: "DejaVu Sans Mono";
src: url("../files/fonts/dejavu/ttf/DejaVuSansMono.ttf");
}
:root {
--fg: #90ff90;
--shadow: 0 0 3px #80ffc066, 0 0 5px #0f63;
--link: #3e3;
--visited: #b9ffb0;
--bg: #1d2021;
--bg2: black;
--selection: #466639;
--font-body: "DejaVu Sans", "Bitstream Vera Sans", "Verdana", sans-serif;
--font-mono: "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Menlo", monospace;
--font-accent: var(--font-mono);
}
.green {
--fg: #86ff86; /* hue 120, contrast 13:1 */
--shadow: 0 0 3px #80ffc066, 0 0 5px #0f63;
--link: #42f042; /* hue 120, contrast 10.75:1 */
--visited: #b7ffaf; /* hue 114, contrast 14:1 */
--bg: #1d2021;
--selection: #466639;
}
.purple {
--fg: #f099ff; /* hue 291, contrast 8:1 */
--shadow: 0 0 3px #ff80f166, 0 0 5px #f0f3;
--link: #ff96e2; /* hue 317, contrast 8:1 */
--visited: #ff82d2; /* hue 322, contrast 7:1 */
--bg: #291f33;
--selection: #663963;
}
.cyan {
--fg: #90ffff; /* hue 180, contrast 14:1 */
--shadow: 0 0 3px #0ff6, 0 0 5px #0ff3;
--link: #00f5f5; /* hue 180, contrast 12:1 */
--visited: #83baf1; /* hue 210, contrast 8:1 */
--bg: #1d2021;
--selection: #466639;
}
/* UTILITY CLASSES */
.clearfix::after { clear:both; display:block; content: ""; }
.inline { display:inline }
/* MAIN STYLES*/
html {
display: flex;
flex-direction: column;
min-height: 100vh;
}
body {
background-color: var(--bg);
background: linear-gradient(var(--bg) 0%, var(--bg2) 33%, var(--bg) 66%);
background-size: 100% 3px;
color: var(--fg);
text-shadow: var(--shadow);
font: 100%/1.6 var(--font-body);
margin: auto;
max-width: 75ch;
word-spacing: .05em;
}
::selection {
background: var(--selection);
color: white;
text-shadow: none;
}
a {
color: var(--link);
}
a:visited {
color: var(--visited);
}
a:hover,
a:focus {
text-decoration: none;
}
code,
pre {
font: 100%/1.25 var(--font-mono);
}
footer {
font: 75%/1.25 var(--font-accent);
}
h1 {
font: bold 200%/1 var(--font-accent);
margin: 0.5em 0 0 0;
border-bottom: 0.25em solid;
}
h1::after {
content: "█";
display: inline-block;
animation: blink 2.4s steps(2) infinite;
}
@keyframes blink {
0% {
opacity: 0;
}
}
@media(prefers-reduced-motion: reduce) {
h1::after {
animation: none !important;
opacity: 50%;
}
}
h2 {
font: bold 141%/1 var(--font-accent);
margin: 0.4em 0 0 0;
}
h3 {
font: bold 117%/1 var(--font-accent);
}
/* NAVIGATION */
header > nav > ul {
font: 100%/1.5 var(--font-accent);
list-style-type: none;
margin: 0 0 0.4em 0;
padding: 0;
}
header > nav > ul > li {
display: inline;
}
header > nav > ul > li > a {
padding: 0.4em;
}
header > nav a.active {
background: var(--fg);
color: var(--bg);
}
/* SECTION */
main,
section,
article {
border-bottom: 1px solid;
}
/* IMAGES */
figure {
border: 1px solid;
margin: auto;
padding: 0.4em;
text-align: center;
width: min-content;
}
figure.fullwidth {
width: initial;
}
figure.fullwidth > img {
max-width: 100%;
}
/* DETAILS */
details {
border: 1px solid;
padding: 0.4em;
}
/* BLOCKQUOTE */
blockquote {
margin: 1em;
border-left: 0.25em;
padding-left: 1em;
}
/* TABLES */
table {
margin: 0.4em;
}
tr:nth-of-type(odd) {
background: var(--bg);
}
tr:nth-of-type(even) {
background: var(--bg2);
}
tr td:first-child {
white-space: nowrap;
}
td {
padding: 0 0.4em;
}
th {
border: 1px solid;
padding: 0 0.4em;
}
table.center-cells td,
table.center-cells th {
text-align: center;
}
|