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