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