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

Delta Between Two Patch Sets: static/css/index.css

Issue 29735569: Fixes #19 - Define how conditional text should be displayed on the index page (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Left Patch Set: Created March 28, 2018, 2:08 p.m.
Right Patch Set: Separate conditional blocks Created April 5, 2018, 7:23 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « includes/hero-download-conditional.tmpl ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 * Browser-based styles 11 * Browser-based styles
ire 2018/03/28 14:11:09 See https://codereview.adblockplus.org/29727563/di
18 *****************************************************************************/ 12 *****************************************************************************/
19 13
20 .show-on-msie { display: none; } 14 .show-on-msie { display: none; }
21 .msie .show-on-msie { display: block; } 15 .msie .show-on-msie { display: block; }
22 .msie .hide-on-msie { display: none; } 16 .msie .hide-on-msie { display: none; }
23 17
24 /****************************************************************************** 18 /******************************************************************************
25 * #hero-download 19 * #hero-download
26 *****************************************************************************/ 20 *****************************************************************************/
27 21
28 #hero-download 22 #hero-download
29 { 23 {
30 padding-top: 2em; 24 padding: 3em 1em;
31 padding-bottom: 2em; 25 }
32 } 26
33 27 @media (min-width: 576px) and (max-width: 1023px)
34 @media(min-width: 768px) 28 {
29 /* add spacing left/right on tablets */
30 #hero-download
31 {
32 padding-left: 3em;
33 padding-right: 3em;
34 }
35 }
36
37 @media (max-width: 575px)
38 {
39 /* disable avoid-wrap inside h1 on mobile */
40 #hero-download h1 .avoid-wrap
41 {
42 display: inline;
43 }
44 }
45
46 @media (max-width: 1023px)
47 {
48 /* force hero unit columns to break on large tablets */
49 #hero-download .column
50 {
51 width: 100%;
52 }
53 }
54
55 @media (min-width: 1024px)
35 { 56 {
36 #hero-download 57 #hero-download
37 { 58 {
38 padding-top: 6em; 59 padding-top: 6em;
39 padding-bottom: 6em; 60 padding-bottom: 6em;
40 } 61 }
41 } 62 }
42 63
43 #hero-download h1 64 #hero-download h1
44 { 65 {
45 line-height: 1.1; 66 /* Spacing is provided by the hero-download section */
67 margin-top: 0;
68 }
69
70 @media (min-width: 576px)
71 {
72 /* force break without <br> on large screens */
73 #hero-download h1 .avoid-wrap:first-of-type
74 {
75 display: block;
76 }
46 } 77 }
47 78
48 #hero-download-tos 79 #hero-download-tos
49 { 80 {
50 font-size: 10px; 81 margin-bottom: 0.5em;
51 } 82 }
52 83
53 #hero-download-button 84 #hero-download-button
54 { 85 {
55 display: block; 86 display: inline-block;
56 } 87 min-width: 250px;
57 88 /* stretch full-width <= small tablets */
58 @media(min-width: 768px) 89 width: 100%;
90 /* 0.2em taller than normal buttons */
91 padding-top: 0.8em;
92 padding-bottom: 0.8em;
93 }
94
95 @media (min-width: 576px)
59 { 96 {
60 #hero-download-button 97 #hero-download-button
61 { 98 {
62 display: inline-block; 99 /* force auto-width >= small tablets */
63 min-width: 350px; 100 width: auto;
64 } 101 }
65 } 102 }
66 103
67 #hero-download-video 104 #hero-download-video
68 { 105 {
69 display: none; 106 /* add space above on phones & tablets */
70 } 107 margin-top: 2em;
71 108 /* prevent default full-width on small tablets */
72 @media(min-width: 768px) 109 max-width: 550px;
110 }
111
112 #hero-download-video
113 {
114 /* provide a little space between thumbnail and border + shadow */
115 padding: 1em 1em 0 1em;
116 }
117
118 @media (min-width: 1024px)
73 { 119 {
74 #hero-download-video 120 #hero-download-video
75 { 121 {
76 display: block; 122 /* keep aligned-top despite padding below */
77 } 123 margin-top: -1em;
78 } 124 }
125 }
126
127 #hero-download-video.has-iframe
128 {
129 /* remove space around thumbnail when thumbnail is replaced by video */
130 padding: 0;
131 }
132
133 /** Hide the video border + shadow only when the thumbnail alone is showing */
134 #hero-download-video.hide-disclaimer:not(.has-iframe)
135 {
136 border-color: transparent;
137 /* there is no box-shadow-color property :( */
138 box-shadow: 1px 1px 0 0 transparent;
139 }
140
141 /* The thumbnail is taller than the video. But it's hard to see because of the
142 * reflection and whitespace at the bottom. As a result, I am cutting out the
143 * whitespace and reflection when I show the disclaimer so that the section
144 * doesn't visibly resize when the thumbnail is replaced by the a iframe.
145 */
146
79 147
80 /****************************************************************************** 148 /******************************************************************************
81 * #media 149 * #media
82 *****************************************************************************/ 150 *****************************************************************************/
83 151
84 #media-section 152 #media-section
85 { 153 {
86 clear: both; 154 clear: both;
87 text-align: center; 155 text-align: center;
88 } 156 }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 vertical-align: middle; 268 vertical-align: middle;
201 } 269 }
202 270
203 #media-list img 271 #media-list img
204 { 272 {
205 margin: 0 2em; 273 margin: 0 2em;
206 } 274 }
207 } 275 }
208 276
209 /****************************************************************************** 277 /******************************************************************************
210 * #features 278 * #abb-cross-promotion
211 *****************************************************************************/ 279 *****************************************************************************/
212 280
213 #features 281 #abb-cross-promotion
214 {
215 text-align: center;
216 padding-top: 3em;
217 padding-bottom: 3em;
218 }
219
220 #features h2
221 {
222 text-transform: uppercase;
223 }
224
225 @media (max-width: 575px)
226 {
227 #features .column
228 {
229 margin-bottom: 3em;
230 }
231
232 #features .column:last-of-type
233 {
234 margin-bottom: 0;
235 }
236 }
237
238 @media (min-width: 576px) and (max-width: 1023px)
239 {
240 #features
241 {
242 text-align: left;
243 }
244
245 [dir="rtl"] #features
246 {
247 text-align: right;
248 }
249
250 #features .column
251 {
252 position: relative;
253 width: auto;
254 padding: 0 3em 2em 10.5em;
255 }
256
257 [dir="rtl"] #features .column
258 {
259 padding: 0 10.5em 2em 3em;
260 }
261
262 #features .column:last-of-type
263 {
264 padding-bottom: 0;
265 }
266
267 #features img
268 {
269 position: absolute;
270 left: 3em;
271 top: 0.5em;
272 }
273
274 [dir="rtl"] #features img
275 {
276 left: auto;
277 right: 3em;
278 }
279
280 #features h2
281 {
282 margin: 0;
283 }
284 }
285
286 /******************************************************************************
287 * #abb-notification
288 *****************************************************************************/
289
290 #abb-notification
291 { 282 {
292 padding: 3em 0; 283 padding: 3em 0;
293 } 284 }
294 285
295 #abb-notification h2 286 #abb-cross-promotion h2
296 { 287 {
297 margin-top: 0; 288 margin-top: 0;
298 margin-bottom: 1.5em; 289 margin-bottom: 1.5em;
299 } 290 }
300 291
301 #abb-notification h2, 292 #abb-cross-promotion h2,
302 #abb-notification h3 293 #abb-cross-promotion h3
303 { 294 {
304 text-transform: uppercase; 295 text-transform: uppercase;
305 } 296 }
306 297
307 #abb-logo 298 #abb-logo
308 { 299 {
309 max-width: 10em; 300 max-width: 10em;
310 } 301 }
311 302
312 #abb-app-store-badges 303 #abb-app-store-badges
(...skipping 14 matching lines...) Expand all
327 } 318 }
328 } 319 }
329 320
330 @media (min-width: 576px) 321 @media (min-width: 576px)
331 { 322 {
332 #abb-app-store-badges .one-half 323 #abb-app-store-badges .one-half
333 { 324 {
334 width: 50%; 325 width: 50%;
335 } 326 }
336 327
337 #abb-notification figure, 328 #abb-cross-promotion figure,
338 #abb-app-store-badges 329 #abb-app-store-badges
339 { 330 {
340 padding-left: 2em; 331 padding-left: 2em;
341 padding-right: 2em; 332 padding-right: 2em;
342 } 333 }
343 } 334 }
344 335
345 /****************************************************************************** 336 /******************************************************************************
346 * #footnote 337 * #footnote
347 *****************************************************************************/ 338 *****************************************************************************/
348 339
349 #footnote 340 #footnote
350 { 341 {
351 padding-top: 3em; 342 padding-top: 3em;
352 padding-bottom: 2em; 343 padding-bottom: 2em;
353 font-size: 13px; 344 font-size: 13px;
354 color: #7d7d7d; 345 color: #7d7d7d;
355 } 346 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld