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

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

Issue 29720642: Noissue - Added .body-container to provide padding-top for body content and avoid navbar overlap (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Left Patch Set: Created March 12, 2018, 5:02 p.m.
Right Patch Set: Moved space to <body> Created March 13, 2018, 12:13 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 | « no previous file | static/css/main.css » ('j') | static/css/main.css » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /****************************************************************************** 1 #content,
2 * Temparary styles 2 #blog
3 *****************************************************************************/ 3 {
4 4 padding-top: 5em;
5 .avoid-wrap {display: inline-block;} 5 }
6 .small {font-size: smaller;} 6
7 .maxthon-only {display: none;} 7 #key-facts h1
8 .maxthon .maxthon-only {display: block;} 8 {
9 9 font-size: 16px;
10 /****************************************************************************** 10 }
11 * #hero-download 11
12 *****************************************************************************/ 12 #content .sprite
13 13 {
14 #hero-download 14 background-image: url(../img/sprite-index.png);
15 { 15 }
16 padding-top: 2em; 16
17 padding-bottom: 2em; 17 #abb-banner
18 } 18 {
19 19 background-color: #ffffff;
20 @media(min-width: 768px) 20 display: none;
21 { 21 padding: 50px 40px 40px 40px;
22 #hero-download 22 margin-bottom: 30px;
23 { 23 text-align: center;
24 padding-top: 6em; 24 }
25 padding-bottom: 6em; 25
26 } 26 #abb-banner h2
27 } 27 {
28 28 font-size: 28px;
29 #hero-download h1 29 font-weight: bold;
30 { 30 color: #333333;
31 line-height: 1.1; 31 margin: 0px;
32 } 32 }
33 33
34 #hero-download-tos 34 #abb-banner img
35 { 35 {
36 font-size: 10px; 36 margin: 30px 0px 40px 0px;
37 } 37 width: 40%;
38 38 min-width: 200px;
39 #hero-download-button 39 }
40
41 #abb-banner a
42 {
43 display: none;
44 padding: 20px;
45 background-color: #2f8ecb;
46 text-decoration: none;
47 font-size: 24px;
48 font-weight: bold;
49 color: #ffffff;
50 border-radius: 5px;
51 }
52
53 #content.ua-android,
54 #content.ua-ios
55 {
56 margin-top: 0px;
57 }
58
59 #content.ua-android #abb-banner,
60 #content.ua-ios #abb-banner,
61 #content.ua-android #abb-android-download,
62 #content.ua-ios #abb-ios-download
40 { 63 {
41 display: block; 64 display: block;
42 } 65 }
43 66
44 @media(min-width: 768px) 67 #content.ua-android #adblock-browser-notification,
45 { 68 #content.ua-ios #adblock-browser-notification
46 #hero-download-button 69 {
47 { 70 display: none;
48 display: inline-block; 71 }
49 min-width: 350px; 72
50 } 73 #main, #home-video
51 } 74 {
52 75 display: inline-block;
53 #hero-download-video 76 vertical-align: top; /* Fix for https://bugzil.la/1320660 */
54 { 77 }
55 display: none; 78
56 } 79 #maxthon-instruction, #edge-teaser
57 80 {
58 @media(min-width: 768px) 81 background: #ffffff;
59 { 82 padding: 10px;
60 #hero-download-video 83 border: 1px solid #c9c9c9;
61 { 84 box-shadow: 1px 1px 0 0 #dbdbdb;
62 display: block; 85 }
63 } 86
64 } 87 #maxthon-instruction,
65 88 html[lang^="zh_"] #content.maxthon #home-video,
66 /****************************************************************************** 89 #content.maxthon #feature-free,
67 * #media 90 #content.maxthon #terms-message,
68 *****************************************************************************/ 91 #feature-maxthon
69 92 {
70 #media-section { clear: both; } 93 display: none;
71 94 }
72 #media-header h2, 95
73 #media-list 96 #home-video
74 { 97 {
98 max-width: 520px;
99 }
100
101 html[lang^="zh_"] #content.maxthon #maxthon-instruction
102 {
103 display: inline-block;
104 padding: 0px;
105 }
106
107 #content.maxthon #feature-maxthon
108 {
109 display: inline-block;
110 }
111
112 #summary h1, #summary h2
113 {
114 font-weight: normal;
75 margin: 0; 115 margin: 0;
76 } 116 }
77 117
78 #media-header 118 #summary h1
79 { 119 {
80 margin-bottom: 2em; 120 font-size: 60px;
81 } 121 line-height: 50px;
82 122 margin-bottom: 8px;
83 #media-header h2 123 }
84 { 124
85 font-size: 1em; 125 #summary h2
126 {
127 font-size: 22px;
128 color: #d50215;
129 }
130
131 #summary ul
132 {
133 list-style-type: none;
134 margin: 10px 0px 16px 0px;
135 padding-left: 40px;
136 padding-right: 0px;
137 color: #333333;
138 }
139
140 html[dir="rtl"] #summary ul
141 {
142 padding-right: 40px;
143 padding-left: 0px;
144 }
145
146 #summary li
147 {
148 margin-bottom: 5px;
149 line-height: 24px;
150 }
151
152 #summary li.emphasized
153 {
154 font-weight: bold;
155 }
156
157 #summary li .sprite
158 {
159 position: absolute;
160 width: 12px;
161 height: 11px;
162 margin-top: 4px;
163 margin-left: -17px;
164 margin-right: 0px;
165 background-image: url(../img/sprite-main.png);
166 background-repeat: no-repeat;
167 background-position: -166px 0px;
168 }
169
170 .license-note
171 {
172 display: none;
86 font-weight: normal; 173 font-weight: normal;
87 text-transform: uppercase; 174 }
88 } 175
89 176 html[dir="rtl"] #summary li .sprite
90 #media-list li 177 {
178 margin-right: -17px;
179 margin-left: 0px;
180 }
181
182 #terms-message,
183 #terms-message a
184 {
185 font-size: 12px;
186 }
187
188 /* This cannot be just .install-button because a:link will have a higher
189 specificity otherwise (overrides text color) */
190 #install .install-button
191 {
192 display: none;
193 position: relative;
194 width: 305px;
195 height: 50px;
196 color: #fff;
197 font-size: 20px;
198 text-decoration: none;
199 text-align: center;
200 line-height: 50px;
201 background: #c4c4c4;
202 background: -webkit-linear-gradient(top, #c4c4c4, #9e9e9e);
203 background: -moz-linear-gradient(top, #c4c4c4, #9e9e9e);
204 background: -ms-linear-gradient(top, #c4c4c4, #9e9e9e);
205 background: -o-linear-gradient(top, #c4c4c4, #9e9e9e);
206 background: linear-gradient(top, #c4c4c4, #9e9e9e);
207 box-shadow: 0 1px 0 0 #6b6b6b, 0 2px 0 0 #757575;
208 text-shadow: 2px 2px 2px #7a7a7a;
209 border: none;
210 border-radius: 3px;
211 bottom: 6px;
212 -webkit-transition: box-shadow 0.3s ease;
213 -moz-transition: box-shadow 0.3s ease;
214 -ms-transition: box-shadow 0.3s ease;
215 -o-transition: box-shadow 0.3s ease;
216 transition: box-shadow 0.3s ease;
217 }
218
219 .install-button:hover
220 {
221 box-shadow: 0px 2px 7px #6f6f6f, 0 1px 0 0 #6f6f6f;
222 }
223
224 .install-button:active
225 {
226 background: #a2a2a2;
227 background: -webkit-linear-gradient(bottom, #cacaca, #a2a2a2);
228 background: -moz-linear-gradient(bottom, #cacaca, #a2a2a2);
229 background: -ms-linear-gradient(bottom, #cacaca, #a2a2a2);
230 background: -o-linear-gradient(bottom, #cacaca, #a2a2a2);
231 background: linear-gradient(bottom, #cacaca, #a2a2a2);
232 box-shadow: 0px 0px 7px #6f6f6f;
233 -webkit-transition: none;
234 -moz-transition: none;
235 -ms-transition: none;
236 -o-transition: none;
237 transition: none;
238 bottom: 4px;
239 }
240
241 #content.android .install-button,
242 #content.firefox.ua-firefox .install-button,
243 #content.chrome.ua-chrome .install-button,
244 #content.opera.ua-opera .install-button,
245 #content.internet-explorer.ua-internet-explorer .install-button,
246 #content.safari.ua-safari .install-button,
247 #content.yandex-browser.ua-yandex-browser .install-button,
248 #content.edge.ua-edge .install-button,
249 /* IE6 fixes */
250 #content.firefox_ua-firefox .install-button,
251 #content.chrome_ua-chrome .install-button,
252 #content.opera_ua-opera .install-button,
253 #content.internet-explorer_ua-internet-explorer .install-button,
254 #content.safari_ua-safari .install-button,
255 #content.yandex-browser_ua-yandex-browser .install-button,
256 #content.edge_ua-edge .install-button
257 {
258 background: #62c52b;
259 background: -webkit-linear-gradient(top, #62c52b, #4f9d22);
260 background: -moz-linear-gradient(top, #62c52b, #4f9d22);
261 background: -ms-linear-gradient(top, #62c52b, #4f9d22);
262 background: -o-linear-gradient(top, #62c52b, #4f9d22);
263 background: linear-gradient(top, #62c52b, #4f9d22);
264 box-shadow: 0 1px 0 0 #486c15, 0 2px 0 0 #517422;
265 text-shadow: 2px 2px 2px #327d14;
266 }
267
268 #content.android .install-button:hover,
269 #content.firefox.ua-firefox .install-button:hover,
270 #content.chrome.ua-chrome .install-button:hover,
271 #content.opera.ua-opera .install-button:hover,
272 #content.internet-explorer.ua-internet-explorer .install-button:hover,
273 #content.safari.ua-safari .install-button:hover,
274 #content.yandex-browser.ua-yandex-browser .install-button:hover,
275 #content.edge.ua-edge .install-button:hover,
276 /* IE6 fixes */
277 #content.firefox_ua-firefox .install-button:hover,
278 #content.chrome_ua-chrome .install-button:hover,
279 #content.opera_ua-opera .install-button:hover,
280 #content.internet-explorer_ua-internet-explorer .install-button:hover,
281 #content.safari_ua-safari .install-button:hover,
282 #content.yandex-browser_ua-yandex-browser .install-button:hover,
283 #content.edge_ua-edge .install-button:hover
284 {
285 box-shadow: 0px 2px 7px #486c15, 0 1px 0 0 #486c15;
286 }
287
288 #content.android .install-button:active,
289 #content.firefox.ua-firefox .install-button:active,
290 #content.chrome.ua-chrome .install-button:active,
291 #content.opera.ua-opera .install-button:active,
292 #content.internet-explorer.ua-internet-explorer .install-button:active,
293 #content.safari.ua-safari .install-button:active,
294 #content.yandex-browser.ua-yandex-browser .install-button:active,
295 #content.edge.ua-edge .install-button:active,
296 /* IE6 fixes */
297 #content.firefox_ua-firefox .install-button:active,
298 #content.chrome_ua-chrome .install-button:active,
299 #content.opera_ua-opera .install-button:active,
300 #content.internet-explorer_ua-internet-explorer .install-button:active,
301 #content.safari_ua-safari .install-button:active,
302 #content.yandex-browser_ua-yandex-browser .install-button:active,
303 #content.edge_ua-edge .install-button:active
304 {
305 background: #4f9d22;
306 background: -webkit-linear-gradient(bottom, #62c52b, #4f9d22);
307 background: -moz-linear-gradient(bottom, #62c52b, #4f9d22);
308 background: -ms-linear-gradient(bottom, #62c52b, #4f9d22);
309 background: -o-linear-gradient(bottom, #62c52b, #4f9d22);
310 background: linear-gradient(bottom, #62c52b, #4f9d22);
311 box-shadow: 0px 0px 7px #486c15;
312 }
313
314 #content.firefox #install-firefox, #content.chrome #install-chrome,
315 #content.opera #install-opera, #content.android #install-android,
316 #content.internet-explorer #install-internet-explorer,
317 #content.safari #install-safari,
318 #content.yandex-browser #install-yandex-browser,
319 #content.edge #install-edge
91 { 320 {
92 display: inline-block; 321 display: inline-block;
93 } 322 }
94 323
95 #media-list img 324 #other-platform ul
96 { 325 {
97 max-width: 10em; 326 list-style: none;
98 max-height: 3em; 327 display: inline-block;
99 margin: 0 1em 1em; 328 margin: 0px;
100 } 329 padding: 0;
101 330 vertical-align: bottom;
102 #media-list a 331 }
103 { 332
104 position: relative; 333 html[dir="rtl"] #install ul
334 {
335 margin: 0 5px 0 0;
336 }
337
338 #other-platform li
339 {
340 display: inline-block;
341 margin: 0 3px;
342 font-size: 0;
343 }
344
345 #other-platform li a
346 {
347 width: 19px;
348 height: 20px;
349 }
350
351 #platform-firefox
352 {
353 background-position: -108px -89px;
354 }
355
356 #information-android
357 {
358 display: none;
359 }
360
361 #content.android #information-android
362 {
105 display: block; 363 display: block;
106 } 364 }
107 365
108 #media-list a:hover img 366 #content.firefox #platform-firefox
109 { 367 {
110 opacity: 0.3; 368 background-position: -108px -68px;
111 } 369 }
112 370
113 #media-list a:hover:after 371 #platform-chrome
114 { 372 {
115 content: ""; 373 background-position: -88px -89px;
374 }
375
376 #content.chrome #platform-chrome
377 {
378 background-position: -88px -68px;
379 }
380
381 #platform-android
382 {
383 background-position: -68px -89px;
384 }
385
386 #content.android #platform-android
387 {
388 background-position: -68px -68px;
389 }
390
391 #platform-opera
392 {
393 background-position: -68px -131px;
394 }
395
396 #content.opera #platform-opera
397 {
398 background-position: -68px -110px;
399 }
400
401 #platform-internet-explorer
402 {
403 background-position: -108px -131px;
404 }
405
406 #content.internet-explorer #platform-internet-explorer
407 {
408 background-position: -108px -110px;
409 }
410
411 #platform-safari
412 {
413 background-position: -88px -131px;
414 }
415
416 #content.safari #platform-safari
417 {
418 background-position: -88px -110px;
419 }
420
421 #platform-yandex-browser
422 {
423 background-position: -128px -89px;
424 }
425
426 #content.yandex-browser #platform-yandex-browser
427 {
428 background-position: -128px -68px;
429 }
430
431 #platform-maxthon
432 {
433 background-position: -128px -130px;
434 }
435
436 #content.maxthon #platform-maxthon
437 {
438 background-position: -128px -109px;
439 }
440
441 #platform-edge
442 {
443 background-position: -68px -171px;
444 }
445
446 #content.edge #platform-edge
447 {
448 background-position: -68px -151px;
449 }
450
451 #content h3.subscribe-header
452 {
453 font-size: 18px;
454 margin-bottom: 0px;
455 }
456
457 #other-platform > div,
458 #content.edge #home-video,
459 #edge-teaser
460 {
461 display: none;
462 }
463
464 .warning-platform,
465 .disclaimer,
466 #maxthon-notification
467 {
468 display: none;
469 color: #D00;
470 text-align: center;
471 border: 1px solid #D00;
472 padding: 5px;
473 border-radius: 5px;
474 }
475
476 .disclaimer
477 {
478 font-size: 14px;
479 color: #000;
480 text-align: left;
481 }
482
483 #content.ua-firefox .warning-platform.firefox,
484 #content.ua-chrome .warning-platform.chrome,
485 #content.ua-android .warning-platform.android,
486 #content.ua-opera .warning-platform.opera,
487 #content.ua-internet-explorer .warning-platform.internet-explorer,
488 #content.ua-safari .warning-platform.safari,
489 #content.ua-yandex-browser .warning-platform.yandex-browser,
490 #content.ua-maxthon .warning-platform.maxthon,
491 html[lang^="zh_"] #maxthon-notification
492 {
493 display: block;
494 }
495
496 #content.firefox.ua-firefox .warning-platform.firefox,
497 #content.chrome.ua-chrome .warning-platform.chrome,
498 #content.android.ua-android .warning-platform.android,
499 #content.opera.ua-opera .warning-platform.opera,
500 #content.internet-explorer.ua-internet-explorer .warning-platform.internet-explo rer,
501 #content.safari.ua-safari .warning-platform.safari,
502 #content.yandex-browser.ua-yandex-browser .warning-platform.yandex-browser,
503 #content.maxthon.ua-maxthon .warning-platform.maxthon,
504 #content.ua-maxthon #maxthon-notification,
505 #content.maxthon #maxthon-notification,
506 /* IE6 fixes */
507 #content.firefox_ua-firefox .warning-platform.firefox,
508 #content.chrome_ua-chrome .warning-platform.chrome,
509 #content.opera_ua-opera .warning-platform.opera,
510 #content.internet-explorer_ua-internet-explorer .warning-platform.internet-explo rer,
511 #content.safari_ua-safari .warning-platform.safari,
512 #content.yandex-browser_ua-yandex-browser .warning-platform.yandex-browser,
513 #content.maxthon_ua-maxthon .warning-platform.maxthon
514 {
515 display: none;
516 }
517
518 #key-facts
519 {
520 box-sizing: content-box;
521 }
522
523 #key-facts section
524 {
525 display: inline-block;
526 }
527
528 #key-facts section h1
529 {
530 margin: 0px;
531 }
532
533 #key-facts section .sprite
534 {
116 position: absolute; 535 position: absolute;
117 top: 50%; 536 width: 67px;
118 left: 50%; 537 height: 67px;
119 height: 1em; 538 margin-top: 0px;
120 width: 1em; 539 margin-left: -80px;
121 padding: 1em; 540 margin-right: 0px;
122 margin-left: -1em; 541 border: none;
123 margin-top: -1em; 542 }
124 border-radius: 50%; 543
125 background-color: #000; 544 html[dir="rtl"] #key-facts section .sprite
126 background-image: url(../img/external-icon.png); 545 {
127 background-image: linear-gradient(transparent, transparent), 546 margin-right: -80px;
128 url(../img/external-icon.svg); 547 margin-left: 0px;
129 background-repeat: no-repeat; 548 }
130 background-position: center; 549
131 background-size: 1em; 550
132 } 551 #facts-open-source
133 552 {
134 @media (min-width: 992px) 553 background-position: -68px 0px;
135 { 554 }
136 #media-header small 555
137 { 556 #facts-downloads
138 display: none; 557 {
139 } 558 background-position: 0px 0px;
140 559 }
141 #media-list 560
142 { 561 #facts-privacy
143 display: table; 562 {
144 width: 100%; 563 background-position: 0px -68px;
145 } 564 }
146 565
147 #media-list li 566 #key-facts
148 { 567 {
149 display: table-cell; 568 margin-bottom: 40px;
150 vertical-align: middle; 569 }
151 } 570
152 571 #key-facts section p
153 #media-list img 572 {
154 { 573 margin-bottom: 0px;
155 margin: 0 2em; 574 font-size: 14px;
156 } 575 }
157 } 576
158 577 #key-facts section a
159 @media (min-width: 768px) 578 {
160 { 579 font-size: 14px;
161 #media { 580 }
162 display: table;
163 width: 100%;
164 }
165
166 #media-header,
167 #media-list
168 {
169 display: table-cell;
170 vertical-align: middle;
171 width: auto;
172 }
173
174 #media-header
175 {
176 margin-bottom: 0;
177 }
178
179 #media-list { direction: rtl; }
180 [dir="rtl"] #media-list { direction: ltr; }
181
182 @supports (display: flex)
183 {
184 #media-list
185 {
186 display: flex;
187 justify-content: space-between;
188 align-items: center;
189 }
190 }
191
192 }
193
194 /******************************************************************************
195 * #abb-notification
196 *****************************************************************************/
197
198 #abb-notification h2,
199 #abb-notification h3
200 {
201 text-transform: uppercase;
202 }
203
204 #abb-logo
205 {
206 max-width: 10em;
207 }
208
209 #abb-app-store-badges img
210 {
211 width: 200px;
212 }
213
214 @media (min-width: 768px) /* tablet-breakpoint */
215 {
216 #abb-notification figure,
217 #abb-app-store-badges
218 {
219 padding-left: 2em;
220 padding-right: 2em;
221 }
222 }
223
224 /******************************************************************************
225 * #footnote
226 *****************************************************************************/
227 581
228 #footnote 582 #footnote
229 { 583 {
230 margin-top: 20px; 584 margin-top: 20px;
231 text-align: start; 585 text-align: start;
232 color: #7d7d7d; 586 color: #7d7d7d;
233 } 587 }
234 588
235 #footnote, 589 #footnote,
236 #footnote li, 590 #footnote li,
(...skipping 12 matching lines...) Expand all
249 { 603 {
250 padding-top: 5px; 604 padding-top: 5px;
251 } 605 }
252 606
253 #footnote ul 607 #footnote ul
254 { 608 {
255 margin: 0px; 609 margin: 0px;
256 padding: 0px 30px; 610 padding: 0px 30px;
257 } 611 }
258 612
259 @media(max-width: 767px) 613 .notice
260 { 614 {
261 #footnote 615 padding: 20px;
262 { 616 line-height: 1.4;
263 padding: 0px 20px; 617 color: #000;
264 } 618 background-color: #fff;
265 } 619 border: 2px solid #a1a1a1;
620 }
621
622 #ready-for-windows-notice
623 {
624 margin-bottom: 30px;
625 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld