« get me outta code hell

site.css - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/site.css
blob: ae4cbc0f6ca6f40b1e611680fc039039d6a66df4 (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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
/* A frontend file! Wow.
 * This file is just loaded statically 8y <link>s in the HTML files, so there's
 * no need to re-run upd8.js when tweaking values here. Handy!
 */

/* Pages can specify their own theme colors (used for links, and may8e other
 * things) by changing this CSS varia8le through their 8ody's style attri8ute.
 * And yes, CSS varia8les are supported in 8asically every major 8rowser.
 * No, I don't care a8out Internet Explorer.
 */
:root {
    --fg-color: #0088ff;
    --bg-color: #222222;
    --theme: 0; /* 0: dark (below light), 1: light (below dark) */
}

body {
    background-color: var(--bg-color);

    --bg-shade: calc(255 * var(--theme));
    --fg-shade: calc(255 * (1 - var(--theme)));

    color: rgb(var(--fg-shade), var(--fg-shade), var(--fg-shade));

    display: flex;
    padding: 15px;
}

a {
    color: var(--fg-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#sidebar, #content {
    background-color: rgba(var(--bg-shade), var(--bg-shade), var(--bg-shade), 0.6);
    border: 1px dotted var(--fg-color);
    border-radius: 3px;
}

#sidebar {
    flex: 1 1 20%;
    min-width: 200px;
    max-width: 250px;
    float: left;
    padding: 20px 5px;
    margin-right: 10px;
    font-size: 0.85em;
    height: 100%;
}

#content {
    padding: 20px;
}

#sidebar h1 {
    font-size: 1.25em;
    text-align: center;
}

#sidebar h2 {
    font-size: 1.1em;
    text-align: center;
    margin: 0;
}

#sidebar h3 {
    font-size: 1.1em;
    text-align: center;
    font-style: oblique;
    font-variant: small-caps;
    margin-top: 0.3em;
    margin-bottom: 0em;
}

#sidebar p {
    text-align: center;
    margin: 0.5em 0;
}

#sidebar p:last-child {
    margin-bottom: 0;
}

#sidebar hr {
    color: #555;
    margin: 10px 5px;
}

#sidebar > ol, #sidebar > ul {
    padding-left: 30px;
    padding-right: 15px;
}

#sidebar > dl {
    padding-right: 15px;
    padding-left: 0;
}

#sidebar > dl dt {
    padding-left: 15px;
    margin-top: 0.5em;
}

#sidebar > dl dt.current {
    font-weight: 800;
}

#sidebar > dl dd {
    margin-left: 0;
}

#sidebar > dl dd ul {
    padding-left: 30px;
    margin-left: 0;
}

#sidebar > dl .side {
    padding-left: 10px;
}

#sidebar li.current {
    font-weight: 800;
}

#sidebar li {
    overflow-wrap: break-word;
}

#content {
    flex-grow: 1;
}

#cover-art {
    float: right;
    width: 40%;
    max-width: 400px;
    margin: 0 0 10px 10px;
    background-color: #181818;
    border: 2px solid var(--fg-color);
}

#cover-art img {
    width: 100%;
    display: block;
}

h1 {
    font-size: 1.5em;
}

#content li {
    margin-bottom: 4px;
}

#content li i {
    white-space: nowrap;
}

.grid-listing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.grid-listing > .grid-item {
    flex: 1 1 26%;
    display: inline-block;
    min-width: 160px;
    max-width: 240px;
    margin: 15px;
    text-align: center;
    background-color: #111111;
    border: 1px dotted var(--fg-color);
    border-radius: 2px;
    padding: 5px;
}

.grid-listing > .grid-item > img {
    width: 100%;
    margin-bottom: 10px;
}

.grid-listing h2 {
    text-align: center;
    width: 100%;
}

#top-index #content h1 {
    text-align: center;
    font-size: 2em;
}

#top-index #content h2 {
    text-align: center;
    font-size: 3em;
    font-variant: small-caps;
    font-style: oblique;
    margin-bottom: 0;
}

#top-index #content h3 {
    text-align: center;
    font-size: 1.1em;
    font-style: oblique;
    font-weight: normal;
}

#intro-menu {
    margin: 24px 0;
    padding: 10px;
    background-color: #222222;
    text-align: center;
    border: 1px dotted var(--fg-color);
    border-radius: 2px;
}

#intro-menu p {
    margin: 12px 0;
}

#intro-menu a {
    margin: 0 6px;
}

li .by {
    white-space: nowrap;
    font-style: oblique;
}

p code {
    font-size: 1em;
    font-family: 'courier new';
    font-weight: 800;
}

blockquote {
    max-width: 600px;
}

.long-content {
    margin-left: 12%;
    margin-right: 12%;
}

p img {
    max-width: 100%;
}

dl dt {
    padding-left: 2em;
}

dl dt {
    margin-bottom: 2px;
}

dl dd {
    margin-bottom: 1em;
}

.new {
    animation: new 1s infinite;
}

@keyframes new {
    0% {
        color: #bbdd00;
    }

    50% {
        color: #eeff22;
    }

    100% {
        color: #bbdd00;
    }
}

/* fake :P */
.loading::after {
    content: '.';
    animation: loading 6s infinite;
}

@keyframes loading {
    0 {
        content: '.';
    }

    33% {
        content: '..';
    }

    66% {
        content: '...';
    }

    100% {
        content: '.';
    }
}