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