]> jfr.im git - irc/freenode/web-7.0.git/blame - static/css/style.css
remove useless property
[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,
105.main p + p {
106 margin-top: .5em;
107}
108
2ed0f35d 109/* jumbotron */
2ed0f35d 110.jumbotron {
f38f696b
EK
111 position: relative;
112 width: 100%;
113 margin-top: -16px;
f38f696b 114 background: var(--jumbotron-bg);
545c8ea4 115 box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
f38f696b 116 color: var(--jumbotron-text-color);
545c8ea4 117 padding: 2em 0;
2ed0f35d
S
118}
119
120.child {
f38f696b
EK
121 text-align: center;
122 margin: .5em;
123 font-size: 32px;
124 line-height: 48px;
2ed0f35d
S
125}
126
127.box-container {
f38f696b
EK
128 display: flex;
129 flex-wrap: wrap;
130 justify-content: space-around;
131 align-items: stretch;
6c2065c4
EK
132 max-width: 800px;
133 margin: 0 auto;
2ed0f35d
S
134}
135
136.box {
6c2065c4 137 text-align: center;
f38f696b
EK
138 text-decoration: none;
139 color: var(--text-color);
140 margin-bottom: 5px;
141 padding: 5px;
142 flex-basis: 30%;
143 background-color: #fff;
144 border-radius: var(--box-round);
145 -webkit-border-radius: var(--box-round);
146 -moz-border-radius: var(--box-round);
147}
148
6c2065c4
EK
149.box span {
150 display: block;
151}
152
f38f696b
EK
153.box:hover,.box:active {
154 background-color: var(--box-hover-color);
155}
156
157.box div{
158 font-size: 28px;
159 line-height: 28px;
160 padding-left: 8px;
161 font-weight: 700;
162 position: relative;
163 display: inline;
164 top: -10px;
e9725e62 165}
166
2ed0f35d 167.fa-users {
f38f696b 168 margin-top: 5px;
2ed0f35d
S
169}
170
f38f696b
EK
171.fa-comment,.fa-question {
172 margin-bottom: 5px;
2ed0f35d
S
173}
174
e9725e62 175.fa-4x {
f38f696b 176 padding-left: 8px;
e9725e62 177}
178
2ed0f35d 179.title {
f38f696b 180 text-align: center;
2ed0f35d
S
181}
182
183/* articles feed */
2ed0f35d 184h1 {
f38f696b 185 margin: 0;
2ed0f35d
S
186}
187
188div.art {
6c2065c4 189 clear: right;
16a0ef30 190 min-height: 2em;
68db9c3c 191 flex-grow: 1;
2ed0f35d
S
192}
193
fd277af5 194div.artlist {
cb3e944d
SB
195 display: flex;
196 flex-wrap: wrap;
68db9c3c 197 justify-content: flex-start;
cb3e944d 198 align-items: stretch;
fd277af5
SB
199 margin-top: .5em;
200}
201
6c996256 202@media all and (min-width: 800px) {
c9fbd836
SB
203 div.artlist {
204 max-width: 50%;
205 margin-right: auto;
206 margin-left: auto;
207 }
208}
209
6c2065c4 210div.art:not(:first-child) {
545c8ea4 211 border-top: 1px solid var(--border-color);
2ed0f35d
S
212}
213
de6f54ba 214b.art {
f38f696b
EK
215 margin-bottom: 0;
216 font-size: 18px;
2ed0f35d
S
217}
218
219p.art {
f38f696b 220 margin: 0;
2ed0f35d
S
221}
222
223p.art-ingress {
f38f696b
EK
224 font-style: italic;
225 margin: 0;
2ed0f35d
S
226}
227
dbdcf68c 228.art-date {
6c2065c4 229 float: right;
f38f696b 230 color: #ccc;
6c2065c4 231 margin: 0 .5em;
2ed0f35d
S
232}
233
de6f54ba 234p.heading {
f38f696b 235 white-space: nowrap;
de6f54ba
S
236}
237
2ed0f35d 238p.art-link {
f38f696b 239 margin-top: 0;
2ed0f35d
S
240}
241
d1b78e0e 242/* Article */
f38f696b
EK
243.art-full h1,
244.art-full h2,
245.art-full h3,
246.art-full h4 {}
d1b78e0e 247
2ed0f35d 248/* help */
2ed0f35d 249.hmain {
f38f696b
EK
250 display: flex;
251 flex-wrap: wrap;
252 justify-content: space-around;
253 align-items: stretch;
2ed0f35d
S
254}
255
256a.hchild {
f38f696b
EK
257 color: var(--text-color);
258/*height: 40px;*/
259 width: 95%;
260 text-align: center;
545c8ea4
EK
261 border-top: 1px solid var(--border-color);
262 border-left: 1px solid var(--border-color);
263 border-right: 1px solid var(--border-color);
2ed0f35d
S
264}
265
f38f696b
EK
266a.hchild:hover,a.hchild:active {
267 background-color: var(--box-hover-color);
2ed0f35d
S
268}
269
270.hchild:first-child {
f38f696b
EK
271 margin-top: 10px;
272 -webkit-border-top-left-radius: var(--box-round);
273 -webkit-border-top-right-radius: var(--box-round);
274 -moz-border-radius-topleft: var(--box-round);
275 -moz-border-radius-topright: var(--box-round);
276 border-top-left-radius: var(--box-round);
277 border-top-right-radius: var(--box-round);
2ed0f35d
S
278}
279
280.hchild:last-child {
f38f696b 281 margin-bottom: 10px;
545c8ea4 282 border-bottom: 1px solid var(--border-color);
f38f696b
EK
283 -webkit-border-bottom-right-radius: var(--box-round);
284 -webkit-border-bottom-left-radius: var(--box-round);
285 -moz-border-radius-bottomright: var(--box-round);
286 -moz-border-radius-bottomleft: var(--box-round);
287 border-bottom-right-radius: var(--box-round);
288 border-bottom-left-radius: var(--box-round);
2ed0f35d
S
289}
290
291/* footer */
daf4b56e 292.footers {
28507109
EK
293 /*min-height: 30vh;*/
294 margin-top: -11rem;
295 min-height: 11rem;
daf4b56e
S
296}
297
2ed0f35d 298.footer {
f38f696b 299 background: var(--jumbotron-bg);
545c8ea4 300 color: var(--footer-text-color);
f38f696b
EK
301 margin-top: 2vh;
302 display: flex;
6c2065c4 303 flex-wrap: wrap;
f38f696b
EK
304 justify-content: space-between;
305 align-items: flex-start;
306 box-shadow: 0 -3px 5px rgba(150,150,150,.36);
28507109 307 min-height: 9.5rem;
2ed0f35d
S
308}
309
310.footerchild {
f38f696b 311 margin-top: .5em;
6c2065c4 312 flex: 1 1 1px;
28507109
EK
313 min-width: 12rem;
314}
315
316.footerchild:last-child {
317 margin-bottom: 1em;
6c2065c4
EK
318}
319
28507109
EK
320@media all and (max-width: 60rem) {
321 .footer-push {
322 margin-left: auto;
323 width: max-content;
324 }
2ed0f35d
S
325}
326
327.footer a {
545c8ea4 328 color: var(--footer-link-color);
2ed0f35d
S
329}
330
f8883dc0 331.footer h2 {
28507109 332 margin-bottom: .1em;
f38f696b 333 display: inline-block;
f8883dc0
S
334}
335
f38f696b
EK
336.footerchild ul,.footerchild ul ul {
337 margin-left: 10px;
338 margin-right: 10px;
339 list-style-type: none;
2ed0f35d
S
340}
341
342.footerchild ul ul {
f38f696b 343 padding-left: 30px;
2ed0f35d
S
344}
345
6c2065c4 346@media all and (max-width: 600px) {
f38f696b
EK
347 .footer {
348 flex-direction: column;
349 }
db572d44 350
f38f696b
EK
351 .footerchild {
352 width: 100%;
353 }
db572d44 354
6c2065c4
EK
355 .footer-push {
356 margin-left: 0;
357 }
358
f38f696b
EK
359 .footerchild ul li:last-child {
360 margin-bottom: .5em;
361 }
e9725e62 362
f38f696b
EK
363 .hdn {
364 display: none;
365 }
e9725e62 366
f38f696b
EK
367 .box {
368 text-align: center;
369 }
e9725e62 370
f38f696b
EK
371 .child {
372 font-size: 20px;
373 line-height: 30px;
374 padding: 10px 0 5px;
375 }
e9725e62 376
f38f696b
EK
377 .fa-4x {
378 padding: 0;
379 margin: 0;
380 }
381
6c2065c4
EK
382 .box-container {
383 flex-direction: column;
384 margin: 0 .5em;
385 }
386
f38f696b
EK
387 .box div {
388 position: relative;
389 top: initial;
390 font-size: 16px;
391 font-weight: normal;
392 line-height: 16px;
393 padding: 10px 0;
394 display: block;
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}