Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: static/css/main.css

Issue 29558641: Issue 5740 - Implemented new abp.org footer styles (Closed) Base URL: https://bitbucket.org/adblockplus/adblockplus.org
Left Patch Set: Rebased on body styles Created Oct. 10, 2017, 11:54 a.m.
Right Patch Set: Addressed comments Created Oct. 11, 2017, 1:11 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « static/css/index-desktop.css ('k') | static/css/main-desktop.css » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 * 1 *
2 { 2 {
3 font-family: Arial, sans; 3 font-family: Arial, sans;
4 font-size: 16px; 4 font-size: 16px;
5 } 5 }
6 6
7 body 7 body
8 { 8 {
9 margin: 0; 9 margin: 0;
10 line-height: 1.5; 10 line-height: 1.5;
(...skipping 26 matching lines...) Expand all
37 border: 1px solid black; 37 border: 1px solid black;
38 overflow: auto; 38 overflow: auto;
39 } 39 }
40 40
41 .sprite 41 .sprite
42 { 42 {
43 display: inline-block; 43 display: inline-block;
44 font-size: 0px; /* fix for IE6 height bug */ 44 font-size: 0px; /* fix for IE6 height bug */
45 background-image: url(../img/sprite-main.png); 45 background-image: url(../img/sprite-main.png);
46 background-repeat: no-repeat; 46 background-repeat: no-repeat;
47 }
48
49 header
50 {
51 display: block;
52 position: relative;
53 background: white;
54 border: 1px solid #d9d9d9;
55 border-top: none;
56 box-shadow: 1px 1px 0 0 #d9d9d9;
57 z-index: 1;
58 }
59
60 header nav li
61 {
62 padding: 0px 5px;
63 }
64
65 header nav li.selected
66 {
67 color: #db1313;
68 text-shadow: 1px 1px 1px #eee;
69 cursor: default;
70 }
71
72 header nav li.install-link a
73 {
74 color: #048e48;
75 }
76
77 header nav li.install-link .install-link-icon
78 {
79 display: inline-block;
80 width: 12px;
81 height: 12px;
82 background-position: -167px -13px;
83 }
84
85 .language-entry a
86 {
87 display: block;
88 }
89
90 #logo
91 {
92 position: absolute;
93 width: 128px;
94 height: 128px;
95 background-position: -83px -83px;
96 } 47 }
97 48
98 #adblock-browser-notification 49 #adblock-browser-notification
99 { 50 {
100 text-align: center; 51 text-align: center;
101 } 52 }
102 53
103 #adblock-browser-notification a 54 #adblock-browser-notification a
104 { 55 {
105 font-weight: bold; 56 font-weight: bold;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 margin: 2rem 0rem; 158 margin: 2rem 0rem;
208 } 159 }
209 160
210 .content h1 { font-size: 2.4em; } 161 .content h1 { font-size: 2.4em; }
211 .content h2 { font-size: 1.6em; } 162 .content h2 { font-size: 1.6em; }
212 .content h3 { font-size: 1.3em; } 163 .content h3 { font-size: 1.3em; }
213 .content h4 { font-size: 1.2em; } 164 .content h4 { font-size: 1.2em; }
214 .content h5 { font-size: 1.1em; } 165 .content h5 { font-size: 1.1em; }
215 166
216 /******************************************************************************* 167 /*******************************************************************************
217 * #site-footer 168 * #navbar
218 ******************************************************************************/ 169 ******************************************************************************/
219 170
220 #site-footer 171 #navbar
172 {
173 height: 4em;
174 background-color: #c70d2c;
175 }
176
177 #navbar li
178 {
179 list-style-type: none;
180 }
181
182 /* padding provided by navbar contents */
183 .navbar-container
184 {
185 width: 1170px;
186 margin: 0 auto;
187 }
188
189 /* full-width under .container max-width */
190 @media(max-width: 1199px)
191 {
192 .navbar-container
193 {
194 width: 100%;
195 }
196 }
197
198 /* #navbar #navbar-logo
199 ******************************************************************************/
200
201 #navbar-logo
202 {
203 /* padding is visible in hover background-color change */
204 padding: 0em 1em;
205 color: #fff;
206 }
207
208 #navbar-logo:hover,
209 #navbar-logo:active,
210 #navbar-logo:focus
211 {
212 background-color: #AE0013;
213 text-decoration: none;
214 }
215
216 #navbar-logo,
217 #navbar-logo > *
218 {
219 float: left;
220 }
221
222 [dir="rtl"] #navbar-logo,
223 [dir="rtl"] #navbar-logo > *
224 {
225 float: right;
226 }
227
228 #navbar-logo img
229 {
230 height: 4em;
231 padding: 0.5em 0em;
232 margin: 0em 1em 0em 0em;
233 }
234
235 [dir="rtl"] #navbar-logo > img
236 {
237 margin: 0em 0em 0em 1em;
238 }
239
240 #navbar-logo > span
241 {
242 /* full-height: 2.91 * 1.375 = ~4em */
243 line-height: 2.91em;
244 font-size: 1.375em;
245 }
246
247 /* #navbar #navbar-menu-toggle
248 ******************************************************************************/
249
250 #navbar-menu-toggle
251 {
252 float: right;
253 padding: 1em;
254 }
255
256 [dir="rtl"] #navbar-menu-toggle
257 {
258 float: left;
259 }
260
261 /* show on mobile */
262 #navbar-menu-toggle,
263 #navbar-menu-toggle > img
264 {
265 display: block;
266 }
267
268 /* hide on desktop */
269 @media(min-width: 992px)
270 {
271 #navbar-menu-toggle
272 {
273 display: none;
274 }
275 }
276
277 #navbar-menu-toggle > img
278 {
279 /* plus 2em padding = 4em */
280 height: 2em;
281 }
282
283 #navbar-menu-toggle:hover,
284 #navbar-menu-toggle:active,
285 #navbar-menu-toggle:focus
286 {
287 background-color: #AE0013;
288 }
289
290 /* #navbar #navbar-menu
291 ******************************************************************************/
292
293 #navbar-menu a
294 {
295 display: block;
296 color: #fff;
297 text-decoration: none;
298 }
299
300 /* #navbar #navbar-menu #navbar-locale-menu
301 ******************************************************************************/
302
303 /* caret */
304 #navbar-locale-selected:after
305 {
306 display: inline-block;
307 width: 0;
308 height: 0;
309 margin: 0em 0em 0em 0.255em;
310 vertical-align: .255em;
311 content: "";
312 border-top: .3em solid;
313 border-right: .3em solid transparent;
314 border-left: .3em solid transparent;
315 }
316
317 [dir="rtl"] #navbar-locale-selected:after
318 {
319 margin: 0em 0.255em 0em 0em;
320 }
321
322 #navbar-locale-menu
323 {
324 display: none;
325 }
326
327 #navbar-locale-menu.visible
328 {
329 display: block;
330 }
331
332 #navbar-locale-menu > li > a
333 {
334 padding: 0.75em 1em;
335 }
336
337 #navbar-locale-menu > li > a:hover,
338 #navbar-locale-menu > li > a:active,
339 #navbar-locale-menu > li > a:focus
340 {
341 background-color: #434343;
342 }
343
344 /* #navbar #navbar-menu (desktop)
345 ******************************************************************************/
346
347 @media(min-width: 992px)
348 {
349 #navbar-menu
350 {
351 float: right;
352 }
353
354 [dir="rtl"] #navbar-menu
355 {
356 float: left;
357 }
358
359 #navbar-menu > li,
360 #navbar-menu > li > a
361 {
362 display: inline-block;
363 }
364
365 #navbar-menu > li > a
366 {
367 padding: 0em 1em;
368 line-height: 4em;
369 }
370
371 #navbar-menu > li > a:hover,
372 #navbar-menu > li > a:active,
373 #navbar-menu > li > a:focus
374 {
375 background-color: #AE0013;
376 }
377
378 /* #navbar #navbar-menu #navbar-locale-menu
379 ****************************************************************************/
380
381 #navbar-locale-menubar
382 {
383 position: relative;
384 }
385
386 #navbar-locale-menu
387 {
388 position: absolute;
389 min-width: 16em;
390 max-height: 20em;
391 max-height: 50vh;
392 top: 100%;
393 right: 0px;
394 overflow: auto;
395 z-index: 9001;
396 background-color: #292929;
397 }
398
399 [dir="rtl"] #navbar-locale-menu
400 {
401 right: auto;
402 left: 0px;
403 }
404 }
405
406 /* #navbar #navbar-menu (mobile)
407 ******************************************************************************/
408
409 @media(max-width: 991px)
410 {
411 #navbar-menu
412 {
413 display: none;
414 float: left;
415 clear: both;
416 width: 100%;
417 background-color: #292929;
418 }
419
420 #navbar-menu.visible
421 {
422 display: block;
423 }
424
425 #navbar-menu li a
426 {
427 padding: 0.75em 1em;
428 }
429
430 #navbar-menu li a:hover,
431 #navbar-menu li a:active,
432 #navbar-menu li a:focus
433 {
434 background-color: #434343;
435 }
436 }
437
438 /*******************************************************************************
439 * #footer
440 ******************************************************************************/
441
442 #footer
221 { 443 {
222 overflow: auto; 444 overflow: auto;
223 margin-top: 2em; 445 margin-top: 2em;
224 padding-top: 2em; 446 padding: 2em 0em;
225 padding-bottom: 2em;
226 color: #ececec; 447 color: #ececec;
227 background-color: #292929; 448 background-color: #292929;
228 font-size: 0.9em; 449 font-size: 0.9em;
229 } 450 }
230 451
231 /* #site-footer body 452 /* #footer body
232 ******************************************************************************/ 453 ******************************************************************************/
233 454
234 #site-footer h5 455 #footer h5
235 { 456 {
236 margin-top: 1em; 457 margin-top: 1em;
237 margin-bottom: 1.5em; 458 margin-bottom: 1.5em;
238 } 459 }
239 460
240 #site-footer h5::after 461 #footer h5:after
241 { 462 {
242 content: ""; 463 content: "";
243 display: block; 464 display: block;
244 width: 1.25em; 465 width: 1.25em;
245 height: 3px; 466 height: 0.125em;
246 margin-top: 0.5em; 467 margin-top: 0.5em;
247 border: none;
248 background-color: #ececec; 468 background-color: #ececec;
249 } 469 }
250 470
251 #site-footer li 471 #footer ul
252 { 472 {
473 padding: 0em;
253 list-style-type: none; 474 list-style-type: none;
254 } 475 }
255 476
256 #site-footer ul 477 #footer a
257 {
258 padding: 0px;
259 }
260
261 #site-footer a
262 { 478 {
263 color: #ececec; 479 color: #ececec;
264 text-decoration: none; 480 }
265 } 481
266 482 #footer a:hover,
267 #site-footer a:hover, 483 #footer a:active,
268 #site-footer a:active, 484 #footer a:focus
269 #site-footer a:focus
270 { 485 {
271 color: #fff; 486 color: #fff;
272 text-decoration: underline; 487 text-decoration: underline;
273 } 488 }
274 489
275 /* #site-footer #social-list 490 /* #footer #social-list
276 ******************************************************************************/ 491 ******************************************************************************/
492
493 #social-list ul
494 {
495 /* negative margin canceled out by li margin below */
496 margin: 0em -0.375em;
497 }
277 498
278 #social-list li 499 #social-list li
279 { 500 {
280 display: block;
281 float: left; 501 float: left;
502 margin: 0em 0.375em;
282 } 503 }
283 504
284 [dir="rtl"] #social-list li 505 [dir="rtl"] #social-list li
285 { 506 {
286 float: right; 507 float: right;
287 } 508 }
288 509
289 #social-list li
290 {
291 margin-right: 0.5em;
292 }
293
294 [dir="rtl"] #social-list li
295 {
296 margin-left: 0.5em;
297 }
298
299 #social-list img 510 #social-list img
300 { 511 {
301 height: 3em; 512 height: 2em;
302 } 513 }
303 514
304 /* smaller on tablet / small desktop only */ 515 @media(min-width: 1200px)
305 @media(min-width: 768px) and (max-width: 1200px)
306 { 516 {
307 #social-list img 517 #social-list img
308 { 518 {
309 height: 2em; 519 height: 3em;
310 } 520 }
311 } 521 }
312 522
313 /* #site-footer #footer-legal 523 /* #footer #footer-legal
314 ******************************************************************************/ 524 ******************************************************************************/
315 525
316 #footer-legal 526 #footer-legal
317 { 527 {
318 overflow: auto; 528 margin-top: 1em;
319 margin-top: 2em; 529 }
320 } 530
321 531 @media(min-width: 1200px)
322 /* #site-footer #footer-legal #legal-list 532 {
533 #footer-legal
534 {
535 margin-top: 2em;
536 }
537 }
538
539 /* #footer #footer-legal #legal-list
323 ******************************************************************************/ 540 ******************************************************************************/
324 541
325 #legal-list li 542 #legal-list li
326 { 543 {
327 display: block;
328 float: left; 544 float: left;
329 } 545 }
330 546
331 [dir="rtl"] #legal-list li 547 [dir="rtl"] #legal-list li
332 { 548 {
333 float: right; 549 float: right;
334 } 550 }
335 551
552 #legal-list li:after
553 {
554 margin: 0em 0.375em;
555 }
556
557 /* IE9+ only */
336 #legal-list li::after 558 #legal-list li::after
337 { 559 {
338 margin-left: 0.25em;
339 margin-right: 0.25em;
340 content: "|" 560 content: "|"
341 } 561 }
342 562
343 #legal-list li:last-of-type::after 563 #legal-list li:last-of-type::after
344 { 564 {
345 content: none; 565 content: none;
346 } 566 }
347 567
348 /* float copyright and legal links left and right on ~desktop */ 568 /* float copyright and legal links left and right on ~desktop */
349 @media(min-width: 1200px) 569 @media(min-width: 1200px)
(...skipping 15 matching lines...) Expand all
365 585
366 [dir="rtl"] #legal-list 586 [dir="rtl"] #legal-list
367 { 587 {
368 float: left; 588 float: left;
369 } 589 }
370 } 590 }
371 591
372 /* hide all footer links except #social-list on ~mobile */ 592 /* hide all footer links except #social-list on ~mobile */
373 @media(max-width: 767px) 593 @media(max-width: 767px)
374 { 594 {
375 #site-footer .column 595 #footer .column
376 { 596 {
377 display: none; 597 display: none;
378 } 598 }
379 599
380 /* overriding display:none above */ 600 /* overriding display:none above */
381 #site-footer #social-list 601 #footer #social-list
382 { 602 {
383 display: block; 603 display: block;
384 } 604 }
385 } 605 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld