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