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