]> jfr.im git - irc/freenode/web-7.0.git/blob - static/css/style.css
updated style
[irc/freenode/web-7.0.git] / static / css / style.css
1 /* vars */
2
3 :root {
4 /*--jumbotron-bg: 15,75,14;*/
5 /*--jumbotron-bg: rgba(75,235,74,.4);*/
6 /*--footer-link-color: 255,255,255;*/
7 /*--footer-text-color: 255,255,255;*/
8 /*--footer-border-color: 255,255,255;*/
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
21 body {
22 font-family: 'Open Sans';
23 color: #333;
24 font-size: 14px;
25 min-height: 100vh;
26 height: auto;
27 }
28
29 a {
30 color: rgb(66,139,202);
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;
75 -webkit-flex-wrap: nowrap;
76 -ms-flex-wrap: nowrap;
77 flex-wrap: nowrap;
78 }
79
80 .nlink {
81 text-decoration: none;
82 color: #000;
83 }
84
85 /* main */
86
87 .container {
88 padding: 50px 0 0;
89 width: 100%;
90 min-height: 68vh;
91 }
92
93 .main {
94 margin-left: .5em;
95 margin-top: 1em;
96 margin-bottom: 1em;
97 }
98
99 /* jumbotron */
100
101 .jumbotron {
102 position: relative;
103 width: 100%;
104 margin-top: -16px;
105 background: #000;
106 background: rgb(238,238,238);
107 box-shadow: 0 3px 5px rgba(150,150,150,.36);
108 color: #333;
109 }
110
111 .child {
112 text-align: center;
113 margin: .5em;
114 font-size: 32px;
115 line-height: 48px;
116 }
117
118 .box-container {
119 display: -webkit-box;
120 display: -webkit-flex;
121 display: -ms-flexbox;
122 display: flex;
123 -webkit-flex-wrap: wrap;
124 -ms-flex-wrap: wrap;
125 flex-wrap: wrap;
126 -webkit-justify-content: space-around;
127 -ms-flex-pack: distribute;
128 justify-content: space-around;
129 -webkit-box-align: stretch;
130 -webkit-align-items: stretch;
131 -ms-flex-align: stretch;
132 align-items: stretch;
133 }
134
135 .box {
136 text-align: center;
137 text-decoration: none;
138 color: #333;
139 margin-bottom: 5px;
140 -webkit-flex-basis: 30%;
141 -ms-flex-preferred-size: 30%;
142 flex-basis: 30%;
143 /* border: 1px solid rgba(var(--border-color), 0.39); */
144 background-color: #fff;
145 border-radius: 10px;
146 -webkit-border-radius: 10px;
147 -moz-border-radius: 10px;
148 }
149
150 .box:hover,
151 .box:active {
152 background-color: #eee;
153 }
154
155 .fa-users {
156 margin-top: 5px;
157 }
158
159 .fa-comment,
160 .fa-question {
161 margin-bottom: 5px;
162 }
163
164 .title {
165 text-align: center;
166 }
167
168 /* articles feed */
169
170 h1 {
171 margin: 0;
172 }
173
174 div.art {
175 border-bottom: 1px solid rgba(0,0,0,.3);
176 }
177
178 div.art:last-child {
179 border-bottom: none;
180 }
181
182 b.art {
183 margin-bottom: 0;
184 font-size: 18px;
185 }
186
187 p.art {
188 margin: 0;
189 }
190
191 p.art-ingress {
192 font-style: italic;
193 margin: 0;
194 }
195
196 .art-date {
197 color: #ccc;
198 margin: 0;
199 }
200
201 p.heading {
202 white-space: nowrap;
203 }
204
205 p.art-link {
206 margin-top: 0;
207 }
208
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
228 a.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
238 a.hchild:hover,
239 a.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
266 .footers {
267 min-height: 30vh;
268 }
269
270 .footer {
271 background: rgb(238,238,238);
272 color: rgba(51,51,51,.9);
273 margin-top: 2vh;
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;
281 min-height: 27vh;
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
301 .footer h2 {
302 margin-bottom: 9px;
303 display: inline-block;
304 }
305
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%;
328 }
329 }
330
331 .footerchild ul li:last-child {
332 margin-bottom: .5em;
333 }
334
335 .hdn {
336 display: none;
337 }