]>
Commit | Line | Data |
---|---|---|
df74dd1d SB |
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 | ||
32 | /* global */ | |
33 | body { | |
34 | font-family: 'Open Sans'; | |
35 | color: var(--text-color); | |
36 | font-size: 14px; | |
37 | } | |
38 | ||
39 | a { | |
40 | color: #000; | |
41 | text-decoration: none; | |
42 | } | |
43 | ||
44 | /* navbar */ | |
45 | .navbar { | |
46 | width: 100%; | |
47 | height: 50px; | |
48 | background-color: var(--navbar-bg); | |
49 | position: fixed; | |
50 | left: 0; | |
51 | right: 0; | |
52 | top: 0; | |
53 | display: flex; | |
54 | flex-wrap: nowrap; | |
55 | justify-content: space-between; | |
56 | align-items: center; | |
57 | border-bottom: 1px solid rgba(var(--border-color),.3); | |
58 | z-index: 100; | |
59 | } | |
60 | ||
61 | .nlogo { | |
62 | height: 40px; | |
63 | } | |
64 | ||
65 | .navlinks { | |
66 | display: flex; | |
67 | justify-content: space-around; | |
68 | fkex-wrap: nowrap; | |
69 | } | |
70 | ||
71 | .nlink { | |
72 | text-decoration: none; | |
73 | color: var(--nlink-col); | |
74 | } | |
75 | ||
76 | /* main */ | |
77 | .container { | |
78 | margin: 50px 0 0; | |
79 | padding: 0; | |
80 | width: 100%; | |
81 | min-height: 100%; | |
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: 0; | |
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 | } | |
104 | ||
105 | .box-container { | |
106 | display: flex; | |
107 | flex-wrap: wrap; | |
108 | justify-content: space-around; | |
109 | align-items: stretch; | |
110 | } | |
111 | ||
112 | .box { | |
113 | text-align: center; | |
114 | text-decoration: none; | |
115 | color: var(--text-color); | |
116 | margin-bottom: 5px; | |
117 | flex-basis: 30%; | |
118 | background-color: #fff; | |
119 | border-radius: var(--box-round); | |
120 | -webkit-border-radius: var(--box-round); | |
121 | -moz-border-radius: var(--box-round); | |
122 | } | |
123 | ||
124 | .box:hover,.box:active { | |
125 | background-color: var(--box-hover-color); | |
126 | } | |
127 | ||
128 | .fa-users { | |
129 | margin-top: 5px; | |
130 | } | |
131 | ||
132 | .fa-comment,.fa-question { | |
133 | margin-bottom: 5px; | |
134 | } | |
135 | ||
136 | .title { | |
137 | text-align: center; | |
138 | } | |
139 | ||
140 | /* articles feed */ | |
141 | h1 { | |
142 | margin: 0; | |
143 | } | |
144 | ||
145 | div.art { | |
146 | border-bottom: 1px solid rgba(var(--border-color),.3); | |
147 | ||
148 | } | |
149 | div.art:last-child { | |
150 | border-bottom: none; | |
151 | } | |
152 | ||
153 | h3.art { | |
154 | margin-bottom: 0; | |
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.art-link { | |
172 | margin-top: 0; | |
173 | } | |
174 | ||
175 | /* help */ | |
176 | .hmain { | |
177 | display: flex; | |
178 | flex-wrap: wrap; | |
179 | justify-content: space-around; | |
180 | align-items: stretch; | |
181 | } | |
182 | ||
183 | a.hchild { | |
184 | color: var(--text-color); | |
185 | /*height: 40px;*/ | |
186 | width: 95%; | |
187 | text-align: center; | |
188 | border-top: 1px solid rgba(var(--border-color),.6); | |
189 | border-left: 1px solid rgba(var(--border-color),.6); | |
190 | border-right: 1px solid rgba(var(--border-color),.6); | |
191 | } | |
192 | ||
193 | a.hchild:hover,a.hchild:active { | |
194 | background-color: var(--box-hover-color); | |
195 | } | |
196 | ||
197 | .hchild:first-child { | |
198 | margin-top: 10px; | |
199 | -webkit-border-top-left-radius: var(--box-round); | |
200 | -webkit-border-top-right-radius: var(--box-round); | |
201 | -moz-border-radius-topleft: var(--box-round); | |
202 | -moz-border-radius-topright: var(--box-round); | |
203 | border-top-left-radius: var(--box-round); | |
204 | border-top-right-radius: var(--box-round); | |
205 | } | |
206 | ||
207 | .hchild:last-child { | |
208 | margin-bottom: 10px; | |
209 | border-bottom: 1px solid rgba(var(--border-color),.6); | |
210 | -webkit-border-bottom-right-radius: var(--box-round); | |
211 | -webkit-border-bottom-left-radius: var(--box-round); | |
212 | -moz-border-radius-bottomright: var(--box-round); | |
213 | -moz-border-radius-bottomleft: var(--box-round); | |
214 | border-bottom-right-radius: var(--box-round); | |
215 | border-bottom-left-radius: var(--box-round); | |
216 | } | |
217 | ||
218 | /* footer */ | |
219 | .footer { | |
220 | background: var(--jumbotron-bg); | |
221 | color: rgba(var(--footer-text-color),.9); | |
222 | margin-top: 1em; | |
223 | display: flex; | |
224 | flex-wrap: nowrap; | |
225 | justify-content: space-between; | |
226 | align-items: flex-start; | |
227 | box-shadow: 0 -3px 5px rgba(150,150,150,.36); | |
228 | } | |
229 | ||
230 | .footerchild { | |
231 | margin-top: .5em; | |
232 | } | |
233 | ||
234 | .footer a { | |
235 | color: #000; | |
236 | } | |
237 | ||
238 | .footerchild ul, | |
239 | .footerchild ul ul { | |
240 | margin-left: 10px; | |
241 | margin-right: 10px; | |
242 | list-style-type: none; | |
243 | } | |
244 | ||
245 | .footerchild ul ul { | |
246 | padding-left: 30px; | |
247 | } | |
248 | ||
249 | @media all and (max-width: 500px) { | |
250 | .footer { | |
251 | flex-direction: column; | |
252 | } | |
253 | ||
254 | .footerchild { | |
255 | width: 100%; | |
256 | border-bottom: 1px solid rgba(var(--footer-border-color),.5); | |
257 | } | |
258 | ||
259 | .footerchild:last-child { | |
260 | border: none; | |
261 | } | |
262 | ||
263 | .footerchild ul li:last-child { | |
264 | margin-bottom: .5em; | |
265 | } | |
266 | .hdn { | |
267 | display: none; | |
268 | } | |
269 | } | |
270 | ||
271 | .footer h2,.footer h3 { | |
272 | margin-left: 10px; | |
273 | margin-right: 10px; | |
274 | } | |
275 | ||
276 | .copyright { | |
277 | display: flex; | |
278 | flex-wrap: nowrap; | |
279 | justify-content: space-between; | |
280 | align-items: center; | |
281 | background: rgba(var(--copyright-bg),.5); | |
282 | height: 31px; | |
283 | color: rgba(var(--copyright-text-color),.8); | |
284 | } | |
285 | ||
286 | a.copyright { | |
287 | background: rgba(var(--copyright-bg),.5); | |
288 | margin-bottom: 0; | |
289 | margin-top: 0; | |
290 | margin-left: .5em; | |
291 | margin-right: .5em; | |
292 | } |