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: Created Sept. 28, 2017, 4:32 p.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 28 matching lines...) Expand all
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 } 47 }
48 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 #flag-ar
91 {
92 background-position: 0px 0px;
93 }
94
95 #flag-bg
96 {
97 background-position: -17px 0px;
98 }
99
100 #flag-de
101 {
102 background-position: -34px 0px;
103 }
104
105 #flag-en
106 {
107 background-position: -51px 0px;
108 }
109
110 #flag-es
111 {
112 background-position: -68px 0px;
113 }
114
115 #flag-sk
116 {
117 background-position: -85px 0px;
118 }
119
120 #flag-fr
121 {
122 background-position: 0px -12px;
123 }
124
125 #flag-el
126 {
127 background-position: -85px -12px;
128 }
129
130 #flag-he
131 {
132 background-position: -17px -12px;
133 }
134
135 #flag-it
136 {
137 background-position: -85px -24px;
138 }
139
140 #flag-hu
141 {
142 background-position: -34px -12px;
143 }
144
145 #flag-ko
146 {
147 background-position: -51px -12px;
148 }
149
150 #flag-ja
151 {
152 background-position: -102px 0px;
153 }
154
155 #flag-lt
156 {
157 background-position: -68px -12px;
158 }
159
160 #flag-nl
161 {
162 background-position: 0px -24px;
163 }
164
165 #flag-pl
166 {
167 background-position: -102px -12px;
168 }
169
170 #flag-pt_BR
171 {
172 background-position: -17px -24px;
173 }
174
175 #flag-pt_PT
176 {
177 background-position: -102px -24px;
178 }
179
180 #flag-ru
181 {
182 background-position: -34px -24px;
183 }
184
185 #flag-zh_CN
186 {
187 background-position: -51px -24px;
188 }
189
190 #flag-zh_TW
191 {
192 background-position: -68px -24px;
193 }
194
195 a[hreflang="de"]:not(:lang(de)):after,
196 a[hreflang="en"]:not(:lang(en)):after
197 {
198 display: inline-block;
199 width: 16px;
200 height: 11px;
201 background-image: url(../img/sprite-flags.png);
202 content: "";
203 margin-left: 2px;
204 }
205
206 a[hreflang="de"]:not(:lang(de)):after
207 {
208 background-position: -34px 0px;
209 }
210
211 a[hreflang="en"]:not(:lang(en)):after
212 {
213 background-position: -51px 0px;
214 }
215
216 #language-selector a:after
217 {
218 display: none;
219 }
220
221 #logo
222 {
223 position: absolute;
224 width: 128px;
225 height: 128px;
226 background-position: -83px -83px;
227 }
228
229 #content h1
230 {
231 font-size: 30px;
232 }
233
234 #content h2
235 {
236 font-weight: bold;
237 font-size: 25px;
238 }
239
240 #content h3
241 {
242 font-size: 20px;
243 }
244
245 #adblock-browser-notification 49 #adblock-browser-notification
246 { 50 {
247 text-align: center; 51 text-align: center;
248 } 52 }
249 53
250 #adblock-browser-notification a 54 #adblock-browser-notification a
251 { 55 {
252 font-weight: bold; 56 font-weight: bold;
253 } 57 }
254 58
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 .toc li 92 .toc li
289 { 93 {
290 margin: 4px 0; 94 margin: 4px 0;
291 } 95 }
292 96
293 #social-list ul 97 #social-list ul
294 { 98 {
295 list-style: none; 99 list-style: none;
296 padding: 0; 100 padding: 0;
297 margin: 0; 101 margin: 0;
298 }
299
300 .social-entry
301 {
302 display: inline-block;
303 margin: 0px 5px;
304 }
305
306 .social-entry a
307 {
308 width: 82px;
309 height: 82px;
310 -webkit-transition: opacity .5s ease;
311 -moz-transition: opacity .5s ease;
312 -ms-transition: opacity .5s ease;
313 -o-transition: opacity .5s ease;
314 transition: opacity .5s ease;
315 opacity: .6;
316 }
317
318 .social-entry a:hover
319 {
320 opacity: 1.0;
321 }
322
323 #social-facebook
324 {
325 background-position: 0px 0px;
326 }
327
328 #social-twitter
329 {
330 background-position: 0px -83px;
331 }
332
333 #social-gplus
334 {
335 background-position: -83px 0px;
336 } 102 }
337 103
338 div.animation[started="false"]:before 104 div.animation[started="false"]:before
339 { 105 {
340 content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPBAMAAADJ%2B Ih5AAAAFVBMVEUAgAAAgAD%2F%2F%2F%2Fr9uvY7Ni%2B376h0aGeNpcsAAAAAXRSTlNtc%2BXFgwAAA DVJREFUeF5dzVEKACAMAlC7QW6t%2F7r%2FIYOBEPr1GOgw2AHiduaHkwKXwBK4BYZdylrpy4K%2BP%2 Fu5C1CVKVSzAAAAAElFTkSuQmCC); 106 content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPBAMAAADJ%2B Ih5AAAAFVBMVEUAgAAAgAD%2F%2F%2F%2Fr9uvY7Ni%2B376h0aGeNpcsAAAAAXRSTlNtc%2BXFgwAAA DVJREFUeF5dzVEKACAMAlC7QW6t%2F7r%2FIYOBEPr1GOgw2AHiduaHkwKXwBK4BYZdylrpy4K%2BP%2 Fu5C1CVKVSzAAAAAElFTkSuQmCC);
341 padding-left: 0px; 107 padding-left: 0px;
342 padding-right: 3px; 108 padding-right: 3px;
343 } 109 }
344 110
345 html[dir="rtl"] div.animation[started="false"]:before 111 html[dir="rtl"] div.animation[started="false"]:before
(...skipping 24 matching lines...) Expand all
370 [dir="ltr"] .alert 136 [dir="ltr"] .alert
371 { 137 {
372 border-left: 5px solid #d14841; 138 border-left: 5px solid #d14841;
373 } 139 }
374 140
375 [dir="rtl"] .alert 141 [dir="rtl"] .alert
376 { 142 {
377 border-right: 5px solid #d14841; 143 border-right: 5px solid #d14841;
378 } 144 }
379 145
380 .container 146 /******************************************************************************
381 { 147 * .content
382 width: auto; 148 *****************************************************************************/
383 max-width: 100%; 149
384 margin: 0px auto; 150 .content h1,
385 padding: 0px 1em; 151 .content h2,
386 } 152 .content h3,
387 153 .content h4,
388 @media (min-width: 1200px) 154 .content h5
389 { 155 {
390 .container 156 font-weight: bold;
391 { 157 margin: 32px 0px;
392 width: 1170px; 158 margin: 2rem 0rem;
393 } 159 }
394 } 160
395 161 .content h1 { font-size: 2.4em; }
396 .row, 162 .content h2 { font-size: 1.6em; }
397 .column 163 .content h3 { font-size: 1.3em; }
398 { 164 .content h4 { font-size: 1.2em; }
399 box-sizing: border-box; 165 .content h5 { font-size: 1.1em; }
400 } 166
401 167 /*******************************************************************************
402 .row 168 * #navbar
403 { 169 ******************************************************************************/
404 margin: 0px -1em; 170
405 } 171 #navbar
406 172 {
407 .row:after 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
408 { 264 {
409 display: block; 265 display: block;
410 clear: both; 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;
411 content: ""; 311 content: "";
412 } 312 border-top: .3em solid;
413 313 border-right: .3em solid transparent;
414 .column 314 border-left: .3em solid transparent;
415 { 315 }
416 position: relative; 316
417 width: 100%; 317 [dir="rtl"] #navbar-locale-selected:after
418 min-height: 1px; 318 {
419 padding: 0px 1em; 319 margin: 0em 0.255em 0em 0em;
420 } 320 }
421 321
422 .column 322 #navbar-locale-menu
423 { 323 {
424 float: left; 324 display: none;
425 } 325 }
426 326
427 [dir="rtl"] .column 327 #navbar-locale-menu.visible
428 { 328 {
429 float: right; 329 display: block;
430 } 330 }
431 331
432 @media (min-width: 768px) 332 #navbar-locale-menu > li > a
433 { 333 {
434 .one-fourth 334 padding: 0.75em 1em;
435 { 335 }
436 width: 50%; 336
437 } 337 #navbar-locale-menu > li > a:hover,
438 338 #navbar-locale-menu > li > a:active,
439 #site-footer .column 339 #navbar-locale-menu > li > a:focus
440 { 340 {
441 min-height: 230px; 341 background-color: #434343;
442 } 342 }
443 } 343
444 344 /* #navbar #navbar-menu (desktop)
445 @media (min-width: 1024px) 345 ******************************************************************************/
446 { 346
447 .one-fourth 347 @media(min-width: 992px)
448 { 348 {
449 width: 25%; 349 #navbar-menu
450 } 350 {
451 } 351 float: right;
452 352 }
453 @media(max-width: 767px) 353
454 { 354 [dir="rtl"] #navbar-menu
455 #site-footer .column 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
456 { 412 {
457 display: none; 413 display: none;
458 } 414 float: left;
459 415 clear: both;
460 #site-footer #social-list 416 width: 100%;
417 background-color: #292929;
418 }
419
420 #navbar-menu.visible
461 { 421 {
462 display: block; 422 display: block;
463 } 423 }
464 424
465 #site-footer #social-list ul 425 #navbar-menu li a
466 { 426 {
467 margin: 0em 1em; 427 padding: 0.75em 1em;
468 } 428 }
469 } 429
470 430 #navbar-menu li a:hover,
471 #site-footer 431 #navbar-menu li a:active,
472 { 432 #navbar-menu li a:focus
433 {
434 background-color: #434343;
435 }
436 }
437
438 /*******************************************************************************
439 * #footer
440 ******************************************************************************/
441
442 #footer
443 {
444 overflow: auto;
473 margin-top: 2em; 445 margin-top: 2em;
474 padding: 2em 0em; 446 padding: 2em 0em;
475 color: #ececec; 447 color: #ececec;
476 background-color: #292929; 448 background-color: #292929;
477 overflow: auto; 449 font-size: 0.9em;
478 } 450 }
479 451
480 #site-footer h5 452 /* #footer body
481 { 453 ******************************************************************************/
482 color: #ececec; 454
483 font-size: 22px; 455 #footer h5
484 margin: 16px 0px 40px 0px; 456 {
485 } 457 margin-top: 1em;
486 458 margin-bottom: 1.5em;
487 #site-footer h5::after 459 }
460
461 #footer h5:after
488 { 462 {
489 content: ""; 463 content: "";
490 display: block; 464 display: block;
491 width: 30px; 465 width: 1.25em;
492 height: 3px; 466 height: 0.125em;
493 margin: 16px 0px 0px 0px; 467 margin-top: 0.5em;
494 border: none;
495 background-color: #ececec; 468 background-color: #ececec;
496 } 469 }
497 470
498 #site-footer p 471 #footer ul
499 { 472 {
500 font-size: 18px; 473 padding: 0em;
501 }
502
503 #site-footer li
504 {
505 list-style-type: none; 474 list-style-type: none;
506 } 475 }
507 476
508 #site-footer ul 477 #footer a
509 { 478 {
510 padding: 0px;
511 }
512
513 #site-footer a
514 {
515 font-size: 18px;
516 color: #ececec; 479 color: #ececec;
517 text-decoration: none; 480 }
518 } 481
519 482 #footer a:hover,
520 #site-footer a:hover, 483 #footer a:active,
521 #site-footer a:active, 484 #footer a:focus
522 #site-footer a:focus
523 { 485 {
524 color: #fff; 486 color: #fff;
525 text-decoration: underline; 487 text-decoration: underline;
526 } 488 }
527 489
490 /* #footer #social-list
491 ******************************************************************************/
492
493 #social-list ul
494 {
495 /* negative margin canceled out by li margin below */
496 margin: 0em -0.375em;
497 }
498
499 #social-list li
500 {
501 float: left;
502 margin: 0em 0.375em;
503 }
504
505 [dir="rtl"] #social-list li
506 {
507 float: right;
508 }
509
510 #social-list img
511 {
512 height: 2em;
513 }
514
515 @media(min-width: 1200px)
516 {
517 #social-list img
518 {
519 height: 3em;
520 }
521 }
522
523 /* #footer #footer-legal
524 ******************************************************************************/
525
528 #footer-legal 526 #footer-legal
529 { 527 {
530 margin-top: 3em; 528 margin-top: 1em;
531 } 529 }
532 530
533 #site-footer #copyright-notice, 531 @media(min-width: 1200px)
534 #site-footer #copyright-notice a, 532 {
535 #legal-list a 533 #footer-legal
536 { 534 {
537 font-size: 14px; 535 margin-top: 2em;
538 } 536 }
539 537 }
540 @media(min-width: 768px) 538
541 { 539 /* #footer #footer-legal #legal-list
542 #site-footer #copyright-notice, 540 ******************************************************************************/
543 #site-footer #copyright-notice a, 541
544 #legal-list a
545 {
546 font-size: 16px;
547 }
548 }
549
550 #social-list li,
551 #legal-list li 542 #legal-list li
552 { 543 {
553 display: block;
554 float: left; 544 float: left;
555 } 545 }
556 546
557 #social-list li 547 [dir="rtl"] #legal-list li
558 { 548 {
559 margin-right: 10px; 549 float: right;
560 } 550 }
561 551
562 [dir="rtl"] #social-list li 552 #legal-list li:after
563 { 553 {
564 margin-left: 10px; 554 margin: 0em 0.375em;
565 } 555 }
566 556
567 #social-list img 557 /* IE9+ only */
568 {
569 height: 40px;
570 }
571
572 #legal-list li::after 558 #legal-list li::after
573 { 559 {
574 margin: 0px 5px;
575 content: "|" 560 content: "|"
576 } 561 }
577 562
578 #legal-list li:last-of-type::after 563 #legal-list li:last-of-type::after
579 { 564 {
580 content: none; 565 content: none;
581 } 566 }
582 567
583 @media(min-width: 1024px) 568 /* float copyright and legal links left and right on ~desktop */
569 @media(min-width: 1200px)
584 { 570 {
585 #copyright-notice 571 #copyright-notice
586 { 572 {
587 float: left; 573 float: left;
588 } 574 }
589 575
590 [dir="rtl"] #copyright-notice 576 [dir="rtl"] #copyright-notice
591 { 577 {
592 float: right; 578 float: right;
593 } 579 }
594 580
595 #legal-list 581 #legal-list
596 { 582 {
597 float: right; 583 float: right;
598 } 584 }
599 585
600 [dir="rtl"] #legal-list 586 [dir="rtl"] #legal-list
601 { 587 {
602 float: left; 588 float: left;
603 } 589 }
604 } 590 }
591
592 /* hide all footer links except #social-list on ~mobile */
593 @media(max-width: 767px)
594 {
595 #footer .column
596 {
597 display: none;
598 }
599
600 /* overriding display:none above */
601 #footer #social-list
602 {
603 display: block;
604 }
605 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld