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