]> jfr.im git - irc/freenode/web-7.0.git/blob - static/css/style.css
4e3cb22929dccb17fd761725f204bfdc9a8b8b97
[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: 66,139,202;
7 --footer-link-color: #ddd;
8 --nlink-col: #000;
9 --text-color: #333;
10 --footer-text-color: #eee;
11 --copyright-text-color: #ccc;
12 --jumbotron-text-color: #eee;
13 --border-color: #292f2f;
14 --box-hover-color: #ddd;
15 --box-round: 10px;
16 --max-width: 800px;
17 }
18
19 /* reset css for browser compat */
20 * {
21 margin: 0;
22 padding: 0;
23 box-sizing: border-box;
24 }
25
26 /* global */
27 body {
28 font-family: 'Open Sans';
29 color: var(--text-color);
30 font-size: 14px;
31 min-height: 100vh;
32 height: auto;
33 }
34
35 a {
36 color: rgb(var(--link-color));
37 text-decoration: none;
38 }
39
40 /* navbar */
41 .navbar {
42 width: 100%;
43 height: 50px;
44 background-color: var(--navbar-bg);
45 box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
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;
54 border-bottom: 1px solid var(--border-color);
55 z-index: 100;
56 }
57
58 @media all and (max-width: 600px) {
59 .navbar {
60 position: absolute;
61 }
62 }
63
64 .navbar a {
65 height: 40px;
66 }
67
68 a.nav-light {
69 background-color: #eee;
70 height: 44px;
71 padding: 2px;
72 margin-right: 3px;
73 }
74
75 .nlogo {
76 height: 40px;
77 }
78
79 .navlinks {
80 display: flex;
81 justify-content: space-around;
82 flex-wrap: nowrap;
83 }
84
85 .nlink {
86 text-decoration: none;
87 color: var(--nlink-col);
88 }
89
90 /* main */
91 .container {
92 padding: 50px 0 0;
93 width: 100%;
94 min-height: 98vh;
95 padding-bottom: 11.5rem;
96 }
97
98 .main {
99 margin: 0 auto;
100 margin-top: .75em;
101 max-width: var(--max-width);
102 }
103
104 .main h1,
105 .main h2,
106 .main h3,
107 .main li,
108 .main p + p,
109 .main ul + p {
110 margin-top: .5em;
111 }
112
113 .main ul {
114 padding-left: 2em;
115 list-style-type: disc;
116 }
117
118 /* jumbotron */
119 .jumbotron {
120 position: relative;
121 width: 100%;
122 margin-top: -16px;
123 background: var(--jumbotron-bg);
124 box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
125 color: var(--jumbotron-text-color);
126 padding: 2em 0;
127 }
128
129 .child {
130 text-align: center;
131 margin: .5em;
132 font-size: 32px;
133 line-height: 48px;
134 }
135
136 .box-container {
137 display: flex;
138 flex-wrap: wrap;
139 justify-content: space-around;
140 align-items: stretch;
141 max-width: 800px;
142 margin: 0 auto;
143 }
144
145 .box {
146 text-align: center;
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{
163 position: relative;
164 top: initial;
165 font-size: 20px;
166 font-weight: normal;
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 h2 {
327 margin-bottom: .1em;
328 display: inline-block;
329 }
330
331 .footerchild ul,.footerchild ul ul {
332 margin-left: 10px;
333 margin-right: 10px;
334 list-style-type: none;
335 }
336
337 .footerchild ul ul {
338 padding-left: 30px;
339 }
340
341 @media all and (max-width: 600px) {
342 .footer {
343 flex-direction: column;
344 }
345
346 .footerchild {
347 width: 100%;
348 }
349
350 .footer-push {
351 margin-left: 0;
352 }
353
354 .footerchild ul li:last-child {
355 margin-bottom: .5em;
356 }
357
358 .hdn {
359 display: none;
360 }
361
362 .box {
363 text-align: center;
364 }
365
366 .child {
367 font-size: 20px;
368 line-height: 30px;
369 padding: 10px 0 5px;
370 }
371
372 .fa-4x {
373 padding: 0;
374 margin: 0;
375 width: 60px;
376 text-align: center;
377 font-size: 28px;
378 }
379
380 .box-container {
381 flex-direction: column;
382 margin: 0 .5em;
383 }
384
385 .box div {
386 font-size: 22px;
387 line-height: 22px;
388 padding-left: 8px;
389 font-weight: 700;
390 position: relative;
391 display: inline;
392 text-align: center;
393
394 }
395
396 .box {
397 text-align: left;
398 border-radius: calc(var(--box-round) / 2);
399 margin: 5px 0;
400 }
401
402 .main {
403 margin: .75em .75em;
404 }
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 }