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

Side by Side Diff: skin/firstRun.css

Issue 29328733: Issue 2018 - Optimized first-run page for smaller screens (Closed)
Patch Set: Created Oct. 8, 2015, 2:45 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 | « firstRun.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 @font-face { 18 @font-face {
19 font-family: 'CreteRound'; 19 font-family: "CreteRound";
20 font-style: normal; 20 font-style: normal;
21 src: url(fonts/CreteRound-Regular.otf); 21 src: url(fonts/CreteRound-Regular.otf);
22 src: local ('Ø'), 22 src: local ("Ø"),
23 /*local ('Ø') forces using no local font called CreteRound*/ 23 /*local ("Ø") forces using no local font called CreteRound*/
24 url(fonts/CreteRound-Regular.otf) format('otf'); 24 url(fonts/CreteRound-Regular.otf) format("otf");
25 } 25 }
26 26
27 @font-face { 27 @font-face {
28 font-family: 'CreteRound'; 28 font-family: "CreteRound";
29 font-style: italic; 29 font-style: italic;
30 src: url(fonts/CreteRound-Italic.otf); 30 src: url(fonts/CreteRound-Italic.otf);
31 src: local ('Ø'), 31 src: local ("Ø"),
32 /*local ('Ø') forces using no local font called CreteRound*/ 32 /*local ("Ø") forces using no local font called CreteRound*/
33 url(fonts/CreteRound-Italic.otf) format('otf'); 33 url(fonts/CreteRound-Italic.otf) format("otf");
34 } 34 }
35 35
36 body 36 body
37 { 37 {
38 font-family: Helvetica, Arial, sans-serif; 38 font-family: Helvetica, Arial, sans-serif;
39 font-size: 15px; 39 font-size: 15px;
40 line-height: 140%; 40 line-height: 140%;
41 color: #7f776b; 41 color: #7f776b;
42 background-color: #f8f6f2; 42 background-color: #f8f6f2;
43 background-image: url(background-main.png); 43 background-image: url(background-main.png);
(...skipping 28 matching lines...) Expand all
72 margin: 0; 72 margin: 0;
73 padding: 0; 73 padding: 0;
74 list-style-type: none; 74 list-style-type: none;
75 } 75 }
76 76
77 header 77 header
78 { 78 {
79 background-image: url(background.png); 79 background-image: url(background.png);
80 background-repeat: repeat-x; 80 background-repeat: repeat-x;
81 width: 100%; 81 width: 100%;
82 padding: 25px 0 0 0; 82 padding-top: 25px;
83 } 83 }
84 84
85 header h1 85 header h1
86 { 86 {
87 font-size: 24px; 87 font-size: 24px;
88 font-weight: normal; 88 font-weight: normal;
89 color: #57ab5b; 89 color: #57ab5b;
90 text-align: center; 90 text-align: center;
91 margin: 21px auto; 91 margin: 21px auto;
92 padding: 16px 0 14px 0; 92 padding: 16px 0px;
93 border: 1px #57ab5b; 93 border: 1px #57ab5b;
94 border-style: dashed none; 94 border-style: dashed none;
95 /* border parallel fix - 957px is the value 95 /* border parallel fix - 957px is the value
96 * closest to 960px(page width) which makes 96 * closest to 960px(page width) which makes
97 * the dashed border parallel 97 * the dashed border parallel
98 */ 98 */
99 max-width: 957px; 99 max-width: 957px;
100 } 100 }
101 101
102 h1,h2,h3 102 h1,
103 h2,
104 h3
103 { 105 {
104 font-family: CreteRound, Helvetica, Arial, sans-serif; 106 font-family: CreteRound, Helvetica, Arial, sans-serif;
105 } 107 }
106 108
107 h2 109 h2
108 { 110 {
109 font-size: 26px; 111 font-size: 26px;
110 font-weight: lighter; 112 font-weight: lighter;
111 color: #968d81; 113 color: #968d81;
112 line-height: 28px; 114 line-height: 28px;
113 text-align: center; 115 text-align: center;
114 margin: 0; 116 margin: 0;
115 padding: 0; 117 padding: 0;
116 } 118 }
117 119
118 h3 120 h3
119 { 121 {
120 font-size: 22px; 122 font-size: 22px;
121 color: #7F776B; 123 color: #7F776B;
122 font-weight: normal; 124 font-weight: normal;
123 margin: 0 0 10px 0; 125 margin-top: 0px;
126 margin-bottom: 10px;
124 padding: 0; 127 padding: 0;
125 line-height: 24px; 128 line-height: 24px;
126 } 129 }
127 130
128 h4 131 h4
129 { 132 {
130 font-size: 15px; 133 font-size: 15px;
131 color: #7f776b; 134 color: #7f776b;
132 font-weight: normal; 135 font-weight: normal;
133 text-align: center; 136 text-align: center;
134 margin: 0; 137 margin: 0;
135 padding: 0; 138 padding: 0;
136 } 139 }
137 140
138 section 141 section
139 { 142 {
140 margin: 0 auto; 143 margin: 0 auto;
141 margin-bottom: 30px; 144 margin-bottom: 30px;
142 max-width: 960px; 145 max-width: 960px;
143 background-image: url(background.png); 146 background-image: url(background.png);
144 padding: 40px 100px; 147 padding: 40px 100px;
148 box-sizing: border-box;
145 } 149 }
146 150
147 #general 151 #general
148 { 152 {
149 padding: 40px 0px;
150 display: table; 153 display: table;
154 padding-left: 0px;
155 padding-right: 0px;
151 } 156 }
152 157
153 #general > div 158 #general > div
154 { 159 {
155 display: table-cell; 160 display: table-cell;
156 width: 50%; 161 width: 50%;
157 vertical-align: top; 162 vertical-align: top;
158 padding: 0px 50px; 163 padding: 0px 50px;
159 border: dashed 0 #969085; 164 border: dashed 0 #969085;
160 -webkit-border-start-width: 1px; 165 -webkit-border-start-width: 1px;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 #abb-promotion-block a:hover 228 #abb-promotion-block a:hover
224 { 229 {
225 box-shadow: 0px 0px 5px #5D5D5D; 230 box-shadow: 0px 0px 5px #5D5D5D;
226 } 231 }
227 232
228 #abb-promotion-block a:active 233 #abb-promotion-block a:active
229 { 234 {
230 box-shadow: 0px 0px 5px 1px #5D5D5D; 235 box-shadow: 0px 0px 5px 1px #5D5D5D;
231 } 236 }
232 237
233 @media (max-width: 960px)
234 {
235 #general
236 {
237 display: block;
238 }
239
240 #general > div
241 {
242 display: block;
243 width: auto;
244 padding: 10px 0px;
245 margin: 0px 50px;
246 border-width: 1px 0 0;
247 }
248 }
249
250 section > p 238 section > p
251 { 239 {
252 margin: 15px 0 0 0; 240 margin-top: 15px;
253 } 241 }
254 242
255 #logo 243 #logo
256 { 244 {
257 margin: 0 auto; 245 margin: 0 auto;
258 height: 128px; 246 height: 128px;
259 width: 128px; 247 width: 128px;
260 display: block; 248 display: block;
261 } 249 }
262 250
263 #can-do-more 251 #can-do-more
264 { 252 {
265 padding: 40px 0px 0px 0px;
266 border-bottom: 4px solid #968D81; 253 border-bottom: 4px solid #968D81;
267 } 254 }
268 255
269 #can-do-more > h2
270 {
271 margin: 0 100px;
272 }
273
274 .feature-malware-image 256 .feature-malware-image
275 { 257 {
276 background-image: url(features/malware.png); 258 background-image: url(features/malware.png);
277 background-repeat: no-repeat; 259 background-repeat: no-repeat;
278 } 260 }
279 261
280 .feature-social-image 262 .feature-social-image
281 { 263 {
282 background-image: url(features/social.png); 264 background-image: url(features/social.png);
283 background-repeat: no-repeat; 265 background-repeat: no-repeat;
284 } 266 }
285 267
286 .feature-tracking-image 268 .feature-tracking-image
287 { 269 {
288 background-image: url(features/tracking.png); 270 background-image: url(features/tracking.png);
289 background-repeat: no-repeat; 271 background-repeat: no-repeat;
290 } 272 }
291 273
292 #can-do-more-content 274 #can-do-more-content
293 { 275 {
294 margin: 30px 100px 20px 100px; 276 margin-top: 30px;
295 } 277 }
296 278
297 #can-do-more #features 279 #can-do-more #features
298 { 280 {
299 border-spacing: 10px; 281 border-spacing: 10px;
300 margin: 0px;
301 padding: 0px;
302 } 282 }
303 283
304 #can-do-more .feature:not([hidden]) 284 #can-do-more .feature
305 { 285 {
306 display: block;
307 list-style-type: none; 286 list-style-type: none;
308 padding: 30px 0; 287 padding-top: 30px;
309 padding-bottom: 20px; 288 padding-bottom: 20px;
310 border-top: 1px dashed #c0bebb; 289 border-top: 1px dashed #c0bebb;
311 } 290 }
312 291
313 #can-do-more .feature-image, #can-do-more .feature-description 292 #can-do-more .feature-image, #can-do-more .feature-description
314 { 293 {
315 display: inline-block; 294 display: inline-block;
316 *display: inline; /* IE6 inline-block fix */
317 *zoom: 1;
318 vertical-align: top; 295 vertical-align: top;
319 } 296 }
320 297
321 #can-do-more .feature-description 298 #can-do-more .feature-description
322 { 299 {
323 margin: 0px 0px 0 20px; 300 -webkit-margin-start: 20px;
301 -moz-margin-start: 20px;
324 width: 625px; 302 width: 625px;
325 max-width: 85%; 303 max-width: 85%;
326 } 304 }
327 305
328 #can-do-more .feature-description-textblock 306 #can-do-more .feature-description-textblock
329 { 307 {
330 width: 480px; 308 width: 480px;
331 max-width: 100%; 309 max-width: 100%;
332 margin: 0 40px 0 0; 310 -webkit-margin-end: 40px;
311 -moz-margin-end: 40px;
333 display: inline-block; 312 display: inline-block;
334 } 313 }
335 314
336 #can-do-more .feature-description-textblock > span 315 #can-do-more .feature-description-textblock > span
337 { 316 {
338 margin: 15px 0 0 0; 317 margin-top: 15px;
339 } 318 }
340 319
341 #can-do-more .feature-image 320 #can-do-more .feature-image
342 { 321 {
343 width: 59px; 322 width: 59px;
344 height: 59px; 323 height: 59px;
345 margin: 8px 0 10px 20px; 324 margin: 10px 0px;
325 -webkit-margin-start: 20px;
326 -moz-margin-start: 20px;
346 } 327 }
347 328
348 #share 329 #share
349 { 330 {
350 background-image: url(background-share.png); 331 background-image: url(background-share.png);
351 padding: 50px 100px 40px 100px;
352 max-width: 760px;
353 text-align: center; 332 text-align: center;
354 font-family: CreteRound, Helvetica, Arial, sans-serif; 333 font-family: CreteRound, Helvetica, Arial, sans-serif;
355 } 334 }
356 335
357 #share h2 336 #share h2
358 { 337 {
359 color: #fff; 338 margin-bottom: 30px;
360 margin: 0 0 30px 0;
361 } 339 }
362 340
341 #share h2,
363 #share h2 > a 342 #share h2 > a
364 { 343 {
365 color: #fff; 344 color: #fff;
366 } 345 }
367 346
368 #share h2 > a:hover 347 #share h2 > a:hover
369 { 348 {
370 color: #2e5075; 349 color: #2e5075;
371 } 350 }
372 351
373 #share span 352 #share span
374 { 353 {
375 color: #bed1e6; 354 color: #bed1e6;
376 text-align: center; 355 text-align: center;
377 line-height: 34px; 356 line-height: 34px;
378 font-size: 22px; 357 font-size: 22px;
379 display: block; 358 display: block;
380 } 359 }
381 360
382 #donate:hover, .share-buttons a:hover 361 #donate:hover, .share-buttons a:hover
383 { 362 {
384 box-shadow: 0px 0px 0px 2px #8ca7c4; 363 box-shadow: 0px 0px 0px 2px #8ca7c4;
385 border-radius: 30px; 364 border-radius: 30px;
386 } 365 }
387 366
388 #donate-block span, #share-block span 367 #donate-block span, #share-block span
389 { 368 {
390 margin: 10px 20px 0px 20px; 369 margin: 10px 20px;
391 } 370 }
392 371
393 #donate-block, #share-block 372 #donate-block, #share-block
394 { 373 {
395 min-width: 250px; 374 min-width: 250px;
396 display: inline-block; 375 display: inline-block;
397 vertical-align: top; 376 vertical-align: top;
398 padding: 5px 0 5px 0; 377 padding: 5px 0 5px 0;
399 border: 1px dashed #37506d; 378 border: 1px dashed #37506d;
400 border-style: none dashed; 379 border-style: none dashed;
401 } 380 }
402 381
403 #donate-block 382 #donate-block
404 { 383 {
405 width: 50%; 384 width: 50%;
406 } 385 }
407 386
408 #share-block 387 #share-block
409 { 388 {
410 width: 49%; 389 width: 49%;
411 390
412 -webkit-border-start-style: none; 391 -webkit-border-start-style: none;
413 -moz-border-start-style: none; 392 -moz-border-start-style: none;
414 } 393 }
415 394
416 .share-buttons 395 .share-buttons
417 { 396 {
418 margin: 6px 0 0 0; 397 margin-top: 6px;
419 cursor: pointer; 398 cursor: pointer;
420 vertical-align: top; 399 vertical-align: top;
421 /* because inline block creates 400 /* because inline block creates
422 * space if not captured with 401 * space if not captured with
423 * font-size and line-height 0px 402 * font-size and line-height 0px
424 */ 403 */
425 font-size: 0px; 404 font-size: 0px;
426 line-height: 0px; 405 line-height: 0px;
427 } 406 }
428 407
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 display: table-caption; 529 display: table-caption;
551 } 530 }
552 531
553 .toggle 532 .toggle
554 { 533 {
555 cursor: pointer; 534 cursor: pointer;
556 position: relative; 535 position: relative;
557 display: inline-block; 536 display: inline-block;
558 vertical-align: top; 537 vertical-align: top;
559 height: 22px; 538 height: 22px;
560 margin: 32px 0px 7px 0px; 539 margin-top: 32px;
540 margin-bottom: 7px;
561 border-radius: 9999px; 541 border-radius: 9999px;
562 border: 1px solid #999; 542 border: 1px solid #999;
563 overflow: hidden; 543 overflow: hidden;
564 -moz-user-select: none; 544 -moz-user-select: none;
565 -webkit-user-select: none; 545 -webkit-user-select: none;
566 user-select: none; 546 user-select: none;
567 } 547 }
568 548
569 .toggle:hover 549 .toggle:hover
570 { 550 {
(...skipping 11 matching lines...) Expand all
582 height: 100%; 562 height: 100%;
583 font-size: 11px; 563 font-size: 11px;
584 font-weight: 500; 564 font-weight: 500;
585 text-align: center; 565 text-align: center;
586 line-height: 23px; 566 line-height: 23px;
587 border-radius: 9999px; 567 border-radius: 9999px;
588 } 568 }
589 569
590 .toggle-on 570 .toggle-on
591 { 571 {
592 padding: 0px 30px 0px 10px; 572 padding-left: 10px;
593 color: rgba(255,255,255, 0.8); 573 padding-right: 30px;
574 color: rgba(255,255,255,0.8);
594 text-shadow: 1px 1px rgba(0,0,0,0.2); 575 text-shadow: 1px 1px rgba(0,0,0,0.2);
595 box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2); 576 box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2);
596 background: rgb(69,163,31); 577 background: rgb(69,163,31);
597 } 578 }
598 579
599 .toggle-off 580 .toggle-off
600 { 581 {
601 padding: 0px 10px 0px 30px; 582 padding-left: 30px;
583 padding-right: 10px;
602 color: rgba(0,0,0,0.6); 584 color: rgba(0,0,0,0.6);
603 text-shadow: 1px 1px rgba(255,255,255,0.2); 585 text-shadow: 1px 1px rgba(255,255,255,0.2);
604 background: #cfcfcf; 586 background: #cfcfcf;
605 background: -moz-linear-gradient(top, #cfcfcf 0%, #f5f5f5 100%); 587 background: -moz-linear-gradient(top, #cfcfcf 0%, #f5f5f5 100%);
606 background: -webkit-linear-gradient(top, #cfcfcf 0%,#f5f5f5 100%); 588 background: -webkit-linear-gradient(top, #cfcfcf 0%,#f5f5f5 100%);
607 background: linear-gradient(to bottom, #cfcfcf 0%,#f5f5f5 100%); 589 background: linear-gradient(to bottom, #cfcfcf 0%,#f5f5f5 100%);
608 } 590 }
609 591
610 .toggle-blob 592 .toggle-blob
611 { 593 {
(...skipping 18 matching lines...) Expand all
630 .off .toggle-blob 612 .off .toggle-blob
631 { 613 {
632 left: 0px; 614 left: 0px;
633 right: auto; 615 right: auto;
634 } 616 }
635 617
636 #donate 618 #donate
637 { 619 {
638 height: 21px; 620 height: 21px;
639 display: inline-block; 621 display: inline-block;
640 margin: 15px 0px 2px 0px; 622 margin-top: 15px;
623 margin-bottom: 2px;
641 font-size: 16px; 624 font-size: 16px;
642 color: #003366; 625 color: #003366;
643 cursor: pointer; 626 cursor: pointer;
644 font-weight: bold; 627 font-weight: bold;
645 padding: 5px 18px; 628 padding: 5px 18px;
646 text-decoration: none; 629 text-decoration: none;
647 border-radius: 20px; 630 border-radius: 20px;
648 border: 1px solid #FF9933; 631 border: 1px solid #FF9933;
649 overflow: hidden; 632 overflow: hidden;
650 font-family: arial, sans-serif; 633 font-family: arial, sans-serif;
651 background-image: url(donate.png); 634 background-image: url(donate.png);
652 background-repeat: repeat-x; 635 background-repeat: repeat-x;
653 } 636 }
654 637
655 footer 638 footer
656 { 639 {
657 margin: 0 auto 30px; 640 margin: 0 auto 30px;
658 max-width: 960px; 641 max-width: 960px;
659 text-align: center; 642 text-align: center;
660 } 643 }
644
645 @media (max-width: 970px)
646 {
647 header
648 {
649 background-size: 100px 57px;
650 }
651
652 #logo
653 {
654 width: 64px;
655 height: 64px;
656 }
657
658 section
659 {
660 padding: 40px 20px;
661 }
662
663 #general,
664 #general > div
665 {
666 display: block;
667 }
668
669 #general > div
670 {
671 width: auto;
672 padding: 10px 0px;
673 border-width: 1px 0px 0px;
674 }
675
676 #general > div,
677 #can-do-more > h2,
678 #can-do-more-content
679 {
680 margin-left: 20px;
681 margin-right: 20px;
682 }
683
684 #can-do-more,
685 #can-do-more .feature h3
686 {
687 text-align: center;
688 }
689
690 #can-do-more .feature-description-textblock
691 {
692 text-align: start;
693 }
694
695 .toggle
696 {
697 margin-top: 14px;
698 }
699 }
OLDNEW
« no previous file with comments | « firstRun.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld