]> jfr.im git - irc/freenode/web-7.0.git/blame - css/style.css
Merge branch 'master' of https://github.com/freenode/web-7.0.git
[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;
a1ddf200
S
25 min-height: 100vh;
26 height: auto;
2ed0f35d
S
27}
28
29a {
6483962b 30 color: rgb(66,139,202);
2ed0f35d
S
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;
6483962b
S
75 -webkit-flex-wrap: nowrap;
76 -ms-flex-wrap: nowrap;
77 flex-wrap: nowrap;
2ed0f35d
S
78}
79
80.nlink {
81 text-decoration: none;
82 color: #000;
83}
84
85/* main */
86
87.container {
a1ddf200 88 padding: 50px 0 0;
2ed0f35d 89 width: 100%;
a1ddf200 90 min-height: 70vh;
2ed0f35d
S
91}
92
93.main {
94 margin-left: .5em;
dbdcf68c 95 margin-top: 1em;
2ed0f35d
S
96}
97
98/* jumbotron */
99
100.jumbotron {
101 position: relative;
2ed0f35d 102 width: 100%;
a1ddf200 103 margin-top: -16px;
2ed0f35d 104 background: #000;
e930ee51
S
105 background: rgb(238,238,238);
106 box-shadow: 0 3px 5px rgba(150,150,150,.36);
2ed0f35d 107 color: #333;
2ed0f35d
S
108}
109
110.child {
111 text-align: center;
dbdcf68c 112 margin: .5em;
a1ddf200
S
113 font-size: 32px;
114 line-height: 48px;
2ed0f35d
S
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%;
a1ddf200 142 border: 1px solid rgba(0,0,0, 0.39);
2ed0f35d
S
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
169h1 {
170 margin: 0;
171}
172
173div.art {
174 border-bottom: 1px solid rgba(0,0,0,.3);
175}
176
177div.art:last-child {
178 border-bottom: none;
179}
180
de6f54ba 181b.art {
2ed0f35d 182 margin-bottom: 0;
de6f54ba 183 font-size: 18px;
2ed0f35d
S
184}
185
186p.art {
187 margin: 0;
188}
189
190p.art-ingress {
191 font-style: italic;
192 margin: 0;
193}
194
dbdcf68c 195.art-date {
2ed0f35d
S
196 color: #ccc;
197 margin: 0;
198}
199
de6f54ba
S
200p.heading {
201 white-space: nowrap;
202}
203
2ed0f35d
S
204p.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
227a.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
237a.hchild:hover,
238a.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 {
e930ee51 266 background: rgb(238,238,238);
2ed0f35d 267 color: rgba(51,51,51,.9);
6483962b 268 margin-top: 1em;
2ed0f35d
S
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;
a1ddf200 276 min-height: 30vh;
2ed0f35d
S
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;
e930ee51 285 box-shadow: 0 -3px 5px rgba(150,150,150,.36);
2ed0f35d
S
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 {
28e33662
S
298 margin-left: 10px;
299 margin-right: 10px;
2ed0f35d
S
300 list-style-type: none;
301}
302
303.footerchild ul ul {
28e33662 304 padding-left: 30px;
2ed0f35d
S
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%;
f4e52bc0 318 border-bottom: 1px solid rgba(51,51,51,.5);
2ed0f35d
S
319 }
320
321 .footerchild:last-child {
322 border: none;
323 }
324
325 .footerchild ul li:last-child {
326 margin-bottom: .5em;
327 }
7a8140f6
S
328
329 .hdn {
330 display: none;
331 }
2ed0f35d
S
332}
333
334.footer h2,
335.footer h3 {
28e33662
S
336 margin-left: 10px;
337 margin-right: 10px;
2ed0f35d
S
338}
339
2ed0f35d
S
340.copyright {
341 display: -webkit-box;
342 display: -webkit-flex;
343 display: -ms-flexbox;
344 display: flex;
6483962b 345 height: 31px;
2ed0f35d
S
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;
e930ee51 357 background: rgba(170,178,171,.5);
e930ee51 358 color: rgba(0,0,0,.8);
2ed0f35d
S
359}
360
361a.copyright {
e930ee51 362 background: rgba(170,178,171,.5);
2ed0f35d
S
363 margin-bottom: 0;
364 margin-top: 0;
365 margin-left: .5em;
366 margin-right: .5em;
6483962b
S
367}
368
369.copyright p {
370 margin-bottom: 0;
371 margin-top: 0;
372 margin-left: .5em;
373 margin-right: .5em;
2ed0f35d 374}