]>
Commit | Line | Data |
---|---|---|
df74dd1d SB |
1 | /* vars */ |
2 | :root { | |
3 | --navbar-bg: #fff; | |
ce9965da | 4 | --jumbotron-bg: #eee; |
df74dd1d SB |
5 | --jumbotron-bg-fall: 65,225,64; |
6 | --copyright-bg: 170,178,171; | |
7 | --link-color: 66,139,202; | |
df74dd1d SB |
8 | --footer-link-color: 51,51,51; |
9 | --nlink-col: #000; | |
10 | --text-color: #333; | |
df74dd1d SB |
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; | |
df74dd1d SB |
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 | } | |
ce9965da | 26 | |
df74dd1d SB |
27 | /* global */ |
28 | body { | |
29 | font-family: 'Open Sans'; | |
30 | color: var(--text-color); | |
31 | font-size: 14px; | |
f56d12fd SB |
32 | min-height: 100vh; |
33 | height: auto; | |
df74dd1d SB |
34 | } |
35 | ||
36 | a { | |
d1b78e0e | 37 | color: rgb(var(--link-color)); |
df74dd1d SB |
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; | |
ee65a629 | 65 | flex-wrap: nowrap; |
df74dd1d SB |
66 | } |
67 | ||
68 | .nlink { | |
69 | text-decoration: none; | |
70 | color: var(--nlink-col); | |
71 | } | |
72 | ||
73 | /* main */ | |
74 | .container { | |
f56d12fd | 75 | padding: 50px 0 0; |
df74dd1d | 76 | width: 100%; |
c1107eb0 | 77 | min-height: 68vh; |
df74dd1d SB |
78 | } |
79 | ||
80 | .main { | |
81 | margin-left: .5em; | |
82 | margin-top: 1em; | |
c1107eb0 | 83 | margin-bottom: 1em; |
df74dd1d SB |
84 | } |
85 | ||
86 | /* jumbotron */ | |
87 | .jumbotron { | |
88 | position: relative; | |
89 | width: 100%; | |
f56d12fd | 90 | margin-top: -16px; |
df74dd1d SB |
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; | |
f56d12fd SB |
100 | font-size: 32px; |
101 | line-height: 48px; | |
df74dd1d SB |
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; | |
ce9965da | 118 | border-radius: var(--box-round); |
df74dd1d SB |
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); | |
df74dd1d | 146 | } |
ce9965da | 147 | |
df74dd1d SB |
148 | div.art:last-child { |
149 | border-bottom: none; | |
150 | } | |
151 | ||
f56d12fd | 152 | b.art { |
df74dd1d | 153 | margin-bottom: 0; |
f56d12fd | 154 | font-size: 18px; |
df74dd1d SB |
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 | } | |
ce9965da | 170 | |
f56d12fd SB |
171 | p.heading { |
172 | white-space: nowrap; | |
173 | } | |
ce9965da | 174 | |
df74dd1d SB |
175 | p.art-link { |
176 | margin-top: 0; | |
177 | } | |
178 | ||
d1b78e0e SB |
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 | ||
df74dd1d SB |
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 */ | |
c1107eb0 SB |
231 | .footers { |
232 | min-height: 30vh; | |
233 | } | |
ce9965da | 234 | |
df74dd1d SB |
235 | .footer { |
236 | background: var(--jumbotron-bg); | |
237 | color: rgba(var(--footer-text-color),.9); | |
c1107eb0 | 238 | margin-top: 2vh; |
df74dd1d SB |
239 | display: flex; |
240 | flex-wrap: nowrap; | |
c1107eb0 | 241 | min-height: 27vh; |
df74dd1d SB |
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 | ||
c1107eb0 SB |
255 | .footer h2 { |
256 | margin-bottom: 9px; | |
257 | display: inline-block; | |
258 | } | |
259 | ||
ce9965da | 260 | .footerchild ul,.footerchild ul ul { |
df74dd1d SB |
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%; | |
df74dd1d | 277 | } |
ce9965da | 278 | |
df74dd1d SB |
279 | .footerchild ul li:last-child { |
280 | margin-bottom: .5em; | |
281 | } | |
ce9965da | 282 | |
df74dd1d | 283 | .hdn { |
ce9965da | 284 | display: none; |
df74dd1d SB |
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); | |
c1107eb0 | 299 | height: 3vh; |
df74dd1d SB |
300 | color: rgba(var(--copyright-text-color),.8); |
301 | } | |
ce9965da | 302 | |
df74dd1d SB |
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; | |
c1107eb0 SB |
309 | width: auto; |
310 | height: auto; | |
311 | } | |
ce9965da | 312 | |
c1107eb0 SB |
313 | .copyright a img { |
314 | height: 3vh; | |
315 | width: auto; | |
f56d12fd | 316 | } |
ce9965da | 317 | |
ee65a629 SB |
318 | .copyright p { |
319 | margin-bottom: 0; | |
320 | margin-top: 0; | |
321 | margin-left: .5em; | |
322 | margin-right: .5em; | |
c1107eb0 SB |
323 | text-align: right; |
324 | } | |
ce9965da | 325 | |
c1107eb0 SB |
326 | @media all and (max-width: 500px) { |
327 | .copyright { | |
328 | height: 5vh; | |
329 | } | |
ce9965da | 330 | |
c1107eb0 SB |
331 | .copyright a img { |
332 | height: 5vh; | |
333 | } | |
ce9965da | 334 | } |