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