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

Side by Side Diff: static/css/index.css

Issue 29722659: Fixes #36 - Adjusted heading font-sizes and line-heights (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Created March 14, 2018, 1:33 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pages/yandex-browser.md ('k') | static/css/index-desktop.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /******************************************************************************
2 * Temparary styles
3 *****************************************************************************/
4
5 .avoid-wrap {display: inline-block;}
6 .small {font-size: smaller;}
7 .maxthon-only {display: none;}
8 .maxthon .maxthon-only {display: block;}
9
1 #content, 10 #content,
2 #blog 11 #blog
3 { 12 {
4 padding-top: 5em; 13 padding-top: 5em;
5 } 14 }
6 15
7 #key-facts h1 16 /******************************************************************************
8 { 17 * #hero-download
9 font-size: 16px; 18 *****************************************************************************/
10 } 19
11 20 #hero-download
12 #content .sprite 21 {
13 { 22 padding-top: 2em;
14 background-image: url(../img/sprite-index.png); 23 padding-bottom: 2em;
15 } 24 }
16 25
17 #abb-banner 26 @media(min-width: 768px)
18 { 27 {
19 background-color: #ffffff; 28 #hero-download
29 {
30 padding-top: 6em;
31 padding-bottom: 6em;
32 }
33 }
34
35 #hero-download h1
36 {
37 line-height: 1.1;
38 }
39
40 #hero-download-tos
41 {
42 font-size: 10px;
43 }
44
45 #hero-download-button
46 {
47 display: block;
48 }
49
50 @media(min-width: 768px)
51 {
52 #hero-download-button
53 {
54 display: inline-block;
55 min-width: 350px;
56 }
57 }
58
59 #hero-download-video
60 {
20 display: none; 61 display: none;
21 padding: 50px 40px 40px 40px; 62 }
22 margin-bottom: 30px; 63
64 @media(min-width: 768px)
65 {
66 #hero-download-video
67 {
68 display: block;
69 }
70 }
71
72 /******************************************************************************
73 * #media
74 *****************************************************************************/
75
76 #media-section
77 {
78 clear: both;
23 text-align: center; 79 text-align: center;
24 } 80 }
25 81
26 #abb-banner h2 82 #media-header
27 { 83 {
28 font-size: 28px; 84 margin-bottom: 1em;
29 font-weight: bold; 85 }
30 color: #333333; 86
31 margin: 0px; 87 #media-header h2
32 } 88 {
33 89 font-size: 1em;
34 #abb-banner img 90 font-weight: normal;
35 { 91 text-transform: uppercase;
36 margin: 30px 0px 40px 0px; 92 }
37 width: 40%; 93
38 min-width: 200px; 94 #media-header h2,
39 } 95 #media-list
40 96 {
41 #abb-banner a 97 margin: 0;
42 { 98 }
43 display: none; 99
44 padding: 20px; 100 #media-list li
45 background-color: #2f8ecb; 101 {
46 text-decoration: none; 102 display: inline-block;
47 font-size: 24px; 103 }
48 font-weight: bold; 104
49 color: #ffffff; 105 #media-list img
50 border-radius: 5px; 106 {
51 } 107 max-width: 10em;
52 108 max-height: 3em;
53 #content.ua-android, 109 margin: 0 1em 1em;
54 #content.ua-ios 110 }
55 { 111
56 margin-top: 0px; 112 #media-list a
57 } 113 {
58 114 position: relative;
59 #content.ua-android #abb-banner,
60 #content.ua-ios #abb-banner,
61 #content.ua-android #abb-android-download,
62 #content.ua-ios #abb-ios-download
63 {
64 display: block; 115 display: block;
65 } 116 }
66 117
67 #content.ua-android #adblock-browser-notification, 118 #media-list a:hover img
68 #content.ua-ios #adblock-browser-notification 119 {
69 { 120 opacity: 0.3;
70 display: none; 121 }
71 } 122
72 123 #media-list a:hover:after
73 #main, #home-video 124 {
74 { 125 content: "";
75 display: inline-block;
76 vertical-align: top; /* Fix for https://bugzil.la/1320660 */
77 }
78
79 #maxthon-instruction, #edge-teaser
80 {
81 background: #ffffff;
82 padding: 10px;
83 border: 1px solid #c9c9c9;
84 box-shadow: 1px 1px 0 0 #dbdbdb;
85 }
86
87 #maxthon-instruction,
88 html[lang^="zh_"] #content.maxthon #home-video,
89 #content.maxthon #feature-free,
90 #content.maxthon #terms-message,
91 #feature-maxthon
92 {
93 display: none;
94 }
95
96 #home-video
97 {
98 max-width: 520px;
99 }
100
101 html[lang^="zh_"] #content.maxthon #maxthon-instruction
102 {
103 display: inline-block;
104 padding: 0px;
105 }
106
107 #content.maxthon #feature-maxthon
108 {
109 display: inline-block;
110 }
111
112 #summary h1, #summary h2
113 {
114 font-weight: normal;
115 margin: 0;
116 }
117
118 #summary h1
119 {
120 font-size: 60px;
121 line-height: 50px;
122 margin-bottom: 8px;
123 }
124
125 #summary h2
126 {
127 font-size: 22px;
128 color: #d50215;
129 }
130
131 #summary ul
132 {
133 list-style-type: none;
134 margin: 10px 0px 16px 0px;
135 padding-left: 40px;
136 padding-right: 0px;
137 color: #333333;
138 }
139
140 html[dir="rtl"] #summary ul
141 {
142 padding-right: 40px;
143 padding-left: 0px;
144 }
145
146 #summary li
147 {
148 margin-bottom: 5px;
149 line-height: 24px;
150 }
151
152 #summary li.emphasized
153 {
154 font-weight: bold;
155 }
156
157 #summary li .sprite
158 {
159 position: absolute; 126 position: absolute;
160 width: 12px; 127 top: 50%;
161 height: 11px; 128 left: 50%;
162 margin-top: 4px; 129 height: 1em;
163 margin-left: -17px; 130 width: 1em;
164 margin-right: 0px; 131 padding: 1em;
165 background-image: url(../img/sprite-main.png); 132 margin-left: -1em;
133 margin-top: -1em;
134 border-radius: 50%;
135 background-color: #000;
136 background-image: url(../img/external-icon.png);
137 background-image: linear-gradient(transparent, transparent),
138 url(../img/external-icon.svg);
166 background-repeat: no-repeat; 139 background-repeat: no-repeat;
167 background-position: -166px 0px; 140 background-position: center;
168 } 141 background-size: 1em;
169 142 }
170 .license-note 143
171 { 144 @media (min-width: 1024px)
172 display: none; 145 {
173 font-weight: normal; 146 #media
174 } 147 {
175 148 display: table;
176 html[dir="rtl"] #summary li .sprite 149 width: 100%;
177 { 150 }
178 margin-right: -17px; 151
179 margin-left: 0px; 152 #media-header,
180 } 153 #media-list
181 154 {
182 #terms-message, 155 display: table-cell;
183 #terms-message a 156 vertical-align: middle;
184 { 157 width: auto;
185 font-size: 12px; 158 }
186 } 159
187 160 #media-header
188 /* This cannot be just .install-button because a:link will have a higher 161 {
189 specificity otherwise (overrides text color) */ 162 margin-bottom: 0;
190 #install .install-button 163 }
191 { 164
192 display: none; 165 #media-header small
193 position: relative; 166 {
194 width: 305px; 167 display: none;
195 height: 50px; 168 }
196 color: #fff; 169
197 font-size: 20px; 170 #media-list { direction: rtl; }
198 text-decoration: none; 171 [dir="rtl"] #media-list { direction: ltr; }
199 text-align: center; 172
200 line-height: 50px; 173 @supports (display: flex)
201 background: #c4c4c4; 174 {
202 background: -webkit-linear-gradient(top, #c4c4c4, #9e9e9e); 175 #media-list
203 background: -moz-linear-gradient(top, #c4c4c4, #9e9e9e); 176 {
204 background: -ms-linear-gradient(top, #c4c4c4, #9e9e9e); 177 display: flex;
205 background: -o-linear-gradient(top, #c4c4c4, #9e9e9e); 178 justify-content: space-between;
206 background: linear-gradient(top, #c4c4c4, #9e9e9e); 179 align-items: center;
207 box-shadow: 0 1px 0 0 #6b6b6b, 0 2px 0 0 #757575; 180 }
208 text-shadow: 2px 2px 2px #7a7a7a; 181 }
209 border: none; 182
210 border-radius: 3px; 183 #media-list
211 bottom: 6px; 184 {
212 -webkit-transition: box-shadow 0.3s ease; 185 display: table;
213 -moz-transition: box-shadow 0.3s ease; 186 width: 100%;
214 -ms-transition: box-shadow 0.3s ease; 187 }
215 -o-transition: box-shadow 0.3s ease; 188
216 transition: box-shadow 0.3s ease; 189 #media-list li
217 } 190 {
218 191 display: table-cell;
219 .install-button:hover 192 vertical-align: middle;
220 { 193 }
221 box-shadow: 0px 2px 7px #6f6f6f, 0 1px 0 0 #6f6f6f; 194
222 } 195 #media-list img
223 196 {
224 .install-button:active 197 margin: 0 2em;
225 { 198 }
226 background: #a2a2a2; 199 }
227 background: -webkit-linear-gradient(bottom, #cacaca, #a2a2a2); 200
228 background: -moz-linear-gradient(bottom, #cacaca, #a2a2a2); 201 /******************************************************************************
229 background: -ms-linear-gradient(bottom, #cacaca, #a2a2a2); 202 * #abb-notification
230 background: -o-linear-gradient(bottom, #cacaca, #a2a2a2); 203 *****************************************************************************/
231 background: linear-gradient(bottom, #cacaca, #a2a2a2); 204
232 box-shadow: 0px 0px 7px #6f6f6f; 205 #abb-notification h2,
233 -webkit-transition: none; 206 #abb-notification h3
234 -moz-transition: none; 207 {
235 -ms-transition: none; 208 text-transform: uppercase;
236 -o-transition: none; 209 }
237 transition: none; 210
238 bottom: 4px; 211 #abb-logo
239 } 212 {
240 213 max-width: 10em;
241 #content.android .install-button, 214 }
242 #content.firefox.ua-firefox .install-button, 215
243 #content.chrome.ua-chrome .install-button, 216 #abb-app-store-badges img
244 #content.opera.ua-opera .install-button, 217 {
245 #content.internet-explorer.ua-internet-explorer .install-button, 218 width: 200px;
246 #content.safari.ua-safari .install-button, 219 }
247 #content.yandex-browser.ua-yandex-browser .install-button, 220
248 #content.edge.ua-edge .install-button, 221 @media (min-width: 768px) /* tablet-breakpoint */
249 /* IE6 fixes */ 222 {
250 #content.firefox_ua-firefox .install-button, 223 #abb-notification figure,
251 #content.chrome_ua-chrome .install-button, 224 #abb-app-store-badges
252 #content.opera_ua-opera .install-button, 225 {
253 #content.internet-explorer_ua-internet-explorer .install-button, 226 padding-left: 2em;
254 #content.safari_ua-safari .install-button, 227 padding-right: 2em;
255 #content.yandex-browser_ua-yandex-browser .install-button, 228 }
256 #content.edge_ua-edge .install-button 229 }
257 { 230
258 background: #62c52b; 231 /******************************************************************************
259 background: -webkit-linear-gradient(top, #62c52b, #4f9d22); 232 * #footnote
260 background: -moz-linear-gradient(top, #62c52b, #4f9d22); 233 *****************************************************************************/
261 background: -ms-linear-gradient(top, #62c52b, #4f9d22);
262 background: -o-linear-gradient(top, #62c52b, #4f9d22);
263 background: linear-gradient(top, #62c52b, #4f9d22);
264 box-shadow: 0 1px 0 0 #486c15, 0 2px 0 0 #517422;
265 text-shadow: 2px 2px 2px #327d14;
266 }
267
268 #content.android .install-button:hover,
269 #content.firefox.ua-firefox .install-button:hover,
270 #content.chrome.ua-chrome .install-button:hover,
271 #content.opera.ua-opera .install-button:hover,
272 #content.internet-explorer.ua-internet-explorer .install-button:hover,
273 #content.safari.ua-safari .install-button:hover,
274 #content.yandex-browser.ua-yandex-browser .install-button:hover,
275 #content.edge.ua-edge .install-button:hover,
276 /* IE6 fixes */
277 #content.firefox_ua-firefox .install-button:hover,
278 #content.chrome_ua-chrome .install-button:hover,
279 #content.opera_ua-opera .install-button:hover,
280 #content.internet-explorer_ua-internet-explorer .install-button:hover,
281 #content.safari_ua-safari .install-button:hover,
282 #content.yandex-browser_ua-yandex-browser .install-button:hover,
283 #content.edge_ua-edge .install-button:hover
284 {
285 box-shadow: 0px 2px 7px #486c15, 0 1px 0 0 #486c15;
286 }
287
288 #content.android .install-button:active,
289 #content.firefox.ua-firefox .install-button:active,
290 #content.chrome.ua-chrome .install-button:active,
291 #content.opera.ua-opera .install-button:active,
292 #content.internet-explorer.ua-internet-explorer .install-button:active,
293 #content.safari.ua-safari .install-button:active,
294 #content.yandex-browser.ua-yandex-browser .install-button:active,
295 #content.edge.ua-edge .install-button:active,
296 /* IE6 fixes */
297 #content.firefox_ua-firefox .install-button:active,
298 #content.chrome_ua-chrome .install-button:active,
299 #content.opera_ua-opera .install-button:active,
300 #content.internet-explorer_ua-internet-explorer .install-button:active,
301 #content.safari_ua-safari .install-button:active,
302 #content.yandex-browser_ua-yandex-browser .install-button:active,
303 #content.edge_ua-edge .install-button:active
304 {
305 background: #4f9d22;
306 background: -webkit-linear-gradient(bottom, #62c52b, #4f9d22);
307 background: -moz-linear-gradient(bottom, #62c52b, #4f9d22);
308 background: -ms-linear-gradient(bottom, #62c52b, #4f9d22);
309 background: -o-linear-gradient(bottom, #62c52b, #4f9d22);
310 background: linear-gradient(bottom, #62c52b, #4f9d22);
311 box-shadow: 0px 0px 7px #486c15;
312 }
313
314 #content.firefox #install-firefox, #content.chrome #install-chrome,
315 #content.opera #install-opera, #content.android #install-android,
316 #content.internet-explorer #install-internet-explorer,
317 #content.safari #install-safari,
318 #content.yandex-browser #install-yandex-browser,
319 #content.edge #install-edge
320 {
321 display: inline-block;
322 }
323
324 #other-platform ul
325 {
326 list-style: none;
327 display: inline-block;
328 margin: 0px;
329 padding: 0;
330 vertical-align: bottom;
331 }
332
333 html[dir="rtl"] #install ul
334 {
335 margin: 0 5px 0 0;
336 }
337
338 #other-platform li
339 {
340 display: inline-block;
341 margin: 0 3px;
342 font-size: 0;
343 }
344
345 #other-platform li a
346 {
347 width: 19px;
348 height: 20px;
349 }
350
351 #platform-firefox
352 {
353 background-position: -108px -89px;
354 }
355
356 #information-android
357 {
358 display: none;
359 }
360
361 #content.android #information-android
362 {
363 display: block;
364 }
365
366 #content.firefox #platform-firefox
367 {
368 background-position: -108px -68px;
369 }
370
371 #platform-chrome
372 {
373 background-position: -88px -89px;
374 }
375
376 #content.chrome #platform-chrome
377 {
378 background-position: -88px -68px;
379 }
380
381 #platform-android
382 {
383 background-position: -68px -89px;
384 }
385
386 #content.android #platform-android
387 {
388 background-position: -68px -68px;
389 }
390
391 #platform-opera
392 {
393 background-position: -68px -131px;
394 }
395
396 #content.opera #platform-opera
397 {
398 background-position: -68px -110px;
399 }
400
401 #platform-internet-explorer
402 {
403 background-position: -108px -131px;
404 }
405
406 #content.internet-explorer #platform-internet-explorer
407 {
408 background-position: -108px -110px;
409 }
410
411 #platform-safari
412 {
413 background-position: -88px -131px;
414 }
415
416 #content.safari #platform-safari
417 {
418 background-position: -88px -110px;
419 }
420
421 #platform-yandex-browser
422 {
423 background-position: -128px -89px;
424 }
425
426 #content.yandex-browser #platform-yandex-browser
427 {
428 background-position: -128px -68px;
429 }
430
431 #platform-maxthon
432 {
433 background-position: -128px -130px;
434 }
435
436 #content.maxthon #platform-maxthon
437 {
438 background-position: -128px -109px;
439 }
440
441 #platform-edge
442 {
443 background-position: -68px -171px;
444 }
445
446 #content.edge #platform-edge
447 {
448 background-position: -68px -151px;
449 }
450
451 #content h3.subscribe-header
452 {
453 font-size: 18px;
454 margin-bottom: 0px;
455 }
456
457 #other-platform > div,
458 #content.edge #home-video,
459 #edge-teaser
460 {
461 display: none;
462 }
463
464 .warning-platform,
465 .disclaimer,
466 #maxthon-notification
467 {
468 display: none;
469 color: #D00;
470 text-align: center;
471 border: 1px solid #D00;
472 padding: 5px;
473 border-radius: 5px;
474 }
475
476 .disclaimer
477 {
478 font-size: 14px;
479 color: #000;
480 text-align: left;
481 }
482
483 #content.ua-firefox .warning-platform.firefox,
484 #content.ua-chrome .warning-platform.chrome,
485 #content.ua-android .warning-platform.android,
486 #content.ua-opera .warning-platform.opera,
487 #content.ua-internet-explorer .warning-platform.internet-explorer,
488 #content.ua-safari .warning-platform.safari,
489 #content.ua-yandex-browser .warning-platform.yandex-browser,
490 #content.ua-maxthon .warning-platform.maxthon,
491 html[lang^="zh_"] #maxthon-notification
492 {
493 display: block;
494 }
495
496 #content.firefox.ua-firefox .warning-platform.firefox,
497 #content.chrome.ua-chrome .warning-platform.chrome,
498 #content.android.ua-android .warning-platform.android,
499 #content.opera.ua-opera .warning-platform.opera,
500 #content.internet-explorer.ua-internet-explorer .warning-platform.internet-explo rer,
501 #content.safari.ua-safari .warning-platform.safari,
502 #content.yandex-browser.ua-yandex-browser .warning-platform.yandex-browser,
503 #content.maxthon.ua-maxthon .warning-platform.maxthon,
504 #content.ua-maxthon #maxthon-notification,
505 #content.maxthon #maxthon-notification,
506 /* IE6 fixes */
507 #content.firefox_ua-firefox .warning-platform.firefox,
508 #content.chrome_ua-chrome .warning-platform.chrome,
509 #content.opera_ua-opera .warning-platform.opera,
510 #content.internet-explorer_ua-internet-explorer .warning-platform.internet-explo rer,
511 #content.safari_ua-safari .warning-platform.safari,
512 #content.yandex-browser_ua-yandex-browser .warning-platform.yandex-browser,
513 #content.maxthon_ua-maxthon .warning-platform.maxthon
514 {
515 display: none;
516 }
517
518 #key-facts
519 {
520 box-sizing: content-box;
521 }
522
523 #key-facts section
524 {
525 display: inline-block;
526 }
527
528 #key-facts section h1
529 {
530 margin: 0px;
531 }
532
533 #key-facts section .sprite
534 {
535 position: absolute;
536 width: 67px;
537 height: 67px;
538 margin-top: 0px;
539 margin-left: -80px;
540 margin-right: 0px;
541 border: none;
542 }
543
544 html[dir="rtl"] #key-facts section .sprite
545 {
546 margin-right: -80px;
547 margin-left: 0px;
548 }
549
550
551 #facts-open-source
552 {
553 background-position: -68px 0px;
554 }
555
556 #facts-downloads
557 {
558 background-position: 0px 0px;
559 }
560
561 #facts-privacy
562 {
563 background-position: 0px -68px;
564 }
565
566 #key-facts
567 {
568 margin-bottom: 40px;
569 }
570
571 #key-facts section p
572 {
573 margin-bottom: 0px;
574 font-size: 14px;
575 }
576
577 #key-facts section a
578 {
579 font-size: 14px;
580 }
581 234
582 #footnote 235 #footnote
583 { 236 {
584 margin-top: 20px; 237 padding-top: 3em;
585 text-align: start; 238 padding-bottom: 2em;
239 font-size: 13px;
586 color: #7d7d7d; 240 color: #7d7d7d;
587 } 241 }
588
589 #footnote,
590 #footnote li,
591 #footnote a,
592 #footnote strong
593 {
594 font-size: 11px;
595 }
596
597 #footnote li
598 {
599 padding-bottom: 5px;
600 }
601
602 #footnote li:first-child
603 {
604 padding-top: 5px;
605 }
606
607 #footnote ul
608 {
609 margin: 0px;
610 padding: 0px 30px;
611 }
612
613 .notice
614 {
615 padding: 20px;
616 line-height: 1.4;
617 color: #000;
618 background-color: #fff;
619 border: 2px solid #a1a1a1;
620 }
621
622 #ready-for-windows-notice
623 {
624 margin-bottom: 30px;
625 }
OLDNEW
« no previous file with comments | « pages/yandex-browser.md ('k') | static/css/index-desktop.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld