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