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