]> jfr.im git - irc/freenode/web-7.0.git/blame - static/css/style.css
fix article display
[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
50d68b4a
EK
131.main ul {
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
EK
173 margin-bottom: 5px;
174 padding: 5px;
175 flex-basis: 30%;
ef54eedd 176 background-color: var(--box-color);
f38f696b 177 border-radius: var(--box-round);
f38f696b
EK
178}
179
180.box:hover,.box:active {
181 background-color: var(--box-hover-color);
182}
183
184.box div{
f38f696b 185 position: relative;
d4b00db0 186 top: initial;
257112d0 187 font-size: 20px;
ef54eedd 188 font-weight: 600;
d4b00db0 189 line-height: 16px;
190 padding: 10px 0;
191 display: block;
e9725e62 192}
193
2ed0f35d 194.fa-users {
f38f696b 195 margin-top: 5px;
2ed0f35d
S
196}
197
f38f696b
EK
198.fa-comment,.fa-question {
199 margin-bottom: 5px;
2ed0f35d
S
200}
201
202.title {
f38f696b 203 text-align: center;
2ed0f35d
S
204}
205
b9f1cb69 206/* articles */
2ed0f35d 207h1 {
f38f696b 208 margin: 0;
2ed0f35d
S
209}
210
b9f1cb69 211.art-info {
512215ac
EK
212 display: flex;
213 flex-wrap: wrap;
214 flex-direction: row;
215 justify-content: space-between;
216 align-items: center;
b9f1cb69 217 line-height: 1.6;
2ed0f35d
S
218}
219
b7b20c22
EK
220.art-info h1 {
221 display: inline;
222 margin-top: 0;
223}
224
b9f1cb69
EK
225.art-body {
226 margin-bottom: 1em;
227}
228
229.artlist {
00873aed 230 max-width: var(--max-width);
588c2afb 231 margin: 0 auto;
fd277af5
SB
232 margin-top: .5em;
233}
234
b9f1cb69 235.artlist .art-info:not(:first-child) {
545c8ea4 236 border-top: 1px solid var(--border-color);
2ed0f35d
S
237}
238
dbdcf68c 239.art-date {
512215ac 240 display: block;
f38f696b 241 color: #ccc;
512215ac
EK
242 font-feature-settings: "tnum";
243 font-variant-numeric: tabular-nums;
244 min-width: max-content;
2ed0f35d
S
245}
246
b9f1cb69
EK
247.art-nav {
248 display: flex;
249 flex-direction: row;
250 justify-content: space-between;
251 width: 100%;
2ed0f35d
S
252}
253
4ec635fa
EK
254@media all and (max-width: 600px) {
255 .main.artlist {
256 padding-left: 0;
257 padding-right: 0;
258 }
259
512215ac 260 .artlist .art-info {
4ec635fa
EK
261 padding: 0 .75em;
262 }
263}
264
2ed0f35d 265/* help */
2ed0f35d 266.hmain {
f38f696b
EK
267 display: flex;
268 flex-wrap: wrap;
269 justify-content: space-around;
270 align-items: stretch;
2ed0f35d
S
271}
272
273a.hchild {
f38f696b
EK
274 color: var(--text-color);
275/*height: 40px;*/
276 width: 95%;
277 text-align: center;
545c8ea4
EK
278 border-top: 1px solid var(--border-color);
279 border-left: 1px solid var(--border-color);
280 border-right: 1px solid var(--border-color);
2ed0f35d
S
281}
282
f38f696b
EK
283a.hchild:hover,a.hchild:active {
284 background-color: var(--box-hover-color);
2ed0f35d
S
285}
286
287.hchild:first-child {
f38f696b
EK
288 margin-top: 10px;
289 -webkit-border-top-left-radius: var(--box-round);
290 -webkit-border-top-right-radius: var(--box-round);
291 -moz-border-radius-topleft: var(--box-round);
292 -moz-border-radius-topright: var(--box-round);
293 border-top-left-radius: var(--box-round);
294 border-top-right-radius: var(--box-round);
2ed0f35d
S
295}
296
297.hchild:last-child {
f38f696b 298 margin-bottom: 10px;
545c8ea4 299 border-bottom: 1px solid var(--border-color);
f38f696b
EK
300 -webkit-border-bottom-right-radius: var(--box-round);
301 -webkit-border-bottom-left-radius: var(--box-round);
302 -moz-border-radius-bottomright: var(--box-round);
303 -moz-border-radius-bottomleft: var(--box-round);
304 border-bottom-right-radius: var(--box-round);
305 border-bottom-left-radius: var(--box-round);
2ed0f35d
S
306}
307
308/* footer */
daf4b56e 309.footers {
28507109
EK
310 /*min-height: 30vh;*/
311 margin-top: -11rem;
312 min-height: 11rem;
daf4b56e
S
313}
314
2ed0f35d 315.footer {
f38f696b 316 background: var(--jumbotron-bg);
545c8ea4 317 color: var(--footer-text-color);
f38f696b
EK
318 margin-top: 2vh;
319 display: flex;
6c2065c4 320 flex-wrap: wrap;
f38f696b
EK
321 justify-content: space-between;
322 align-items: flex-start;
323 box-shadow: 0 -3px 5px rgba(150,150,150,.36);
28507109 324 min-height: 9.5rem;
2ed0f35d
S
325}
326
327.footerchild {
f38f696b 328 margin-top: .5em;
6c2065c4 329 flex: 1 1 1px;
28507109
EK
330 min-width: 12rem;
331}
332
333.footerchild:last-child {
334 margin-bottom: 1em;
6c2065c4
EK
335}
336
28507109
EK
337@media all and (max-width: 60rem) {
338 .footer-push {
339 margin-left: auto;
340 width: max-content;
341 }
2ed0f35d
S
342}
343
344.footer a {
545c8ea4 345 color: var(--footer-link-color);
2ed0f35d
S
346}
347
ef54eedd
EK
348.footer a:hover {
349 color: #fff;
350}
351
f8883dc0 352.footer h2 {
28507109 353 margin-bottom: .1em;
f38f696b 354 display: inline-block;
f8883dc0
S
355}
356
f38f696b
EK
357.footerchild ul,.footerchild ul ul {
358 margin-left: 10px;
359 margin-right: 10px;
360 list-style-type: none;
2ed0f35d
S
361}
362
363.footerchild ul ul {
f38f696b 364 padding-left: 30px;
2ed0f35d
S
365}
366
6c2065c4 367@media all and (max-width: 600px) {
f38f696b
EK
368 .footer {
369 flex-direction: column;
370 }
db572d44 371
f38f696b
EK
372 .footerchild {
373 width: 100%;
374 }
db572d44 375
6c2065c4
EK
376 .footer-push {
377 margin-left: 0;
378 }
379
f38f696b
EK
380 .footerchild ul li:last-child {
381 margin-bottom: .5em;
382 }
e9725e62 383
f38f696b
EK
384 .hdn {
385 display: none;
386 }
e9725e62 387
f38f696b
EK
388 .box {
389 text-align: center;
390 }
e9725e62 391
f38f696b
EK
392 .child {
393 font-size: 20px;
394 line-height: 30px;
395 padding: 10px 0 5px;
396 }
e9725e62 397
f38f696b
EK
398 .fa-4x {
399 padding: 0;
400 margin: 0;
d4b00db0 401 width: 60px;
402 text-align: center;
403 font-size: 28px;
f38f696b
EK
404 }
405
6c2065c4
EK
406 .box-container {
407 flex-direction: column;
408 margin: 0 .5em;
409 }
410
f38f696b 411 .box div {
d4b00db0 412 font-size: 22px;
413 line-height: 22px;
414 padding-left: 8px;
415 font-weight: 700;
f38f696b 416 position: relative;
d4b00db0 417 display: inline;
418 text-align: center;
419
f38f696b 420 }
d4b00db0 421
422 .box {
423 text-align: left;
424 border-radius: calc(var(--box-round) / 2);
425 margin: 5px 0;
426 }
2ed0f35d
S
427}
428
f38f696b
EK
429.footer h2,.footer h3 {
430 margin-left: 10px;
431 margin-right: 10px;
2ed0f35d
S
432}
433
db572d44 434.copyright {
f38f696b 435 display: flex;
545c8ea4 436 flex-wrap: wrap;
f38f696b
EK
437 justify-content: space-between;
438 align-items: center;
545c8ea4
EK
439 background: var(--copyright-bg);
440 min-height: 1.5rem;
441 color: var(--copyright-text-color);
db572d44
SB
442}
443
444a.copyright {
545c8ea4 445 background: var(--copyright-bg);
f38f696b
EK
446 margin-bottom: 0;
447 margin-top: 0;
448 margin-left: .5em;
449 margin-right: .5em;
450 width: auto;
451 height: auto;
db572d44
SB
452}
453
454.copyright a img {
28507109 455 height: 1.5rem;
f38f696b 456 width: auto;
df74dd1d
SB
457}
458
db572d44 459.copyright p {
f38f696b
EK
460 margin-bottom: 0;
461 margin-top: 0;
462 margin-left: .5em;
463 margin-right: .5em;
464 text-align: right;
ebee5e25 465}