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

Side by Side Diff: static/css/index.css

Issue 29716660: Fixes #5 - Update home page hero unit (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Created March 7, 2018, 8:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pages/yandex-browser.md ('k') | static/css/index-desktop.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #content 1 /******************************************************************************
2 * Temparary styles
3 *****************************************************************************/
4
5 .avoid-wrap {display: inline-block;}
6 .small {font-size: smaller;}
7 .maxthon-only {display: none;}
8 .maxthon .maxthon-only {display: block;}
9
10 /******************************************************************************
11 * #hero-download
12 *****************************************************************************/
13
14 #hero-download
2 { 15 {
3 padding-top: 5em; 16 padding-top: 2em;
4 margin: 0 auto; 17 padding-bottom: 2em;
5 } 18 }
6 19
7 #key-facts h1 20 @media(min-width: 768px)
8 { 21 {
9 font-size: 16px; 22 #hero-download
23 {
24 padding-top: 6em;
25 padding-bottom: 6em;
26 }
10 } 27 }
11 28
12 #content .sprite 29 #hero-download h1
13 { 30 {
14 background-image: url(../img/sprite-index.png); 31 line-height: 1.1;
15 } 32 }
16 33
17 #abb-banner 34 #hero-download-tos
18 { 35 {
19 background-color: #ffffff; 36 font-size: 10px;
20 display: none;
21 padding: 50px 40px 40px 40px;
22 margin-bottom: 30px;
23 text-align: center;
24 } 37 }
25 38
26 #abb-banner h2 39 #hero-download-button
27 {
28 font-size: 28px;
29 font-weight: bold;
30 color: #333333;
31 margin: 0px;
32 }
33
34 #abb-banner img
35 {
36 margin: 30px 0px 40px 0px;
37 width: 40%;
38 min-width: 200px;
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 .ua-android #content,
54 .ua-ios #content
55 {
56 margin-top: 0px;
57 }
58
59 .ua-android #abb-banner,
60 .ua-ios #abb-banner,
61 .ua-android #abb-android-download,
62 .ua-ios #abb-ios-download
63 { 40 {
64 display: block; 41 display: block;
65 } 42 }
66 43
67 #main, #video-container 44 @media(min-width: 768px)
45 {
46 #hero-download-button
47 {
48 display: inline-block;
49 min-width: 350px;
50 }
51 }
52
53 #hero-download-video
54 {
55 display: none;
56 }
57
58 @media(min-width: 768px)
59 {
60 #hero-download-video
61 {
62 display: block;
63 }
64 }
65
66 /******************************************************************************
67 * #video-container
68 *****************************************************************************/
69
70 video-container
68 { 71 {
69 display: inline-block; 72 display: inline-block;
70 vertical-align: top; /* Fix for https://bugzil.la/1320660 */ 73 vertical-align: top; /* Fix for https://bugzil.la/1320660 */
71 } 74 }
72 75
73 #video-container, #maxthon-instruction, #edge-teaser 76 #video-container
74 { 77 {
75 background: #ffffff; 78 background: #ffffff;
76 padding: 10px; 79 padding: 10px;
77 border: 1px solid #c9c9c9; 80 border: 1px solid #c9c9c9;
78 box-shadow: 1px 1px 0 0 #dbdbdb; 81 box-shadow: 1px 1px 0 0 #dbdbdb;
79 } 82 }
80 83
81 #maxthon-instruction,
82 html[lang^="zh_"] .maxthon #video,
83 .maxthon #feature-free,
84 .maxthon #terms-message,
85 #feature-maxthon
86 {
87 display: none;
88 }
89
90 #video-container 84 #video-container
91 { 85 {
92 position: relative; 86 position: relative;
93 box-sizing: border-box; 87 box-sizing: border-box;
94 width: 100%; 88 width: 100%;
95 max-width: 520px; 89 max-width: 520px;
96 } 90 }
97 91
98 #video 92 #video
99 { 93 {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 margin-top: -40px; 146 margin-top: -40px;
153 margin-left: -40px; 147 margin-left: -40px;
154 } 148 }
155 149
156 .no-js #video-play, 150 .no-js #video-play,
157 .show-disclaimer #video-play 151 .show-disclaimer #video-play
158 { 152 {
159 margin-top: -60px; 153 margin-top: -60px;
160 } 154 }
161 155
162 html[lang^="zh_"] .maxthon #maxthon-instruction 156 @media(max-width: 767)
163 { 157 {
164 display: inline-block; 158 #video-container
165 padding: 0px; 159 {
166 } 160 margin-bottom: 20px;
161 }
167 162
168 .maxthon #feature-maxthon 163 #video-disclaimer
169 { 164 {
170 display: inline-block; 165 margin: 10px;
171 } 166 }
172 167
173 #summary h1, #summary h2 168 .no-js #video-disclaimer,
174 { 169 .show-disclaimer #video-disclaimer
175 font-weight: normal; 170 {
176 margin: 0; 171 position: relative;
177 } 172 }
178 173
179 #summary h1 174 #video-play
180 { 175 {
181 font-size: 60px; 176 margin-top: -40px;
182 line-height: 50px; 177 }
183 margin-bottom: 8px;
184 }
185
186 #summary h2
187 {
188 font-size: 22px;
189 color: #d50215;
190 }
191
192 #summary ul
193 {
194 list-style-type: none;
195 margin: 10px 0px 16px 0px;
196 padding-left: 40px;
197 padding-right: 0px;
198 color: #333333;
199 }
200
201 html[dir="rtl"] #summary ul
202 {
203 padding-right: 40px;
204 padding-left: 0px;
205 }
206
207 #summary li
208 {
209 margin-bottom: 5px;
210 line-height: 24px;
211 }
212
213 #summary li.emphasized
214 {
215 font-weight: bold;
216 }
217
218 #summary li .sprite
219 {
220 position: absolute;
221 width: 12px;
222 height: 11px;
223 margin-top: 4px;
224 margin-left: -17px;
225 margin-right: 0px;
226 background-image: url(../img/sprite-main.png);
227 background-repeat: no-repeat;
228 background-position: -166px 0px;
229 }
230
231 .license-note
232 {
233 display: none;
234 font-weight: normal;
235 }
236
237 html[dir="rtl"] #summary li .sprite
238 {
239 margin-right: -17px;
240 margin-left: 0px;
241 }
242
243 #terms-message,
244 #terms-message a
245 {
246 font-size: 12px;
247 }
248
249 /* This cannot be just .install-button because a:link will have a higher
250 specificity otherwise (overrides text color) */
251 #install .install-button
252 {
253 display: none;
254 position: relative;
255 width: 305px;
256 height: 50px;
257 color: #fff;
258 font-size: 20px;
259 text-decoration: none;
260 text-align: center;
261 line-height: 50px;
262 background: #c4c4c4;
263 background: -webkit-linear-gradient(top, #c4c4c4, #9e9e9e);
264 background: -moz-linear-gradient(top, #c4c4c4, #9e9e9e);
265 background: -ms-linear-gradient(top, #c4c4c4, #9e9e9e);
266 background: -o-linear-gradient(top, #c4c4c4, #9e9e9e);
267 background: linear-gradient(top, #c4c4c4, #9e9e9e);
268 box-shadow: 0 1px 0 0 #6b6b6b, 0 2px 0 0 #757575;
269 text-shadow: 2px 2px 2px #7a7a7a;
270 border: none;
271 border-radius: 3px;
272 bottom: 6px;
273 -webkit-transition: box-shadow 0.3s ease;
274 -moz-transition: box-shadow 0.3s ease;
275 -ms-transition: box-shadow 0.3s ease;
276 -o-transition: box-shadow 0.3s ease;
277 transition: box-shadow 0.3s ease;
278 }
279
280 .install-button:hover
281 {
282 box-shadow: 0px 2px 7px #6f6f6f, 0 1px 0 0 #6f6f6f;
283 }
284
285 .install-button:active
286 {
287 background: #a2a2a2;
288 background: -webkit-linear-gradient(bottom, #cacaca, #a2a2a2);
289 background: -moz-linear-gradient(bottom, #cacaca, #a2a2a2);
290 background: -ms-linear-gradient(bottom, #cacaca, #a2a2a2);
291 background: -o-linear-gradient(bottom, #cacaca, #a2a2a2);
292 background: linear-gradient(bottom, #cacaca, #a2a2a2);
293 box-shadow: 0px 0px 7px #6f6f6f;
294 -webkit-transition: none;
295 -moz-transition: none;
296 -ms-transition: none;
297 -o-transition: none;
298 transition: none;
299 bottom: 4px;
300 }
301
302 .android .install-button,
303 .firefox.ua-firefox .install-button,
304 .chrome.ua-chrome .install-button,
305 .opera.ua-opera .install-button,
306 .internet-explorer.ua-internet-explorer .install-button,
307 .safari.ua-safari .install-button,
308 .yandex-browser.ua-yandex-browser .install-button,
309 .edge.ua-edge .install-button,
310 /* IE6 fixes */
311 .firefox_ua-firefox .install-button,
312 .chrome_ua-chrome .install-button,
313 .opera_ua-opera .install-button,
314 .internet-explorer_ua-internet-explorer .install-button,
315 .safari_ua-safari .install-button,
316 .yandex-browser_ua-yandex-browser .install-button,
317 .edge_ua-edge .install-button
318 {
319 background: #62c52b;
320 background: -webkit-linear-gradient(top, #62c52b, #4f9d22);
321 background: -moz-linear-gradient(top, #62c52b, #4f9d22);
322 background: -ms-linear-gradient(top, #62c52b, #4f9d22);
323 background: -o-linear-gradient(top, #62c52b, #4f9d22);
324 background: linear-gradient(top, #62c52b, #4f9d22);
325 box-shadow: 0 1px 0 0 #486c15, 0 2px 0 0 #517422;
326 text-shadow: 2px 2px 2px #327d14;
327 }
328
329 .android .install-button:hover,
330 .firefox.ua-firefox .install-button:hover,
331 .chrome.ua-chrome .install-button:hover,
332 .opera.ua-opera .install-button:hover,
333 .internet-explorer.ua-internet-explorer .install-button:hover,
334 .safari.ua-safari .install-button:hover,
335 .yandex-browser.ua-yandex-browser .install-button:hover,
336 .edge.ua-edge .install-button:hover,
337 /* IE6 fixes */
338 .firefox_ua-firefox .install-button:hover,
339 .chrome_ua-chrome .install-button:hover,
340 .opera_ua-opera .install-button:hover,
341 .internet-explorer_ua-internet-explorer .install-button:hover,
342 .safari_ua-safari .install-button:hover,
343 .yandex-browser_ua-yandex-browser .install-button:hover,
344 .edge_ua-edge .install-button:hover
345 {
346 box-shadow: 0px 2px 7px #486c15, 0 1px 0 0 #486c15;
347 }
348
349 .android .install-button:active,
350 .firefox.ua-firefox .install-button:active,
351 .chrome.ua-chrome .install-button:active,
352 .opera.ua-opera .install-button:active,
353 .internet-explorer.ua-internet-explorer .install-button:active,
354 .safari.ua-safari .install-button:active,
355 .yandex-browser.ua-yandex-browser .install-button:active,
356 .edge.ua-edge .install-button:active,
357 /* IE6 fixes */
358 .firefox_ua-firefox .install-button:active,
359 .chrome_ua-chrome .install-button:active,
360 .opera_ua-opera .install-button:active,
361 .internet-explorer_ua-internet-explorer .install-button:active,
362 .safari_ua-safari .install-button:active,
363 .yandex-browser_ua-yandex-browser .install-button:active,
364 .edge_ua-edge .install-button:active
365 {
366 background: #4f9d22;
367 background: -webkit-linear-gradient(bottom, #62c52b, #4f9d22);
368 background: -moz-linear-gradient(bottom, #62c52b, #4f9d22);
369 background: -ms-linear-gradient(bottom, #62c52b, #4f9d22);
370 background: -o-linear-gradient(bottom, #62c52b, #4f9d22);
371 background: linear-gradient(bottom, #62c52b, #4f9d22);
372 box-shadow: 0px 0px 7px #486c15;
373 }
374
375 .firefox #install-firefox, .chrome #install-chrome,
376 .opera #install-opera, .android #install-android,
377 .internet-explorer #install-internet-explorer,
378 .safari #install-safari,
379 .yandex-browser #install-yandex-browser,
380 .edge #install-edge
381 {
382 display: inline-block;
383 }
384
385 #other-platform ul
386 {
387 list-style: none;
388 display: inline-block;
389 margin: 0px;
390 padding: 0;
391 vertical-align: bottom;
392 }
393
394 html[dir="rtl"] #install ul
395 {
396 margin: 0 5px 0 0;
397 }
398
399 #other-platform li
400 {
401 display: inline-block;
402 margin: 0 3px;
403 font-size: 0;
404 }
405
406 #other-platform li a
407 {
408 width: 19px;
409 height: 20px;
410 }
411
412 #platform-firefox
413 {
414 background-position: -108px -89px;
415 }
416
417 #information-android
418 {
419 display: none;
420 }
421
422 .android #information-android
423 {
424 display: block;
425 }
426
427 .firefox #platform-firefox
428 {
429 background-position: -108px -68px;
430 }
431
432 #platform-chrome
433 {
434 background-position: -88px -89px;
435 }
436
437 .chrome #platform-chrome
438 {
439 background-position: -88px -68px;
440 }
441
442 #platform-android
443 {
444 background-position: -68px -89px;
445 }
446
447 .android #platform-android
448 {
449 background-position: -68px -68px;
450 }
451
452 #platform-opera
453 {
454 background-position: -68px -131px;
455 }
456
457 .opera #platform-opera
458 {
459 background-position: -68px -110px;
460 }
461
462 #platform-internet-explorer
463 {
464 background-position: -108px -131px;
465 }
466
467 .internet-explorer #platform-internet-explorer
468 {
469 background-position: -108px -110px;
470 }
471
472 #platform-safari
473 {
474 background-position: -88px -131px;
475 }
476
477 .safari #platform-safari
478 {
479 background-position: -88px -110px;
480 }
481
482 #platform-yandex-browser
483 {
484 background-position: -128px -89px;
485 }
486
487 .yandex-browser #platform-yandex-browser
488 {
489 background-position: -128px -68px;
490 }
491
492 #platform-maxthon
493 {
494 background-position: -128px -130px;
495 }
496
497 .maxthon #platform-maxthon
498 {
499 background-position: -128px -109px;
500 }
501
502 #platform-edge
503 {
504 background-position: -68px -171px;
505 }
506
507 .edge #platform-edge
508 {
509 background-position: -68px -151px;
510 }
511
512 #content h3.subscribe-header
513 {
514 font-size: 18px;
515 margin-bottom: 0px;
516 }
517
518 #other-platform > div,
519 .edge #video,
520 #edge-teaser
521 {
522 display: none;
523 }
524
525 .warning-platform,
526 .disclaimer,
527 #maxthon-notification
528 {
529 display: none;
530 color: #D00;
531 text-align: center;
532 border: 1px solid #D00;
533 padding: 5px;
534 border-radius: 5px;
535 }
536
537 .disclaimer
538 {
539 font-size: 14px;
540 color: #000;
541 text-align: left;
542 }
543
544 .ua-firefox .warning-platform.firefox,
545 .ua-chrome .warning-platform.chrome,
546 .ua-android .warning-platform.android,
547 .ua-opera .warning-platform.opera,
548 .ua-internet-explorer .warning-platform.internet-explorer,
549 .ua-safari .warning-platform.safari,
550 .ua-yandex-browser .warning-platform.yandex-browser,
551 .ua-maxthon .warning-platform.maxthon,
552 html[lang^="zh_"] #maxthon-notification
553 {
554 display: block;
555 }
556
557 .firefox.ua-firefox .warning-platform.firefox,
558 .chrome.ua-chrome .warning-platform.chrome,
559 .android.ua-android .warning-platform.android,
560 .opera.ua-opera .warning-platform.opera,
561 .internet-explorer.ua-internet-explorer .warning-platform.internet-explorer,
562 .safari.ua-safari .warning-platform.safari,
563 .yandex-browser.ua-yandex-browser .warning-platform.yandex-browser,
564 .maxthon.ua-maxthon .warning-platform.maxthon,
565 .ua-maxthon #maxthon-notification,
566 .maxthon #maxthon-notification,
567 /* IE6 fixes */
568 .firefox_ua-firefox .warning-platform.firefox,
569 .chrome_ua-chrome .warning-platform.chrome,
570 .opera_ua-opera .warning-platform.opera,
571 .internet-explorer_ua-internet-explorer .warning-platform.internet-explorer,
572 .safari_ua-safari .warning-platform.safari,
573 .yandex-browser_ua-yandex-browser .warning-platform.yandex-browser,
574 .maxthon_ua-maxthon .warning-platform.maxthon
575 {
576 display: none;
577 }
578
579 #key-facts
580 {
581 box-sizing: content-box;
582 }
583
584 #key-facts section
585 {
586 display: inline-block;
587 }
588
589 #key-facts section h1
590 {
591 margin: 0px;
592 }
593
594 #key-facts section .sprite
595 {
596 position: absolute;
597 width: 67px;
598 height: 67px;
599 margin-top: 0px;
600 margin-left: -80px;
601 margin-right: 0px;
602 border: none;
603 }
604
605 html[dir="rtl"] #key-facts section .sprite
606 {
607 margin-right: -80px;
608 margin-left: 0px;
609 }
610
611
612 #facts-open-source
613 {
614 background-position: -68px 0px;
615 }
616
617 #facts-downloads
618 {
619 background-position: 0px 0px;
620 }
621
622 #facts-privacy
623 {
624 background-position: 0px -68px;
625 }
626
627 #key-facts
628 {
629 margin-bottom: 40px;
630 }
631
632 #key-facts section p
633 {
634 margin-bottom: 0px;
635 font-size: 14px;
636 }
637
638 #key-facts section a
639 {
640 font-size: 14px;
641 }
642
643 #footnote
644 {
645 margin-top: 20px;
646 text-align: start;
647 color: #7d7d7d;
648 }
649
650 #footnote,
651 #footnote li,
652 #footnote a,
653 #footnote strong
654 {
655 font-size: 11px;
656 }
657
658 #footnote li
659 {
660 padding-bottom: 5px;
661 }
662
663 #footnote li:first-child
664 {
665 padding-top: 5px;
666 }
667
668 #footnote ul
669 {
670 margin: 0px;
671 padding: 0px 30px;
672 }
673
674 .notice
675 {
676 padding: 20px;
677 line-height: 1.4;
678 color: #000;
679 background-color: #fff;
680 border: 2px solid #a1a1a1;
681 }
682
683 #ready-for-windows-notice
684 {
685 margin-bottom: 30px;
686 } 178 }
687 179
688 /****************************************************************************** 180 /******************************************************************************
689 * #media 181 * #media
690 *****************************************************************************/ 182 *****************************************************************************/
691 183
692 #media-section { clear: both; } 184 #media-section { clear: both; }
693 185
694 #media-header h2, 186 #media-header h2,
695 #media-list 187 #media-list
(...skipping 18 matching lines...) Expand all
714 display: inline-block; 206 display: inline-block;
715 } 207 }
716 208
717 #media-list img 209 #media-list img
718 { 210 {
719 max-width: 10em; 211 max-width: 10em;
720 max-height: 3em; 212 max-height: 3em;
721 margin: 0 1em 1em; 213 margin: 0 1em 1em;
722 } 214 }
723 215
724 #media-list a 216 #media-list a
725 { 217 {
726 position: relative; 218 position: relative;
727 display: block; 219 display: block;
728 } 220 }
729 221
730 #media-list a:hover img 222 #media-list a:hover img
731 { 223 {
732 opacity: 0.3; 224 opacity: 0.3;
733 } 225 }
734 226
735 #media-list a:hover:after 227 #media-list a:hover:after
736 { 228 {
737 content: ""; 229 content: "";
738 position: absolute; 230 position: absolute;
739 top: 50%; 231 top: 50%;
740 left: 50%; 232 left: 50%;
741 height: 1em; 233 height: 1em;
742 width: 1em; 234 width: 1em;
743 padding: 1em; 235 padding: 1em;
744 margin-left: -1em; 236 margin-left: -1em;
745 margin-top: -1em; 237 margin-top: -1em;
746 border-radius: 50%; 238 border-radius: 50%;
747 background-color: #000; 239 background-color: #000;
748 background-image: url(../img/external-icon.png); 240 background-image: url(../img/external-icon.png);
749 background-image: linear-gradient(transparent, transparent), 241 background-image: linear-gradient(transparent, transparent),
750 url(../img/external-icon.svg); 242 url(../img/external-icon.svg);
751 background-repeat: no-repeat; 243 background-repeat: no-repeat;
752 background-position: center; 244 background-position: center;
753 background-size: 1em; 245 background-size: 1em;
754 } 246 }
755 247
756 @media (min-width: 768px) 248 @media (min-width: 992px)
757 { 249 {
758 #media-header small 250 #media-header small
759 { 251 {
760 display: none; 252 display: none;
761 } 253 }
762 254
763 #media-list 255 #media-list
764 { 256 {
765 display: table; 257 display: table;
766 width: 100%; 258 width: 100%;
767 } 259 }
768 260
769 #media-list li 261 #media-list li
770 { 262 {
771 display: table-cell; 263 display: table-cell;
772 vertical-align: middle; 264 vertical-align: middle;
773 } 265 }
774 266
775 #media-list img 267 #media-list img
776 { 268 {
777 margin: 0 2em; 269 margin: 0 2em;
778 } 270 }
779 } 271 }
780 272
781 @media (min-width: 992px) 273 @media (min-width: 768px)
782 { 274 {
783 #media { 275 #media {
784 display: table; 276 display: table;
785 width: 100%; 277 width: 100%;
786 } 278 }
787 279
788 #media-header, 280 #media-header,
789 #media-list 281 #media-list
790 { 282 {
791 display: table-cell; 283 display: table-cell;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 327
836 @media (min-width: 768px) /* tablet-breakpoint */ 328 @media (min-width: 768px) /* tablet-breakpoint */
837 { 329 {
838 #abb-notification figure, 330 #abb-notification figure,
839 #abb-app-store-badges 331 #abb-app-store-badges
840 { 332 {
841 padding-left: 2em; 333 padding-left: 2em;
842 padding-right: 2em; 334 padding-right: 2em;
843 } 335 }
844 } 336 }
337
338 /******************************************************************************
339 * #footnote
340 *****************************************************************************/
341
342 #footnote
343 {
344 margin-top: 20px;
345 text-align: start;
346 color: #7d7d7d;
347 }
348
349 #footnote,
350 #footnote li,
351 #footnote a,
352 #footnote strong
353 {
354 font-size: 11px;
355 }
356
357 #footnote li
358 {
359 padding-bottom: 5px;
360 }
361
362 #footnote li:first-child
363 {
364 padding-top: 5px;
365 }
366
367 #footnote ul
368 {
369 margin: 0px;
370 padding: 0px 30px;
371 }
372
373 @media(max-width: 767px)
374 {
375 #footnote
376 {
377 padding: 0px 20px;
378 }
379 }
OLDNEW
« no previous file with comments | « pages/yandex-browser.md ('k') | static/css/index-desktop.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld