| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 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 /****************************************************************************** | 10 /****************************************************************************** |
| 11 * #hero-download | 11 * #hero-download |
| 12 *****************************************************************************/ | 12 *****************************************************************************/ |
| 13 | 13 |
| 14 #hero-download | 14 #hero-download |
| 15 { | 15 { |
| 16 padding: 3em 1em; | 16 padding: 3em 1em; |
| 17 } | 17 } |
| 18 | 18 |
| 19 @media (min-width: 576px) and (max-width: 1023px) | 19 @media (min-width: 576px) and (max-width: 1023px) |
| 20 { | 20 { |
| 21 /* add spacing left/right on tablets */ | 21 /* add spacing left/right on tablets */ |
| 22 #hero-download | 22 #hero-download |
| 23 { | 23 { |
| 24 padding-left: 3em; | 24 padding-left: 3em; |
| 25 padding-right: 3em; | 25 padding-right: 3em; |
| 26 } | 26 } |
| 27 } | 27 } |
| 28 | 28 |
| 29 @media(min-width: 1024px) | 29 @media (max-width: 575px) |
|
ire
2018/03/14 07:39:15
SuperNIT: Inconsistent spacing between `@media` an
juliandoucette
2018/03/14 12:46:30
Done.
Good catch.
| |
| 30 { | 30 { |
| 31 #hero-download | 31 /* disable avoid-wrap inside h1 on mobile */ |
| 32 { | 32 #hero-download h1 .avoid-wrap |
| 33 padding-top: 6em; | 33 { |
| 34 /* 3em bottom looks like 6em because of thumbnail contents */ | 34 display: inline; |
|
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 } | 35 } |
| 37 } | 36 } |
| 38 | 37 |
| 39 @media (max-width: 1023px) | 38 @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 { | 39 { |
| 41 /* force hero unit columns to break on large tablets */ | 40 /* force hero unit columns to break on large tablets */ |
| 42 #hero-download .column | 41 #hero-download .column |
| 43 { | 42 { |
| 44 width: 100%; | 43 width: 100%; |
| 45 } | 44 } |
| 46 } | 45 } |
| 47 | 46 |
| 47 @media (min-width: 1024px) | |
| 48 { | |
| 49 #hero-download | |
| 50 { | |
| 51 padding-top: 6em; | |
| 52 padding-bottom: 6em; | |
| 53 } | |
| 54 } | |
| 55 | |
| 48 #hero-download h1 | 56 #hero-download h1 |
| 49 { | 57 { |
| 50 /* Spacing is provided by the hero-download section */ | 58 /* Spacing is provided by the hero-download section */ |
| 51 margin-top: 0; | 59 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 } | 60 } |
| 64 | 61 |
| 65 @media (min-width: 576px) | 62 @media (min-width: 576px) |
| 66 { | 63 { |
| 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 */ | 64 /* force break without <br> on large screens */ |
| 74 #hero-download h1 .avoid-wrap:first-of-type | 65 #hero-download h1 .avoid-wrap:first-of-type |
| 75 { | 66 { |
| 76 display: block; | 67 display: block; |
| 77 } | 68 } |
| 78 } | 69 } |
| 79 | 70 |
| 80 #hero-download-tos | 71 #hero-download-tos |
| 81 { | 72 { |
| 82 margin-bottom: 0.5em; | 73 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
| |
| 83 } | 74 } |
| 84 | 75 |
| 85 #hero-download-button | 76 #hero-download-button |
| 86 { | 77 { |
| 87 display: inline-block; | 78 display: inline-block; |
| 88 min-width: 250px; | 79 min-width: 250px; |
| 89 /* stretch full-width <= small tablets */ | 80 /* stretch full-width <= small tablets */ |
| 90 width: 100%; | 81 width: 100%; |
| 91 /* 0.2em taller than normal buttons */ | 82 /* 0.2em taller than normal buttons */ |
| 92 padding-top: 0.8em; | 83 padding-top: 0.8em; |
| 93 padding-bottom: 0.8em; | 84 padding-bottom: 0.8em; |
| 94 } | 85 } |
| 95 | 86 |
| 96 @media (min-width: 576px) | 87 @media (min-width: 576px) |
| 97 { | 88 { |
| 98 #hero-download-button | 89 #hero-download-button |
| 99 { | 90 { |
| 100 /* force auto-width >= small tablets */ | 91 /* force auto-width >= small tablets */ |
| 101 width: auto; | 92 width: auto; |
| 102 } | 93 } |
| 103 } | 94 } |
| 104 | 95 |
| 105 #hero-download-video | 96 #hero-download-video |
| 106 { | 97 { |
| 107 /* add 1em space above on phones & tablets */ | 98 /* add space above on phones & tablets */ |
| 108 margin-top: 1em; | 99 margin-top: 2em; |
| 109 /* prevent default full-width on small tablets */ | 100 /* prevent default full-width on small tablets */ |
| 110 max-width: 550px; | 101 max-width: 550px; |
| 111 } | 102 } |
| 112 | 103 |
| 113 @media(min-width: 1024px) | 104 #hero-download-video |
| 105 { | |
| 106 /* provide a little space between thumbnail and border + shadow */ | |
| 107 padding: 1em 1em 0 1em; | |
| 108 } | |
| 109 | |
| 110 @media (min-width: 1024px) | |
| 114 { | 111 { |
| 115 #hero-download-video | 112 #hero-download-video |
| 116 { | 113 { |
| 117 /* keep aligned-top despite padding below */ | 114 /* keep aligned-top despite padding below */ |
| 118 margin-top: -1em; | 115 margin-top: -1em; |
| 119 /* provide a little space between thumbnail and border + shadow */ | |
| 120 padding: 1em; | |
| 121 } | 116 } |
| 122 } | 117 } |
| 123 | 118 |
| 124 #hero-download-video.has-iframe | 119 #hero-download-video.has-iframe |
| 125 { | 120 { |
| 126 /* remove space around thumbnail when thumbnail is replaced by video */ | 121 /* remove space around thumbnail when thumbnail is replaced by video */ |
| 127 padding: 0; | 122 padding: 0; |
| 128 } | 123 } |
| 129 | 124 |
| 130 /** Hide the video border + shadow only when the thumbnail alone is showing */ | 125 /** Hide the video border + shadow only when the thumbnail alone is showing */ |
| 131 #hero-download-video.hide-disclaimer:not(.has-iframe) | 126 #hero-download-video.hide-disclaimer:not(.has-iframe) |
| 132 { | 127 { |
| 133 border-color: transparent; | 128 border-color: transparent; |
| 134 /* there is no box-shadow-color property :( */ | 129 /* there is no box-shadow-color property :( */ |
| 135 box-shadow: 1px 1px 0 0 transparent; | 130 box-shadow: 1px 1px 0 0 transparent; |
| 136 } | 131 } |
| 137 | 132 |
| 138 /* The thumbnail is taller than the video. But it's hard to see because of the | 133 /* 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 | 134 * 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 | 135 * 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. | 136 * doesn't visibly resize when the thumbnail is replaced by the a iframe. |
| 142 */ | 137 */ |
| 143 | 138 |
| 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 | 139 |
| 155 /****************************************************************************** | 140 /****************************************************************************** |
| 156 * #media | 141 * #media |
| 157 *****************************************************************************/ | 142 *****************************************************************************/ |
| 158 | 143 |
| 159 #media-section { clear: both; } | 144 #media-section |
| 160 | 145 { |
| 161 #media-header h2, | 146 clear: both; |
| 162 #media-list | 147 text-align: center; |
| 163 { | |
| 164 margin: 0; | |
| 165 } | 148 } |
| 166 | 149 |
| 167 #media-header | 150 #media-header |
| 168 { | 151 { |
| 169 margin-bottom: 2em; | 152 margin-bottom: 1em; |
| 170 } | 153 } |
| 171 | 154 |
| 172 #media-header h2 | 155 #media-header h2 |
| 173 { | 156 { |
| 174 font-size: 1em; | 157 font-size: 1em; |
| 175 font-weight: normal; | 158 font-weight: normal; |
| 176 text-transform: uppercase; | 159 text-transform: uppercase; |
| 160 } | |
| 161 | |
| 162 #media-header h2, | |
| 163 #media-list | |
| 164 { | |
| 165 margin: 0; | |
| 177 } | 166 } |
| 178 | 167 |
| 179 #media-list li | 168 #media-list li |
| 180 { | 169 { |
| 181 display: inline-block; | 170 display: inline-block; |
| 182 } | 171 } |
| 183 | 172 |
| 184 #media-list img | 173 #media-list img |
| 185 { | 174 { |
| 186 max-width: 10em; | 175 max-width: 10em; |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 213 border-radius: 50%; | 202 border-radius: 50%; |
| 214 background-color: #000; | 203 background-color: #000; |
| 215 background-image: url(../img/external-icon.png); | 204 background-image: url(../img/external-icon.png); |
| 216 background-image: linear-gradient(transparent, transparent), | 205 background-image: linear-gradient(transparent, transparent), |
| 217 url(../img/external-icon.svg); | 206 url(../img/external-icon.svg); |
| 218 background-repeat: no-repeat; | 207 background-repeat: no-repeat; |
| 219 background-position: center; | 208 background-position: center; |
| 220 background-size: 1em; | 209 background-size: 1em; |
| 221 } | 210 } |
| 222 | 211 |
| 223 @media (min-width: 992px) | 212 @media (min-width: 1024px) |
| 224 { | 213 { |
| 225 #media-header small | 214 #media |
| 226 { | 215 { |
| 227 display: none; | |
| 228 } | |
| 229 | |
| 230 #media-list | |
| 231 { | |
| 232 display: table; | |
| 233 width: 100%; | |
| 234 } | |
| 235 | |
| 236 #media-list li | |
| 237 { | |
| 238 display: table-cell; | |
| 239 vertical-align: middle; | |
| 240 } | |
| 241 | |
| 242 #media-list img | |
| 243 { | |
| 244 margin: 0 2em; | |
| 245 } | |
| 246 } | |
| 247 | |
| 248 @media (min-width: 768px) | |
| 249 { | |
| 250 #media { | |
| 251 display: table; | 216 display: table; |
| 252 width: 100%; | 217 width: 100%; |
| 253 } | 218 } |
| 254 | 219 |
| 255 #media-header, | 220 #media-header, |
| 256 #media-list | 221 #media-list |
| 257 { | 222 { |
| 258 display: table-cell; | 223 display: table-cell; |
| 259 vertical-align: middle; | 224 vertical-align: middle; |
| 260 width: auto; | 225 width: auto; |
| 261 } | 226 } |
| 262 | 227 |
| 263 #media-header | 228 #media-header |
| 264 { | 229 { |
| 265 margin-bottom: 0; | 230 margin-bottom: 0; |
| 231 } | |
| 232 | |
| 233 #media-header small | |
| 234 { | |
| 235 display: none; | |
| 266 } | 236 } |
| 267 | 237 |
| 268 #media-list { direction: rtl; } | 238 #media-list { direction: rtl; } |
| 269 [dir="rtl"] #media-list { direction: ltr; } | 239 [dir="rtl"] #media-list { direction: ltr; } |
| 270 | 240 |
| 271 @supports (display: flex) | 241 @supports (display: flex) |
| 272 { | 242 { |
| 273 #media-list | 243 #media-list |
| 274 { | 244 { |
| 275 display: flex; | 245 display: flex; |
| 276 justify-content: space-between; | 246 justify-content: space-between; |
| 277 align-items: center; | 247 align-items: center; |
| 278 } | 248 } |
| 279 } | 249 } |
| 280 | 250 |
| 251 #media-list | |
| 252 { | |
| 253 display: table; | |
| 254 width: 100%; | |
| 255 } | |
| 256 | |
| 257 #media-list li | |
| 258 { | |
| 259 display: table-cell; | |
| 260 vertical-align: middle; | |
| 261 } | |
| 262 | |
| 263 #media-list img | |
| 264 { | |
| 265 margin: 0 2em; | |
| 266 } | |
| 281 } | 267 } |
| 282 | 268 |
| 283 /****************************************************************************** | 269 /****************************************************************************** |
| 284 * #abb-notification | 270 * #abb-notification |
| 285 *****************************************************************************/ | 271 *****************************************************************************/ |
| 286 | 272 |
| 287 #abb-notification h2, | 273 #abb-notification h2, |
| 288 #abb-notification h3 | 274 #abb-notification h3 |
| 289 { | 275 { |
| 290 text-transform: uppercase; | 276 text-transform: uppercase; |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 309 padding-right: 2em; | 295 padding-right: 2em; |
| 310 } | 296 } |
| 311 } | 297 } |
| 312 | 298 |
| 313 /****************************************************************************** | 299 /****************************************************************************** |
| 314 * #footnote | 300 * #footnote |
| 315 *****************************************************************************/ | 301 *****************************************************************************/ |
| 316 | 302 |
| 317 #footnote | 303 #footnote |
| 318 { | 304 { |
| 319 margin-top: 20px; | 305 padding-top: 3em; |
| 320 text-align: start; | 306 padding-bottom: 2em; |
| 307 font-size: 13px; | |
| 321 color: #7d7d7d; | 308 color: #7d7d7d; |
| 322 } | 309 } |
| 323 | |
| 324 #footnote, | |
| 325 #footnote li, | |
| 326 #footnote a, | |
| 327 #footnote strong | |
| 328 { | |
| 329 font-size: 11px; | |
| 330 } | |
| 331 | |
| 332 #footnote li | |
| 333 { | |
| 334 padding-bottom: 5px; | |
| 335 } | |
| 336 | |
| 337 #footnote li:first-child | |
| 338 { | |
| 339 padding-top: 5px; | |
| 340 } | |
| 341 | |
| 342 #footnote ul | |
| 343 { | |
| 344 margin: 0px; | |
| 345 padding: 0px 30px; | |
| 346 } | |
| 347 | |
| 348 @media(max-width: 767px) | |
| 349 { | |
| 350 #footnote | |
| 351 { | |
| 352 padding: 0px 20px; | |
| 353 } | |
| 354 } | |
| LEFT | RIGHT |