]> jfr.im git - irc/freenode/web-7.0.git/blob - css/style.css
Fixes
[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 .footer {
266 background: rgb(238,238,238);
267 color: rgba(51,51,51,.9);
268 margin-top: 1em;
269 display: -webkit-box;
270 display: -webkit-flex;
271 display: -ms-flexbox;
272 display: flex;
273 -webkit-flex-wrap: nowrap;
274 -ms-flex-wrap: nowrap;
275 flex-wrap: nowrap;
276 min-height: 30vh;
277 -webkit-box-pack: justify;
278 -webkit-justify-content: space-between;
279 -ms-flex-pack: justify;
280 justify-content: space-between;
281 -webkit-box-align: start;
282 -webkit-align-items: flex-start;
283 -ms-flex-align: start;
284 align-items: flex-start;
285 box-shadow: 0 -3px 5px rgba(150,150,150,.36);
286 }
287
288 .footerchild {
289 margin-top: .5em;
290 }
291
292 .footer a {
293 color: #000;
294 }
295
296 .footerchild ul,
297 .footerchild ul ul {
298 margin-left: 10px;
299 margin-right: 10px;
300 list-style-type: none;
301 }
302
303 .footerchild ul ul {
304 padding-left: 30px;
305 }
306
307 @media all and (max-width: 500px) {
308 .footer {
309 -webkit-box-orient: vertical;
310 -webkit-box-direction: normal;
311 -webkit-flex-direction: column;
312 -ms-flex-direction: column;
313 flex-direction: column;
314 }
315
316 .footerchild {
317 width: 100%;
318 border-bottom: 1px solid rgba(51,51,51,.5);
319 }
320
321 .footerchild:last-child {
322 border: none;
323 }
324
325 .footerchild ul li:last-child {
326 margin-bottom: .5em;
327 }
328
329 .hdn {
330 display: none;
331 }
332 }
333
334 .footer h2,
335 .footer h3 {
336 margin-left: 10px;
337 margin-right: 10px;
338 }
339
340 .copyright {
341 display: -webkit-box;
342 display: -webkit-flex;
343 display: -ms-flexbox;
344 display: flex;
345 height: 31px;
346 -webkit-flex-wrap: nowrap;
347 -ms-flex-wrap: nowrap;
348 flex-wrap: nowrap;
349 -webkit-box-pack: justify;
350 -webkit-justify-content: space-between;
351 -ms-flex-pack: justify;
352 justify-content: space-between;
353 -webkit-box-align: center;
354 -webkit-align-items: center;
355 -ms-flex-align: center;
356 align-items: center;
357 background: rgba(170,178,171,.5);
358 color: rgba(0,0,0,.8);
359 }
360
361 a.copyright {
362 background: rgba(170,178,171,.5);
363 margin-bottom: 0;
364 margin-top: 0;
365 margin-left: .5em;
366 margin-right: .5em;
367 }
368
369 .copyright p {
370 margin-bottom: 0;
371 margin-top: 0;
372 margin-left: .5em;
373 margin-right: .5em;
374 }