]> jfr.im git - irc/freenode/web-7.0.git/blob - css/mock1.css
Resolving merge issues
[irc/freenode/web-7.0.git] / css / mock1.css
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 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 */
145 h1 {
146 margin: 0;
147 }
148
149 div.art {
150 border-bottom: 1px solid rgba(var(--border-color),.3);
151
152 }
153 div.art:last-child {
154 border-bottom: none;
155 }
156
157 b.art {
158 margin-bottom: 0;
159 font-size: 18px;
160 }
161
162 p.art {
163 margin: 0;
164 }
165
166 p.art-ingress {
167 font-style: italic;
168 margin: 0;
169 }
170
171 .art-date {
172 color: #ccc;
173 margin: 0;
174 }
175 p.heading {
176 white-space: nowrap;
177 }
178 p.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
190 a.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
200 a.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 margin-top: 2vh;
233 display: flex;
234 flex-wrap: nowrap;
235 min-height: 27vh;
236 justify-content: space-between;
237 align-items: flex-start;
238 box-shadow: 0 -3px 5px rgba(150,150,150,.36);
239 }
240
241 .footerchild {
242 margin-top: .5em;
243 }
244
245 .footer a {
246 color: #000;
247 }
248
249 .footer h2 {
250 margin-bottom: 9px;
251 display: inline-block;
252 }
253
254 .footerchild ul,
255 .footerchild ul ul {
256 margin-left: 10px;
257 margin-right: 10px;
258 list-style-type: none;
259 }
260
261 .footerchild ul ul {
262 padding-left: 30px;
263 }
264
265 @media all and (max-width: 500px) {
266 .footer {
267 flex-direction: column;
268 }
269
270 .footerchild {
271 width: 100%;
272 }
273 }
274 .footerchild ul li:last-child {
275 margin-bottom: .5em;
276 }
277 .hdn {
278 display: none;
279 }
280 }
281
282 .footer h2,.footer h3 {
283 margin-left: 10px;
284 margin-right: 10px;
285 }
286
287 .copyright {
288 display: flex;
289 flex-wrap: nowrap;
290 justify-content: space-between;
291 align-items: center;
292 background: rgba(var(--copyright-bg),.5);
293 height: 3vh;
294 color: rgba(var(--copyright-text-color),.8);
295 }
296 a.copyright {
297 background: rgba(var(--copyright-bg),.5);
298 margin-bottom: 0;
299 margin-top: 0;
300 margin-left: .5em;
301 margin-right: .5em;
302 width: auto;
303 height: auto;
304 }
305 .copyright a img {
306 height: 3vh;
307 width: auto;
308 }
309 .copyright p {
310 margin-bottom: 0;
311 margin-top: 0;
312 margin-left: .5em;
313 margin-right: .5em;
314 text-align: right;
315 }
316 @media all and (max-width: 500px) {
317 .copyright {
318 height: 5vh;
319 }
320 .copyright a img {
321 height: 5vh;
322 }
323 }