]>
Commit | Line | Data |
---|---|---|
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: #eee; | |
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: center; | |
113 | text-decoration: none; | |
114 | color: var(--text-color); | |
115 | margin-bottom: 5px; | |
116 | flex-basis: 30%; | |
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 | ||
175 | p.art-link { | |
176 | margin-top: 0; | |
177 | } | |
178 | ||
179 | /* Article */ | |
180 | .art-full h1, | |
181 | .art-full h2, | |
182 | .art-full h3, | |
183 | .art-full h4 { | |
184 | line-height: 1.5em; | |
185 | } | |
186 | ||
187 | /* help */ | |
188 | .hmain { | |
189 | display: flex; | |
190 | flex-wrap: wrap; | |
191 | justify-content: space-around; | |
192 | align-items: stretch; | |
193 | } | |
194 | ||
195 | a.hchild { | |
196 | color: var(--text-color); | |
197 | /*height: 40px;*/ | |
198 | width: 95%; | |
199 | text-align: center; | |
200 | border-top: 1px solid rgba(var(--border-color),.6); | |
201 | border-left: 1px solid rgba(var(--border-color),.6); | |
202 | border-right: 1px solid rgba(var(--border-color),.6); | |
203 | } | |
204 | ||
205 | a.hchild:hover,a.hchild:active { | |
206 | background-color: var(--box-hover-color); | |
207 | } | |
208 | ||
209 | .hchild:first-child { | |
210 | margin-top: 10px; | |
211 | -webkit-border-top-left-radius: var(--box-round); | |
212 | -webkit-border-top-right-radius: var(--box-round); | |
213 | -moz-border-radius-topleft: var(--box-round); | |
214 | -moz-border-radius-topright: var(--box-round); | |
215 | border-top-left-radius: var(--box-round); | |
216 | border-top-right-radius: var(--box-round); | |
217 | } | |
218 | ||
219 | .hchild:last-child { | |
220 | margin-bottom: 10px; | |
221 | border-bottom: 1px solid rgba(var(--border-color),.6); | |
222 | -webkit-border-bottom-right-radius: var(--box-round); | |
223 | -webkit-border-bottom-left-radius: var(--box-round); | |
224 | -moz-border-radius-bottomright: var(--box-round); | |
225 | -moz-border-radius-bottomleft: var(--box-round); | |
226 | border-bottom-right-radius: var(--box-round); | |
227 | border-bottom-left-radius: var(--box-round); | |
228 | } | |
229 | ||
230 | /* footer */ | |
231 | .footers { | |
232 | min-height: 30vh; | |
233 | } | |
234 | ||
235 | .footer { | |
236 | background: var(--jumbotron-bg); | |
237 | color: rgba(var(--footer-text-color),.9); | |
238 | margin-top: 2vh; | |
239 | display: flex; | |
240 | flex-wrap: nowrap; | |
241 | min-height: 27vh; | |
242 | justify-content: space-between; | |
243 | align-items: flex-start; | |
244 | box-shadow: 0 -3px 5px rgba(150,150,150,.36); | |
245 | } | |
246 | ||
247 | .footerchild { | |
248 | margin-top: .5em; | |
249 | } | |
250 | ||
251 | .footer a { | |
252 | color: #000; | |
253 | } | |
254 | ||
255 | .footer h2 { | |
256 | margin-bottom: 9px; | |
257 | display: inline-block; | |
258 | } | |
259 | ||
260 | .footerchild ul,.footerchild ul ul { | |
261 | margin-left: 10px; | |
262 | margin-right: 10px; | |
263 | list-style-type: none; | |
264 | } | |
265 | ||
266 | .footerchild ul ul { | |
267 | padding-left: 30px; | |
268 | } | |
269 | ||
270 | @media all and (max-width: 500px) { | |
271 | .footer { | |
272 | flex-direction: column; | |
273 | } | |
274 | ||
275 | .footerchild { | |
276 | width: 100%; | |
277 | } | |
278 | ||
279 | .footerchild ul li:last-child { | |
280 | margin-bottom: .5em; | |
281 | } | |
282 | ||
283 | .hdn { | |
284 | display: none; | |
285 | } | |
286 | } | |
287 | ||
288 | .footer h2,.footer h3 { | |
289 | margin-left: 10px; | |
290 | margin-right: 10px; | |
291 | } | |
292 | ||
293 | .copyright { | |
294 | display: flex; | |
295 | flex-wrap: nowrap; | |
296 | justify-content: space-between; | |
297 | align-items: center; | |
298 | background: rgba(var(--copyright-bg),.5); | |
299 | height: 3vh; | |
300 | color: rgba(var(--copyright-text-color),.8); | |
301 | } | |
302 | ||
303 | a.copyright { | |
304 | background: rgba(var(--copyright-bg),.5); | |
305 | margin-bottom: 0; | |
306 | margin-top: 0; | |
307 | margin-left: .5em; | |
308 | margin-right: .5em; | |
309 | width: auto; | |
310 | height: auto; | |
311 | } | |
312 | ||
313 | .copyright a img { | |
314 | height: 3vh; | |
315 | width: auto; | |
316 | } | |
317 | ||
318 | .copyright p { | |
319 | margin-bottom: 0; | |
320 | margin-top: 0; | |
321 | margin-left: .5em; | |
322 | margin-right: .5em; | |
323 | text-align: right; | |
324 | } | |
325 | ||
326 | @media all and (max-width: 500px) { | |
327 | .copyright { | |
328 | height: 5vh; | |
329 | } | |
330 | ||
331 | .copyright a img { | |
332 | height: 5vh; | |
333 | } | |
334 | } |