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