blob: d81d724052b68785409fa58695d41b60675a9e1c (
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
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
|
:root {
--fg: black;
--bg: #fff8e7; /* cosmic latte */
--accent: #c588b0;
}
/* UTILITY CLASSES */
.inline { display: inline; }
.center { text-align: center; }
.clearfix::after { clear: both; display: block; content: ""; }
/* MAIN STYLE */
body {
font: 100%/1.4 sans-serif;
color: var(--fg);
background-color: var(--bg);
}
header,
section,
article {
max-width: 45rem;
padding: 1rem;
margin: auto;
}
/* headers */
h1 {
font: bold 200%/1 sans-serif;
margin: 0.5em 0 0 0;
border-bottom: 0.25em solid var(--accent);
}
h2 {
font: bold 168%/1 sans-serif;
margin: 0.5em 0 0 0;
}
h3 {
font: bold 141%/1 sans-serif;
margin: 0.5em 0 0 0;
}
h4 {
font: bold 119%/1 sans-serif;
margin: 0.5em 0 0 0;
}
/* images */
figure {
border: 1px solid;
margin: auto;
padding: 0.5em;
text-align: center;
width: min-content;
}
figure.fullwidth {
width: initial;
}
figure.fullwidth > img {
max-width: 100%;
}
/* tables */
table {
margin: 0.5em;
}
tr:nth-of-type(odd) {
background: var(--bg);
}
tr:nth-of-type(even) {
background: grey;
}
tr td:first-child {
white-space: nowrap;
}
td {
padding: 0 0.5em;
}
th {
border: 1px solid;
padding: 0 0.5em;
}
/* misc */
a:hover,
a:focus {
text-decoration: none;
}
section,
article {
border-bottom: 1px solid;
}
pre,
code {
font: 100%/1.25 monospace;
}
blockquote,
pre {
margin: 1em;
border-left: 0.25em solid;
padding-left: 1em;
}
details {
border: 1px solid;
padding: 0.5em;
}
/* header */
header > nav {
display: inline-block;
}
header > nav > ul {
list-style-type: none;
margin: 0 0 0.5em 0;
padding: 0;
}
header > nav > ul > li {
display: inline;
}
header > nav > ul > li > a {
padding: 0.5em;
}
header > nav a.active {
background: var(--accent);
color: var(--bg);
}
#decor-moons {
float: right;
user-select: none;
overflow: hidden;
}
/* dark mode */
@media(prefers-color-scheme: dark) {
:root {
--fg: #fff8e7;
--bg: #1d2021;
--accent: #ddadcc;
}
body {
line-height: 1.5;
word-spacing: 0.1em;
}
a {
color: #cedeff;
}
a:visited {
color: #d4bff8;
}
}
|