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