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