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