]> jfr.im git - irc/freenode/web-7.0.git/blame - css/style.css
Margin
[irc/freenode/web-7.0.git] / css / style.css
CommitLineData
2ed0f35d
S
1/* vars */
2
3:root {
4 /*--jumbotron-bg: 15,75,14;*/
e930ee51 5 /*--jumbotron-bg: rgba(75,235,74,.4);*/
2ed0f35d
S
6 /*--footer-link-color: 255,255,255;*/
7 /*--footer-text-color: 255,255,255;*/
f4e52bc0 8 /*--footer-border-color: 255,255,255;*/
2ed0f35d
S
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
21body {
22 font-family: 'Open Sans';
23 color: #333;
24 font-size: 14px;
25}
26
27a {
28 color: #000;
29 text-decoration: none;
30}
31
32/* navbar */
33
34.navbar {
35 width: 100%;
36 height: 50px;
37 background-color: #fff;
38 position: fixed;
39 left: 0;
40 right: 0;
41 top: 0;
42 display: -webkit-box;
43 display: -webkit-flex;
44 display: -ms-flexbox;
45 display: flex;
46 -webkit-flex-wrap: nowrap;
47 -ms-flex-wrap: nowrap;
48 flex-wrap: nowrap;
49 -webkit-box-pack: justify;
50 -webkit-justify-content: space-between;
51 -ms-flex-pack: justify;
52 justify-content: space-between;
53 -webkit-box-align: center;
54 -webkit-align-items: center;
55 -ms-flex-align: center;
56 align-items: center;
57 border-bottom: 1px solid rgba(0,0,0,.3);
58 z-index: 100;
59}
60
61.nlogo {
62 height: 40px;
63}
64
65.navlinks {
66 display: -webkit-box;
67 display: -webkit-flex;
68 display: -ms-flexbox;
69 display: flex;
70 -webkit-justify-content: space-around;
71 -ms-flex-pack: distribute;
72 justify-content: space-around;
73 fkex-wrap: nowrap;
74}
75
76.nlink {
77 text-decoration: none;
78 color: #000;
79}
80
81/* main */
82
83.container {
84 margin: 50px 0 0;
85 padding: 0;
86 width: 100%;
87 min-height: 100%;
88}
89
90.main {
91 margin-left: .5em;
92 /*margin-right: 0.5em;*/
93}
94
95/* jumbotron */
96
97.jumbotron {
98 position: relative;
2ed0f35d
S
99 width: 100%;
100 background: #000;
e930ee51
S
101 background: rgb(238,238,238);
102 box-shadow: 0 3px 5px rgba(150,150,150,.36);
2ed0f35d
S
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
171h1 {
172 margin: 0;
173}
174
175div.art {
176 border-bottom: 1px solid rgba(0,0,0,.3);
177}
178
179div.art:last-child {
180 border-bottom: none;
181}
182
183h3.art {
184 margin-bottom: 0;
185}
186
187p.art {
188 margin: 0;
189}
190
191p.art-ingress {
192 font-style: italic;
193 margin: 0;
194}
195
196p.art-date {
197 color: #ccc;
198 margin: 0;
199}
200
201p.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
224a.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
234a.hchild:hover,
235a.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 {
e930ee51 263 background: rgb(238,238,238);
2ed0f35d
S
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;
e930ee51 281 box-shadow: 0 -3px 5px rgba(150,150,150,.36);
2ed0f35d
S
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%;
f4e52bc0 322 border-bottom: 1px solid rgba(51,51,51,.5);
2ed0f35d
S
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;
e930ee51 363 background: rgba(170,178,171,.5);
2ed0f35d 364 height: 31px;
e930ee51 365 color: rgba(0,0,0,.8);
2ed0f35d
S
366}
367
368a.copyright {
e930ee51 369 background: rgba(170,178,171,.5);
2ed0f35d
S
370 margin-bottom: 0;
371 margin-top: 0;
372 margin-left: .5em;
373 margin-right: .5em;
374}