]> jfr.im git - irc/freenode/web-7.0.git/blame - static/css/style.css
make news post names slightly more sensible
[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;
4f236e86 16 --max-width: 800px;
f38f696b 17}
2ed0f35d 18
2ed0f35d 19/* reset css for browser compat */
2ed0f35d 20* {
f38f696b
EK
21 margin: 0;
22 padding: 0;
23 box-sizing: border-box;
2ed0f35d
S
24}
25
26/* global */
2ed0f35d 27body {
f38f696b
EK
28 font-family: 'Open Sans';
29 color: var(--text-color);
30 font-size: 14px;
31 min-height: 100vh;
32 height: auto;
2ed0f35d
S
33}
34
35a {
f38f696b
EK
36 color: rgb(var(--link-color));
37 text-decoration: none;
2ed0f35d
S
38}
39
40/* navbar */
2ed0f35d 41.navbar {
f38f696b
EK
42 width: 100%;
43 height: 50px;
44 background-color: var(--navbar-bg);
545c8ea4 45 box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
f38f696b
EK
46 position: fixed;
47 left: 0;
48 right: 0;
49 top: 0;
50 display: flex;
51 flex-wrap: nowrap;
52 justify-content: space-between;
53 align-items: center;
545c8ea4 54 border-bottom: 1px solid var(--border-color);
f38f696b 55 z-index: 100;
2ed0f35d
S
56}
57
545c8ea4
EK
58@media all and (max-width: 600px) {
59 .navbar {
60 position: absolute;
61 }
62}
63
64.navbar a {
65 height: 40px;
66}
67
68a.nav-light {
69 background-color: #eee;
70 height: 44px;
71 padding: 2px;
72 margin-right: 3px;
73}
74
2ed0f35d 75.nlogo {
f38f696b 76 height: 40px;
2ed0f35d
S
77}
78
79.navlinks {
f38f696b
EK
80 display: flex;
81 justify-content: space-around;
82 flex-wrap: nowrap;
2ed0f35d
S
83}
84
85.nlink {
f38f696b
EK
86 text-decoration: none;
87 color: var(--nlink-col);
2ed0f35d
S
88}
89
90/* main */
2ed0f35d 91.container {
f38f696b
EK
92 padding: 50px 0 0;
93 width: 100%;
28507109
EK
94 min-height: 98vh;
95 padding-bottom: 11.5rem;
2ed0f35d
S
96}
97
98.main {
4f236e86 99 margin: 0 auto;
949bf01c 100 margin-top: .75em;
4f236e86 101 max-width: var(--max-width);
2ed0f35d
S
102}
103
0e9ffab7
EK
104.main h1,
105.main h2,
106.main h3,
50d68b4a
EK
107.main li,
108.main p + p,
109.main ul + p {
0e9ffab7
EK
110 margin-top: .5em;
111}
112
50d68b4a
EK
113.main ul {
114 padding-left: 2em;
115 list-style-type: disc;
116}
117
2ed0f35d 118/* jumbotron */
2ed0f35d 119.jumbotron {
f38f696b
EK
120 position: relative;
121 width: 100%;
122 margin-top: -16px;
f38f696b 123 background: var(--jumbotron-bg);
545c8ea4 124 box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
f38f696b 125 color: var(--jumbotron-text-color);
545c8ea4 126 padding: 2em 0;
2ed0f35d
S
127}
128
129.child {
f38f696b
EK
130 text-align: center;
131 margin: .5em;
132 font-size: 32px;
133 line-height: 48px;
2ed0f35d
S
134}
135
136.box-container {
f38f696b
EK
137 display: flex;
138 flex-wrap: wrap;
139 justify-content: space-around;
140 align-items: stretch;
6c2065c4
EK
141 max-width: 800px;
142 margin: 0 auto;
2ed0f35d
S
143}
144
145.box {
6c2065c4 146 text-align: center;
f38f696b
EK
147 text-decoration: none;
148 color: var(--text-color);
149 margin-bottom: 5px;
150 padding: 5px;
151 flex-basis: 30%;
152 background-color: #fff;
153 border-radius: var(--box-round);
154 -webkit-border-radius: var(--box-round);
155 -moz-border-radius: var(--box-round);
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;
d4b00db0 166 font-weight: normal;
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
f8883dc0 326.footer h2 {
28507109 327 margin-bottom: .1em;
f38f696b 328 display: inline-block;
f8883dc0
S
329}
330
f38f696b
EK
331.footerchild ul,.footerchild ul ul {
332 margin-left: 10px;
333 margin-right: 10px;
334 list-style-type: none;
2ed0f35d
S
335}
336
337.footerchild ul ul {
f38f696b 338 padding-left: 30px;
2ed0f35d
S
339}
340
6c2065c4 341@media all and (max-width: 600px) {
f38f696b
EK
342 .footer {
343 flex-direction: column;
344 }
db572d44 345
f38f696b
EK
346 .footerchild {
347 width: 100%;
348 }
db572d44 349
6c2065c4
EK
350 .footer-push {
351 margin-left: 0;
352 }
353
f38f696b
EK
354 .footerchild ul li:last-child {
355 margin-bottom: .5em;
356 }
e9725e62 357
f38f696b
EK
358 .hdn {
359 display: none;
360 }
e9725e62 361
f38f696b
EK
362 .box {
363 text-align: center;
364 }
e9725e62 365
f38f696b
EK
366 .child {
367 font-size: 20px;
368 line-height: 30px;
369 padding: 10px 0 5px;
370 }
e9725e62 371
f38f696b
EK
372 .fa-4x {
373 padding: 0;
374 margin: 0;
d4b00db0 375 width: 60px;
376 text-align: center;
377 font-size: 28px;
f38f696b
EK
378 }
379
6c2065c4
EK
380 .box-container {
381 flex-direction: column;
382 margin: 0 .5em;
383 }
384
f38f696b 385 .box div {
d4b00db0 386 font-size: 22px;
387 line-height: 22px;
388 padding-left: 8px;
389 font-weight: 700;
f38f696b 390 position: relative;
d4b00db0 391 display: inline;
392 text-align: center;
393
f38f696b 394 }
d4b00db0 395
396 .box {
397 text-align: left;
398 border-radius: calc(var(--box-round) / 2);
399 margin: 5px 0;
400 }
401
4f236e86 402 .main {
403 margin: .75em .75em;
404 }
405
2ed0f35d
S
406}
407
f38f696b
EK
408.footer h2,.footer h3 {
409 margin-left: 10px;
410 margin-right: 10px;
2ed0f35d
S
411}
412
db572d44 413.copyright {
f38f696b 414 display: flex;
545c8ea4 415 flex-wrap: wrap;
f38f696b
EK
416 justify-content: space-between;
417 align-items: center;
545c8ea4
EK
418 background: var(--copyright-bg);
419 min-height: 1.5rem;
420 color: var(--copyright-text-color);
db572d44
SB
421}
422
423a.copyright {
545c8ea4 424 background: var(--copyright-bg);
f38f696b
EK
425 margin-bottom: 0;
426 margin-top: 0;
427 margin-left: .5em;
428 margin-right: .5em;
429 width: auto;
430 height: auto;
db572d44
SB
431}
432
433.copyright a img {
28507109 434 height: 1.5rem;
f38f696b 435 width: auto;
df74dd1d
SB
436}
437
db572d44 438.copyright p {
f38f696b
EK
439 margin-bottom: 0;
440 margin-top: 0;
441 margin-left: .5em;
442 margin-right: .5em;
443 text-align: right;
ebee5e25 444}