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