]> jfr.im git - irc/freenode/web-7.0.git/blame - static/css/style.css
Merge pull request #84 from freenode/pretty-links
[irc/freenode/web-7.0.git] / static / css / style.css
CommitLineData
2ed0f35d 1/* vars */
f38f696b 2:root {
d439b099
EK
3 --c-dark: #292f2f;
4 --c-bg-dark: #3a4346;
5 --c-bg-light: #4c5456;
6 --c-light: #ecf7fa;
7 --c-hl-dark: #008499;
8 --c-hl-light: #3baec4;
9
d1cee50f 10 /* backgrounds */
d439b099
EK
11 --navbar-bg: var(--c-dark);
12 --jumbotron-bg: var(--c-bg-dark);
13 --copyright-bg: var(--c-dark);
14
d1cee50f 15 /* link colors */
d439b099
EK
16 --link-color: var(--c-hl-dark);
17 --link-hover-color: var(--c-hl-light);
18 --footer-link-color: var(--c-light);
19 --footer-hover-color: #fff;
20
d1cee50f 21 /* text colors */
d439b099
EK
22 --text-color: var(--c-dark);
23 --footer-text-color: var(--c-light);
24 --copyright-text-color: var(--c-light);
25 --jumbotron-text-color: var(--c-light);
26 --art-date-color: color(var(--c-dark) tint(50%));
27
d1cee50f 28 /* box colors */
d439b099
EK
29 --border-color: var(--c-dark);
30 --box-color: var(--c-bg-light);
31 --box-hover-color: var(--c-dark);;
d1cee50f 32 --box-round: 10px;
d439b099 33
d1cee50f
SB
34 /* other */
35 --max-width: 600px;
36 --max-width-box: 800px;
37 --margin-box-fa: 5px;
f38f696b 38}
d1cee50f
SB
39@custom-media --max-sm all and (max-width: 600px);
40@custom-media --max-md all and (max-width: 800px);
41@custom-media --max-rem all and (max-width: 60rem);
2ed0f35d 42
2ed0f35d 43/* reset css for browser compat */
2ed0f35d 44* {
f38f696b
EK
45 margin: 0;
46 padding: 0;
47 box-sizing: border-box;
2ed0f35d
S
48}
49
50/* global */
2ed0f35d 51body {
f38f696b 52 font-family: 'Open Sans';
512215ac
EK
53 font-feature-settings: "lnum";
54 font-variant-numeric: lining-nums;
f38f696b
EK
55 color: var(--text-color);
56 font-size: 14px;
57 min-height: 100vh;
58 height: auto;
2ed0f35d
S
59}
60
61a {
ef54eedd 62 color: var(--link-color);
f38f696b 63 text-decoration: none;
2ed0f35d
S
64}
65
d439b099
EK
66a:hover {
67 color: var(--link-hover-color);
68}
a9a27d4b
SB
69img {
70 max-width: 100%;
71}
d439b099 72
2ed0f35d 73/* navbar */
2ed0f35d 74.navbar {
f38f696b
EK
75 width: 100%;
76 height: 50px;
77 background-color: var(--navbar-bg);
545c8ea4 78 box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
f38f696b
EK
79 position: fixed;
80 left: 0;
81 right: 0;
82 top: 0;
83 display: flex;
84 flex-wrap: nowrap;
85 justify-content: space-between;
86 align-items: center;
545c8ea4 87 border-bottom: 1px solid var(--border-color);
f38f696b 88 z-index: 100;
15bc3c0b 89 padding-right: 5px;
2ed0f35d
S
90}
91
d1cee50f 92@media (--max-sm); {
545c8ea4
EK
93 .navbar {
94 position: absolute;
95 }
96}
97
98.navbar a {
15bc3c0b 99 margin-top: 2px;
545c8ea4
EK
100 height: 40px;
101}
102
2ed0f35d 103.nlogo {
f38f696b 104 height: 40px;
2ed0f35d
S
105}
106
2ed0f35d 107/* main */
2ed0f35d 108.container {
f38f696b 109 width: 100%;
28507109 110 min-height: 98vh;
588c2afb 111 padding-top: 50px;
28507109 112 padding-bottom: 11.5rem;
2ed0f35d
S
113}
114
115.main {
4f236e86 116 margin: 0 auto;
949bf01c 117 margin-top: .75em;
588c2afb 118 padding: 0 .75em;
4f236e86 119 max-width: var(--max-width);
19ea0778 120 line-height: 1.4;
2ed0f35d
S
121}
122
0e9ffab7
EK
123.main h1,
124.main h2,
125.main h3,
19ea0778 126.main h4,
50d68b4a 127.main li,
19ea0778
EK
128.main pre,
129.main p {
588c2afb 130 margin-top: .7em;
0e9ffab7
EK
131}
132
19ea0778
EK
133.main h1 + p,
134.main h2 + p,
135.main h3 + p,
136.main h3 + p {
137 margin-top: 0;
138}
139
81cae952 140ul {
50d68b4a
EK
141 padding-left: 2em;
142 list-style-type: disc;
143}
144
19ea0778
EK
145hr {
146 margin-top: .8em;
147 margin-bottom: .8em;
148}
149
2ed0f35d 150/* jumbotron */
2ed0f35d 151.jumbotron {
f38f696b
EK
152 position: relative;
153 width: 100%;
154 margin-top: -16px;
f38f696b 155 background: var(--jumbotron-bg);
545c8ea4 156 box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
f38f696b 157 color: var(--jumbotron-text-color);
545c8ea4 158 padding: 2em 0;
2ed0f35d
S
159}
160
161.child {
f38f696b 162 text-align: center;
ef54eedd 163 margin: .5em auto;
f38f696b
EK
164 font-size: 32px;
165 line-height: 48px;
ef54eedd 166 max-width: 75%;
2ed0f35d
S
167}
168
169.box-container {
f38f696b
EK
170 display: flex;
171 flex-wrap: wrap;
172 justify-content: space-around;
173 align-items: stretch;
d1cee50f 174 max-width: var(--max-width-box);
6c2065c4 175 margin: 0 auto;
2ed0f35d
S
176}
177
178.box {
6c2065c4 179 text-align: center;
f38f696b 180 text-decoration: none;
ef54eedd 181 color: var(--jumbotron-text-color);
f38f696b 182 margin-bottom: 5px;
f38f696b 183 flex-basis: 30%;
81cae952 184 min-width: 26%;
ef54eedd 185 background-color: var(--box-color);
f38f696b 186 border-radius: var(--box-round);
81cae952 187 padding: 1em;
f38f696b
EK
188}
189
190.box:hover,.box:active {
d439b099 191 color: var(--jumbotron-text-color);
f38f696b
EK
192 background-color: var(--box-hover-color);
193}
194
195.box div{
f38f696b 196 position: relative;
d4b00db0 197 top: initial;
257112d0 198 font-size: 20px;
ef54eedd 199 font-weight: 600;
d4b00db0 200 line-height: 16px;
d4b00db0 201 display: block;
81cae952 202 margin-top: .75em;
e9725e62 203}
204
2ed0f35d 205.fa-users {
d1cee50f 206 margin-top: var(--margin-box-fa);
2ed0f35d
S
207}
208
f38f696b 209.fa-comment,.fa-question {
d1cee50f 210 margin-bottom: var(--margin-box-fa);
2ed0f35d
S
211}
212
213.title {
f38f696b 214 text-align: center;
2ed0f35d
S
215}
216
d1cee50f
SB
217@media (--max-md) {
218 .box {
219 text-align: center;
220 }
221
222 .child {
223 font-size: 20px;
224 line-height: 30px;
225 padding: 10px 0 5px;
226 }
227
228 .fa-4x {
229 padding: 0;
230 margin: 0;
231 width: 60px;
232 text-align: center;
233 font-size: 28px;
234 }
235
236 .box-container {
237 flex-direction: column;
238 margin: 0 .5em;
239 }
240
241 .box div {
242 font-size: 22px;
243 line-height: 22px;
244 padding-left: 8px;
245 font-weight: 700;
246 position: relative;
247 display: inline;
248 text-align: center;
249 }
250
251 .box {
252 text-align: left;
253 border-radius: calc(var(--box-round) / 2);
254 margin: 5px 0;
255 }
256}
257
b9f1cb69 258/* articles */
2ed0f35d 259h1 {
f38f696b 260 margin: 0;
2ed0f35d
S
261}
262
b9f1cb69 263.art-info {
ea0081b5 264 line-height: 1.6;
512215ac 265 display: flex;
512215ac 266 flex-direction: row;
ea0081b5 267 flex-wrap: wrap;
512215ac 268 justify-content: space-between;
ea0081b5 269 align-items: baseline;
2ed0f35d
S
270}
271
b7b20c22 272.art-info h1 {
b7b20c22 273 margin-top: 0;
ea0081b5 274 display: inline;
b7b20c22
EK
275}
276
b9f1cb69
EK
277.art-body {
278 margin-bottom: 1em;
279}
280
281.artlist {
00873aed 282 max-width: var(--max-width);
588c2afb 283 margin: 0 auto;
fd277af5
SB
284 margin-top: .5em;
285}
286
b9f1cb69 287.artlist .art-info:not(:first-child) {
545c8ea4 288 border-top: 1px solid var(--border-color);
2ed0f35d
S
289}
290
dbdcf68c 291.art-date {
ea0081b5
EK
292 display: inline-block;
293 text-align: baseline;
294 line-height: 1;
295 white-space: nowrap;
d1cee50f 296 color: var(--art-date-color);
512215ac
EK
297 font-feature-settings: "tnum";
298 font-variant-numeric: tabular-nums;
2ed0f35d
S
299}
300
b9f1cb69
EK
301.art-nav {
302 display: flex;
303 flex-direction: row;
304 justify-content: space-between;
305 width: 100%;
2ed0f35d
S
306}
307
d1cee50f 308@media (--max-md) {
4ec635fa
EK
309 .main.artlist {
310 padding-left: 0;
311 padding-right: 0;
312 }
313
512215ac 314 .artlist .art-info {
4ec635fa
EK
315 padding: 0 .75em;
316 }
317}
318
81cae952
EK
319/* faq */
320.faq-index {
321 list-style-type: none;
322 padding-left: 0;
323}
324
325.faq-index li {
326 font-size: 120%;
327}
328
2ed0f35d 329/* footer */
daf4b56e 330.footers {
28507109
EK
331 /*min-height: 30vh;*/
332 margin-top: -11rem;
333 min-height: 11rem;
daf4b56e
S
334}
335
2ed0f35d 336.footer {
f38f696b 337 background: var(--jumbotron-bg);
545c8ea4 338 color: var(--footer-text-color);
502cdd50 339 width: 100%;
f38f696b 340 margin-top: 2vh;
502cdd50 341 box-shadow: 0 -3px 5px rgba(150,150,150,.36);
342 min-height: 9.5rem;
343}
344
345.footer-container {
f38f696b 346 display: flex;
6c2065c4 347 flex-wrap: wrap;
f38f696b
EK
348 justify-content: space-between;
349 align-items: flex-start;
502cdd50 350 margin: 0 auto;
2ed0f35d
S
351}
352
353.footerchild {
502cdd50 354 margin: 0 2em;
f38f696b 355 margin-top: .5em;
51b09107 356 flex: 1 1 1px;
28507109
EK
357}
358
359.footerchild:last-child {
360 margin-bottom: 1em;
6c2065c4
EK
361}
362
51b09107
EV
363.footer-push {
364 margin-left: auto;
365 width: max-content;
2ed0f35d
S
366}
367
502cdd50 368footer a {
545c8ea4 369 color: var(--footer-link-color);
2ed0f35d
S
370}
371
502cdd50 372footer a:hover {
d1cee50f 373 color: var(--footer-hover-color);
ef54eedd
EK
374}
375
f8883dc0 376.footer h2 {
28507109 377 margin-bottom: .1em;
f38f696b 378 display: inline-block;
f8883dc0
S
379}
380
81cae952
EK
381.footerchild ul, .footerchild ul ul {
382 padding-left: 0;
f38f696b
EK
383 margin-left: 10px;
384 margin-right: 10px;
385 list-style-type: none;
2ed0f35d
S
386}
387
388.footerchild ul ul {
f38f696b 389 padding-left: 30px;
2ed0f35d
S
390}
391
d1cee50f 392@media (--max-md) {
a406ba13 393 .footer-container {
f38f696b
EK
394 flex-direction: column;
395 }
db572d44 396
a406ba13
EV
397 .footer-push {
398 margin-left: 0;
f38f696b 399 }
db572d44 400
f38f696b
EK
401 .footerchild ul li:last-child {
402 margin-bottom: .5em;
403 }
e9725e62 404
f38f696b
EK
405 .hdn {
406 display: none;
407 }
2ed0f35d
S
408}
409
502cdd50 410.footer h2, .footer h3 {
f38f696b
EK
411 margin-left: 10px;
412 margin-right: 10px;
2ed0f35d
S
413}
414
81cae952 415footer.copyright {
f38f696b 416 display: flex;
545c8ea4 417 flex-wrap: wrap;
f38f696b 418 justify-content: space-between;
545c8ea4
EK
419 background: var(--copyright-bg);
420 min-height: 1.5rem;
421 color: var(--copyright-text-color);
81cae952
EK
422 padding-left: .5em;
423 padding-right: .5em;
424 overflow: hidden;
db572d44
SB
425}
426
81cae952
EK
427footer.copyright div {
428 display: flex;
429 align-items: center;
430 height: 1.5rem;
431 line-height: 1.5rem;
432 vertical-align: top;
db572d44
SB
433}
434
81cae952
EK
435.copyright * {
436 margin: 0;
28507109 437 height: 1.5rem;
81cae952 438 line-height: 1.5rem;
df74dd1d
SB
439}
440
502cdd50 441.copyright .fa {
442 height: 100%;
5b76ff14
SB
443 vertical-align: top;
444 font-size: 1.4em;
502cdd50 445}
446
81cae952
EK
447.copyright .footer-link {
448 height: 28px;
f38f696b 449 margin-right: .5em;
81cae952
EK
450}
451
452.copyright img {
453 height: 1.5rem;
454 width: auto;
ebee5e25 455}