 Issue 29720653:
  Fixes #30 - Adjustments to hero unit section of index page  (Closed) 
  Base URL: https://hg.adblockplus.org/web.adblockplus.org
    
  
    Issue 29720653:
  Fixes #30 - Adjustments to hero unit section of index page  (Closed) 
  Base URL: https://hg.adblockplus.org/web.adblockplus.org| Left: | ||
| Right: | 
| OLD | NEW | 
|---|---|
| 1 /****************************************************************************** | 1 /****************************************************************************** | 
| 2 * Temparary styles | 2 * Temparary styles | 
| 3 *****************************************************************************/ | 3 *****************************************************************************/ | 
| 4 | 4 | 
| 5 .avoid-wrap {display: inline-block;} | 5 .avoid-wrap {display: inline-block;} | 
| 6 .small {font-size: smaller;} | 6 .small {font-size: smaller;} | 
| 7 .maxthon-only {display: none;} | 7 .maxthon-only {display: none;} | 
| 8 .maxthon .maxthon-only {display: block;} | 8 .maxthon .maxthon-only {display: block;} | 
| 9 | 9 | 
| 10 #content, | |
| 11 #blog | |
| 12 { | |
| 13 padding-top: 5em; | |
| 14 } | |
| 15 | |
| 16 /****************************************************************************** | 10 /****************************************************************************** | 
| 17 * #hero-download | 11 * #hero-download | 
| 18 *****************************************************************************/ | 12 *****************************************************************************/ | 
| 19 | 13 | 
| 20 #hero-download | 14 #hero-download | 
| 21 { | 15 { | 
| 22 padding-top: 2em; | 16 padding: 3em 1em; | 
| 23 padding-bottom: 2em; | |
| 24 } | 17 } | 
| 25 | 18 | 
| 26 @media(min-width: 768px) | 19 @media (min-width: 576px) and (max-width: 1023px) | 
| 20 { | |
| 21 /* add spacing left/right on tablets */ | |
| 22 #hero-download | |
| 23 { | |
| 24 padding-left: 3em; | |
| 25 padding-right: 3em; | |
| 26 } | |
| 27 } | |
| 28 | |
| 29 @media(min-width: 1024px) | |
| 
ire
2018/03/14 07:39:15
SuperNIT: Inconsistent spacing between `@media` an
 
juliandoucette
2018/03/14 12:46:30
Done.
Good catch.
 | |
| 27 { | 30 { | 
| 28 #hero-download | 31 #hero-download | 
| 29 { | 32 { | 
| 30 padding-top: 6em; | 33 padding-top: 6em; | 
| 31 padding-bottom: 6em; | 34 /* 3em bottom looks like 6em because of thumbnail contents */ | 
| 
ire
2018/03/14 07:39:15
If the aim is to make it look like there is equal
 
juliandoucette
2018/03/14 12:46:31
4em it is?
 
ire
2018/03/14 13:27:30
I think something changed because now only 6em loo
 
juliandoucette
2018/03/14 14:13:41
Good eye. I removed the font-size change. As a res
 
juliandoucette
2018/03/14 14:17:10
It's worth considering that this text may be longe
 | |
| 35 padding-bottom: 3em; | |
| 36 } | |
| 37 } | |
| 38 | |
| 39 @media (max-width: 1023px) | |
| 
ire
2018/03/14 07:39:15
SuperNIT: The order of these media queries is a bi
 
juliandoucette
2018/03/14 12:46:30
~Done.
I have moved these around slightly to find
 
ire
2018/03/14 13:27:30
Thanks
 | |
| 40 { | |
| 41 /* force hero unit columns to break on large tablets */ | |
| 42 #hero-download .column | |
| 43 { | |
| 44 width: 100%; | |
| 32 } | 45 } | 
| 33 } | 46 } | 
| 34 | 47 | 
| 35 #hero-download h1 | 48 #hero-download h1 | 
| 36 { | 49 { | 
| 37 line-height: 1.1; | 50 /* Spacing is provided by the hero-download section */ | 
| 51 margin-top: 0; | |
| 52 /* Reduced line-height to match design without hurting accessibility */ | |
| 
juliandoucette
2018/03/14 12:46:31
Detail: Removed line-height from this change becau
 | |
| 53 line-height: 1.25; | |
| 54 } | |
| 55 | |
| 56 @media (max-width: 575px) | |
| 57 { | |
| 58 /* disable avoid-wrap inside h1 on mobile */ | |
| 59 #hero-download h1 .avoid-wrap | |
| 60 { | |
| 61 display: inline; | |
| 62 } | |
| 63 } | |
| 64 | |
| 65 @media (min-width: 576px) | |
| 66 { | |
| 67 /* make h1 larger sooner than usual */ | |
| 68 #hero-download h1 | |
| 69 { | |
| 70 font-size: 2.4em | |
| 
ire
2018/03/14 07:39:15
NIT: Missing semicolon
 
juliandoucette
2018/03/14 12:46:31
Done.
Good catch.
 | |
| 71 } | |
| 72 | |
| 73 /* force break without <br> on large screens */ | |
| 74 #hero-download h1 .avoid-wrap:first-of-type | |
| 75 { | |
| 76 display: block; | |
| 77 } | |
| 38 } | 78 } | 
| 39 | 79 | 
| 40 #hero-download-tos | 80 #hero-download-tos | 
| 41 { | 81 { | 
| 42 font-size: 10px; | 82 margin-bottom: 0.5em; | 
| 
ire
2018/03/14 07:39:15
Suggest: Change this element to a <p> instead of a
 
juliandoucette
2018/03/14 12:46:31
I changed it from a p to a div because p has margi
 
ire
2018/03/14 13:27:30
Ack. Because of collapsible margins the top margin
 
juliandoucette
2018/03/14 14:13:41
~Ack. I could change the div.small to p.small and
 | |
| 43 } | 83 } | 
| 44 | 84 | 
| 45 #hero-download-button | 85 #hero-download-button | 
| 46 { | 86 { | 
| 47 display: block; | 87 display: inline-block; | 
| 88 min-width: 250px; | |
| 89 /* stretch full-width <= small tablets */ | |
| 90 width: 100%; | |
| 91 /* 0.2em taller than normal buttons */ | |
| 92 padding-top: 0.8em; | |
| 93 padding-bottom: 0.8em; | |
| 48 } | 94 } | 
| 49 | 95 | 
| 50 @media(min-width: 768px) | 96 @media (min-width: 576px) | 
| 51 { | 97 { | 
| 52 #hero-download-button | 98 #hero-download-button | 
| 53 { | 99 { | 
| 54 display: inline-block; | 100 /* force auto-width >= small tablets */ | 
| 55 min-width: 350px; | 101 width: auto; | 
| 56 } | 102 } | 
| 57 } | 103 } | 
| 58 | 104 | 
| 59 #hero-download-video | 105 #hero-download-video | 
| 60 { | 106 { | 
| 61 display: none; | 107 /* add 1em space above on phones & tablets */ | 
| 108 margin-top: 1em; | |
| 109 /* prevent default full-width on small tablets */ | |
| 110 max-width: 550px; | |
| 62 } | 111 } | 
| 63 | 112 | 
| 64 @media(min-width: 768px) | 113 @media(min-width: 1024px) | 
| 65 { | 114 { | 
| 66 #hero-download-video | 115 #hero-download-video | 
| 67 { | 116 { | 
| 68 display: block; | 117 /* keep aligned-top despite padding below */ | 
| 118 margin-top: -1em; | |
| 119 /* provide a little space between thumbnail and border + shadow */ | |
| 120 padding: 1em; | |
| 69 } | 121 } | 
| 70 } | 122 } | 
| 71 | 123 | 
| 124 #hero-download-video.has-iframe | |
| 125 { | |
| 126 /* remove space around thumbnail when thumbnail is replaced by video */ | |
| 127 padding: 0; | |
| 128 } | |
| 129 | |
| 130 /** Hide the video border + shadow only when the thumbnail alone is showing */ | |
| 131 #hero-download-video.hide-disclaimer:not(.has-iframe) | |
| 132 { | |
| 133 border-color: transparent; | |
| 134 /* there is no box-shadow-color property :( */ | |
| 135 box-shadow: 1px 1px 0 0 transparent; | |
| 136 } | |
| 137 | |
| 138 /* The thumbnail is taller than the video. But it's hard to see because of the | |
| 139 * reflection and whitespace at the bottom. As a result, I am cutting out the | |
| 140 * whitespace and reflection when I show the disclaimer so that the section | |
| 141 * doesn't visibly resize when the thumbnail is replaced by the a iframe. | |
| 142 */ | |
| 143 | |
| 144 #hero-download-video:not(.hide-disclaimer) .video-thumbnail | |
| 145 { | |
| 146 margin-bottom: -2.5em; | |
| 147 } | |
| 148 | |
| 149 #hero-download-video:not(.hide-disclaimer), | |
| 150 #hero-download-video.has-iframe | |
| 151 { | |
| 152 margin-bottom: 2.5em; | |
| 153 } | |
| 154 | |
| 72 /****************************************************************************** | 155 /****************************************************************************** | 
| 73 * #media | 156 * #media | 
| 74 *****************************************************************************/ | 157 *****************************************************************************/ | 
| 75 | 158 | 
| 76 #media-section { clear: both; } | 159 #media-section { clear: both; } | 
| 77 | 160 | 
| 78 #media-header h2, | 161 #media-header h2, | 
| 79 #media-list | 162 #media-list | 
| 80 { | 163 { | 
| 81 margin: 0; | 164 margin: 0; | 
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 262 padding: 0px 30px; | 345 padding: 0px 30px; | 
| 263 } | 346 } | 
| 264 | 347 | 
| 265 @media(max-width: 767px) | 348 @media(max-width: 767px) | 
| 266 { | 349 { | 
| 267 #footnote | 350 #footnote | 
| 268 { | 351 { | 
| 269 padding: 0px 20px; | 352 padding: 0px 20px; | 
| 270 } | 353 } | 
| 271 } | 354 } | 
| OLD | NEW |