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 /****************************************************************************** | 10 /****************************************************************************** |
11 * #hero-download | 11 * #hero-download |
12 *****************************************************************************/ | 12 *****************************************************************************/ |
13 | 13 |
14 #hero-download | 14 #hero-download |
15 { | 15 { |
16 padding-top: 2em; | 16 padding: 3em 1em 3em 1em; |
ire
2018/03/13 09:18:02
NIT: Use shorthand `3em 1em` instead
ire
2018/03/13 09:18:02
Shouldn't this just be 3em al around?
Spec: "Belo
juliandoucette
2018/03/13 14:23:08
Done.
juliandoucette
2018/03/13 14:23:08
No. I 3em on tablet until 1em on mobile. Sorry for
| |
17 padding-bottom: 2em; | |
18 } | 17 } |
19 | 18 |
20 @media(min-width: 768px) | 19 #hero-download h1 .avoid-wrap |
ire
2018/03/13 09:18:03
Is there a reason you didn't use `word-wrap`/`word
juliandoucette
2018/03/13 14:23:09
I think so? My intent was to prevent breaking betw
ire
2018/03/14 07:39:15
Acknowledged.
| |
20 { | |
21 display: inline; | |
22 } | |
23 | |
24 @media (min-width: 576px) | |
21 { | 25 { |
22 #hero-download | 26 #hero-download |
23 { | 27 { |
24 padding-top: 6em; | 28 padding-left: 3em; |
25 padding-bottom: 6em; | 29 padding-right: 3em; |
30 } | |
31 | |
32 #hero-download h1 | |
33 { | |
34 font-size: 2.4em | |
35 } | |
36 | |
37 #hero-download h1 .avoid-wrap | |
38 { | |
39 display: inline-block; | |
40 } | |
41 | |
42 #hero-download h1 .avoid-wrap:first-of-type | |
43 { | |
44 display: block; | |
45 } | |
46 } | |
47 | |
48 @media(min-width: 1024px) | |
49 { | |
50 #hero-download | |
51 { | |
52 padding: 6em 1em 5em 1em; | |
ire
2018/03/13 09:18:02
NIT: Shorthand `6em 1em 5em`
ire
2018/03/13 09:18:03
Shouldn't this be `6em 1em`?
Spec: "Ensure exactl
juliandoucette
2018/03/13 14:23:08
Done.
juliandoucette
2018/03/13 14:23:08
Yes and no. The ~space at the bottom of the image
| |
53 } | |
54 } | |
55 | |
56 @media (max-width: 1023.98px) | |
57 { | |
58 #hero-download .column | |
59 { | |
60 width: 100%; | |
26 } | 61 } |
27 } | 62 } |
28 | 63 |
29 #hero-download h1 | 64 #hero-download h1 |
30 { | 65 { |
66 margin-top: 0; | |
31 line-height: 1.1; | 67 line-height: 1.1; |
32 } | 68 } |
33 | 69 |
34 #hero-download-tos | 70 #hero-download-tos |
35 { | 71 { |
36 font-size: 10px; | 72 display: block; |
73 margin-bottom: 0.5em; | |
37 } | 74 } |
38 | 75 |
39 #hero-download-button | 76 #hero-download-button |
40 { | 77 { |
41 display: block; | 78 display: block; |
79 padding-top: 0.8em; | |
80 padding-bottom: 0.8em; | |
42 } | 81 } |
43 | 82 |
44 @media(min-width: 768px) | 83 #hero-download-button |
84 { | |
85 display: inline-block; | |
86 min-width: 250px; | |
87 width: 100; | |
88 } | |
89 | |
90 @media (min-width: 576px) | |
45 { | 91 { |
46 #hero-download-button | 92 #hero-download-button |
47 { | 93 { |
48 display: inline-block; | 94 width: auto; |
49 min-width: 350px; | |
50 } | 95 } |
51 } | 96 } |
52 | 97 |
98 /** Hide the video border/shadow only when the thumbnail alone is showing */ | |
99 #hero-download-video.hide-disclaimer:not(.has-iframe) | |
100 { | |
101 border: none; | |
ire
2018/03/13 09:18:02
The adding/removing of the border causes a shift.
juliandoucette
2018/03/13 14:23:09
Good catch!
| |
102 box-shadow: none; | |
103 } | |
104 | |
105 /** Add 1em of padding around the thumbnail when the disclaimer is showing */ | |
106 #hero-download-video:not(.hide-disclaimer) | |
107 { | |
108 padding: 1em; | |
109 } | |
110 | |
53 #hero-download-video | 111 #hero-download-video |
54 { | 112 { |
55 display: none; | 113 margin-top: 1em; |
114 max-width: 550px; | |
56 } | 115 } |
57 | 116 |
58 @media(min-width: 768px) | 117 @media(min-width: 1024px) |
59 { | 118 { |
60 #hero-download-video | 119 #hero-download-video |
61 { | 120 { |
62 display: block; | 121 max-width: none; |
122 margin-top: 0; | |
63 } | 123 } |
64 } | 124 } |
65 | 125 |
66 /****************************************************************************** | 126 /****************************************************************************** |
67 * #media | 127 * #media |
68 *****************************************************************************/ | 128 *****************************************************************************/ |
69 | 129 |
70 #media-section { clear: both; } | 130 #media-section { clear: both; } |
71 | 131 |
72 #media-header h2, | 132 #media-header h2, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
256 padding: 0px 30px; | 316 padding: 0px 30px; |
257 } | 317 } |
258 | 318 |
259 @media(max-width: 767px) | 319 @media(max-width: 767px) |
260 { | 320 { |
261 #footnote | 321 #footnote |
262 { | 322 { |
263 padding: 0px 20px; | 323 padding: 0px 20px; |
264 } | 324 } |
265 } | 325 } |
OLD | NEW |