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