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