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