]>
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: #eee; | |
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 | } | |
88 | ||
89 | /* jumbotron */ | |
90 | .jumbotron { | |
91 | position: relative; | |
92 | width: 100%; | |
93 | margin-top: -16px; | |
94 | background: #000; | |
95 | background: var(--jumbotron-bg); | |
96 | box-shadow: 0 3px 5px rgba(150,150,150,.36); | |
97 | color: var(--jumbotron-text-color); | |
98 | } | |
99 | ||
100 | .child { | |
101 | text-align: center; | |
102 | margin: .5em; | |
103 | font-size: 32px; | |
104 | line-height: 48px; | |
105 | } | |
106 | ||
107 | .box-container { | |
108 | display: flex; | |
109 | flex-wrap: wrap; | |
110 | justify-content: space-around; | |
111 | align-items: stretch; | |
112 | } | |
113 | ||
114 | .box { | |
115 | text-align: center; | |
116 | text-decoration: none; | |
117 | color: var(--text-color); | |
118 | margin-bottom: 5px; | |
119 | flex-basis: 30%; | |
120 | border: 1px solid rgba(var(--border-color), 0.39); | |
121 | background-color: #fff; | |
122 | border-radius: var(--box-round); | |
123 | -webkit-border-radius: var(--box-round); | |
124 | -moz-border-radius: var(--box-round); | |
125 | } | |
126 | ||
127 | .box:hover,.box:active { | |
128 | background-color: var(--box-hover-color); | |
129 | } | |
130 | ||
131 | .fa-users { | |
132 | margin-top: 5px; | |
133 | } | |
134 | ||
135 | .fa-comment,.fa-question { | |
136 | margin-bottom: 5px; | |
137 | } | |
138 | ||
139 | .title { | |
140 | text-align: center; | |
141 | } | |
142 | ||
143 | /* articles feed */ | |
144 | h1 { | |
145 | margin: 0; | |
146 | } | |
147 | ||
148 | div.art { | |
149 | border-bottom: 1px solid rgba(var(--border-color),.3); | |
150 | ||
151 | } | |
152 | div.art:last-child { | |
153 | border-bottom: none; | |
154 | } | |
155 | ||
156 | b.art { | |
157 | margin-bottom: 0; | |
158 | font-size: 18px; | |
159 | } | |
160 | ||
161 | p.art { | |
162 | margin: 0; | |
163 | } | |
164 | ||
165 | p.art-ingress { | |
166 | font-style: italic; | |
167 | margin: 0; | |
168 | } | |
169 | ||
170 | .art-date { | |
171 | color: #ccc; | |
172 | margin: 0; | |
173 | } | |
174 | p.heading { | |
175 | white-space: nowrap; | |
176 | } | |
177 | p.art-link { | |
178 | margin-top: 0; | |
179 | } | |
180 | ||
181 | /* help */ | |
182 | .hmain { | |
183 | display: flex; | |
184 | flex-wrap: wrap; | |
185 | justify-content: space-around; | |
186 | align-items: stretch; | |
187 | } | |
188 | ||
189 | a.hchild { | |
190 | color: var(--text-color); | |
191 | /*height: 40px;*/ | |
192 | width: 95%; | |
193 | text-align: center; | |
194 | border-top: 1px solid rgba(var(--border-color),.6); | |
195 | border-left: 1px solid rgba(var(--border-color),.6); | |
196 | border-right: 1px solid rgba(var(--border-color),.6); | |
197 | } | |
198 | ||
199 | a.hchild:hover,a.hchild:active { | |
200 | background-color: var(--box-hover-color); | |
201 | } | |
202 | ||
203 | .hchild:first-child { | |
204 | margin-top: 10px; | |
205 | -webkit-border-top-left-radius: var(--box-round); | |
206 | -webkit-border-top-right-radius: var(--box-round); | |
207 | -moz-border-radius-topleft: var(--box-round); | |
208 | -moz-border-radius-topright: var(--box-round); | |
209 | border-top-left-radius: var(--box-round); | |
210 | border-top-right-radius: var(--box-round); | |
211 | } | |
212 | ||
213 | .hchild:last-child { | |
214 | margin-bottom: 10px; | |
215 | border-bottom: 1px solid rgba(var(--border-color),.6); | |
216 | -webkit-border-bottom-right-radius: var(--box-round); | |
217 | -webkit-border-bottom-left-radius: var(--box-round); | |
218 | -moz-border-radius-bottomright: var(--box-round); | |
219 | -moz-border-radius-bottomleft: var(--box-round); | |
220 | border-bottom-right-radius: var(--box-round); | |
221 | border-bottom-left-radius: var(--box-round); | |
222 | } | |
223 | ||
224 | /* footer */ | |
225 | .footers { | |
226 | min-height: 30vh; | |
227 | } | |
228 | .footer { | |
229 | background: var(--jumbotron-bg); | |
230 | color: rgba(var(--footer-text-color),.9); | |
231 | margin-top: 2vh; | |
232 | display: flex; | |
233 | flex-wrap: nowrap; | |
234 | min-height: 27vh; | |
235 | justify-content: space-between; | |
236 | align-items: flex-start; | |
237 | box-shadow: 0 -3px 5px rgba(150,150,150,.36); | |
238 | } | |
239 | ||
240 | .footerchild { | |
241 | margin-top: .5em; | |
242 | } | |
243 | ||
244 | .footer a { | |
245 | color: #000; | |
246 | } | |
247 | ||
248 | .footer h2 { | |
249 | margin-bottom: 9px; | |
250 | display: inline-block; | |
251 | } | |
252 | ||
253 | .footerchild ul, | |
254 | .footerchild ul ul { | |
255 | margin-left: 10px; | |
256 | margin-right: 10px; | |
257 | list-style-type: none; | |
258 | } | |
259 | ||
260 | .footerchild ul ul { | |
261 | padding-left: 30px; | |
262 | } | |
263 | ||
264 | @media all and (max-width: 500px) { | |
265 | .footer { | |
266 | flex-direction: column; | |
267 | } | |
268 | ||
269 | .footerchild { | |
270 | width: 100%; | |
271 | border-bottom: 1px solid rgba(var(--footer-border-color),.5); | |
272 | } | |
273 | ||
274 | .footerchild:last-child { | |
275 | border: none; | |
276 | } | |
277 | ||
278 | .footerchild ul li:last-child { | |
279 | margin-bottom: .5em; | |
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 | .copyright a img { | |
310 | height: 3vh; | |
311 | width: auto; | |
312 | } | |
313 | .copyright p { | |
314 | margin-bottom: 0; | |
315 | margin-top: 0; | |
316 | margin-left: .5em; | |
317 | margin-right: .5em; | |
318 | text-align: right; | |
319 | } | |
320 | @media all and (max-width: 500px) { | |
321 | .copyright { | |
322 | height: 5vh; | |
323 | } | |
324 | .copyright a img { | |
325 | height: 5vh; | |
326 | } | |
327 | } |