« 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: 258bc1698db4d628e3c82cd567cf56723d0953bc (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
/* 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%;
    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 hr {
    color: #555;
    margin: 10px 5px;
}

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

#sidebar li.current-track {
    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;
}

li.contributed-only-original {
    opacity: 0.7;
}

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

#intro {
    margin: 24px 12%;
}

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