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. 5, 2015, 1:41 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
« firstRun.html ('K') | « 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;
saroyanm 2015/10/05 17:18:55 Should we need to use shorthand in this case ? Hav
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, h2, h3
saroyanm 2015/10/05 17:18:55 Nit: I think each selectors should go to it's own
Thomas Greiner 2015/10/06 09:54:36 Done.
103 { 103 {
104 font-family: CreteRound, Helvetica, Arial, sans-serif; 104 font-family: CreteRound, Helvetica, Arial, sans-serif;
105 } 105 }
106 106
107 h2 107 h2
108 { 108 {
109 font-size: 26px; 109 font-size: 26px;
110 font-weight: lighter; 110 font-weight: lighter;
111 color: #968d81; 111 color: #968d81;
112 line-height: 28px; 112 line-height: 28px;
113 text-align: center; 113 text-align: center;
114 margin: 0; 114 margin: 0;
115 padding: 0; 115 padding: 0;
116 } 116 }
117 117
118 h3 118 h3
119 { 119 {
120 font-size: 22px; 120 font-size: 22px;
121 color: #7F776B; 121 color: #7F776B;
122 font-weight: normal; 122 font-weight: normal;
123 margin: 0 0 10px 0; 123 margin-top: 0px;
saroyanm 2015/10/05 17:18:55 Nit: I think you can use shorthand here.
Thomas Greiner 2015/10/06 09:54:36 The problem with using shorthand properties here i
124 margin-bottom: 10px;
124 padding: 0; 125 padding: 0;
125 line-height: 24px; 126 line-height: 24px;
126 } 127 }
127 128
128 h4 129 h4
129 { 130 {
130 font-size: 15px; 131 font-size: 15px;
131 color: #7f776b; 132 color: #7f776b;
132 font-weight: normal; 133 font-weight: normal;
133 text-align: center; 134 text-align: center;
134 margin: 0; 135 margin: 0;
135 padding: 0; 136 padding: 0;
136 } 137 }
137 138
138 section 139 section
139 { 140 {
140 margin: 0 auto; 141 margin: 0 auto;
141 margin-bottom: 30px; 142 margin-bottom: 30px;
142 max-width: 960px; 143 max-width: 960px;
143 background-image: url(background.png); 144 background-image: url(background.png);
144 padding: 40px 100px; 145 padding: 40px 100px;
145 } 146 }
146 147
147 #general 148 #general
148 { 149 {
149 padding: 40px 0px;
150 display: table; 150 display: table;
151 padding-left: 0px;
saroyanm 2015/10/05 17:18:55 Nit: I think you can use shorthand here.
152 padding-right: 0px;
151 } 153 }
152 154
153 #general > div 155 #general > div
154 { 156 {
155 display: table-cell; 157 display: table-cell;
156 width: 50%; 158 width: 50%;
157 vertical-align: top; 159 vertical-align: top;
158 padding: 0px 50px; 160 padding: 0px 50px;
159 border: dashed 0 #969085; 161 border: dashed 0 #969085;
160 -webkit-border-start-width: 1px; 162 -webkit-border-start-width: 1px;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 #abb-promotion-block a:hover 225 #abb-promotion-block a:hover
224 { 226 {
225 box-shadow: 0px 0px 5px #5D5D5D; 227 box-shadow: 0px 0px 5px #5D5D5D;
226 } 228 }
227 229
228 #abb-promotion-block a:active 230 #abb-promotion-block a:active
229 { 231 {
230 box-shadow: 0px 0px 5px 1px #5D5D5D; 232 box-shadow: 0px 0px 5px 1px #5D5D5D;
231 } 233 }
232 234
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 235 section > p
251 { 236 {
252 margin: 15px 0 0 0; 237 margin-top: 15px;
253 } 238 }
254 239
255 #logo 240 #logo
256 { 241 {
257 margin: 0 auto; 242 margin: 0 auto;
258 height: 128px; 243 height: 128px;
259 width: 128px; 244 width: 128px;
260 display: block; 245 display: block;
261 } 246 }
262 247
(...skipping 21 matching lines...) Expand all
284 } 269 }
285 270
286 .feature-tracking-image 271 .feature-tracking-image
287 { 272 {
288 background-image: url(features/tracking.png); 273 background-image: url(features/tracking.png);
289 background-repeat: no-repeat; 274 background-repeat: no-repeat;
290 } 275 }
291 276
292 #can-do-more-content 277 #can-do-more-content
293 { 278 {
294 margin: 30px 100px 20px 100px; 279 margin: 30px 100px;
295 } 280 }
296 281
297 #can-do-more #features 282 #can-do-more #features
298 { 283 {
299 border-spacing: 10px; 284 border-spacing: 10px;
300 margin: 0px; 285 margin: 0px;
301 padding: 0px; 286 padding: 0px;
302 } 287 }
303 288
304 #can-do-more .feature:not([hidden]) 289 #can-do-more .feature
305 { 290 {
306 display: block;
307 list-style-type: none; 291 list-style-type: none;
308 padding: 30px 0; 292 padding-top: 30px;
309 padding-bottom: 20px; 293 padding-bottom: 20px;
310 border-top: 1px dashed #c0bebb; 294 border-top: 1px dashed #c0bebb;
311 } 295 }
312 296
313 #can-do-more .feature-image, #can-do-more .feature-description 297 #can-do-more .feature-image, #can-do-more .feature-description
314 { 298 {
315 display: inline-block; 299 display: inline-block;
316 *display: inline; /* IE6 inline-block fix */ 300 *display: inline; /* IE6 inline-block fix */
317 *zoom: 1; 301 *zoom: 1;
318 vertical-align: top; 302 vertical-align: top;
319 } 303 }
320 304
321 #can-do-more .feature-description 305 #can-do-more .feature-description
322 { 306 {
323 margin: 0px 0px 0 20px; 307 -webkit-margin-start: 20px;
308 -moz-margin-start: 20px;
324 width: 625px; 309 width: 625px;
325 max-width: 85%; 310 max-width: 85%;
326 } 311 }
327 312
328 #can-do-more .feature-description-textblock 313 #can-do-more .feature-description-textblock
329 { 314 {
330 width: 480px; 315 width: 480px;
331 max-width: 100%; 316 max-width: 100%;
332 margin: 0 40px 0 0; 317 -webkit-margin-end: 40px;
318 -moz-margin-end: 40px;
333 display: inline-block; 319 display: inline-block;
334 } 320 }
335 321
336 #can-do-more .feature-description-textblock > span 322 #can-do-more .feature-description-textblock > span
337 { 323 {
338 margin: 15px 0 0 0; 324 margin-top: 15px;
339 } 325 }
340 326
341 #can-do-more .feature-image 327 #can-do-more .feature-image
342 { 328 {
343 width: 59px; 329 width: 59px;
344 height: 59px; 330 height: 59px;
345 margin: 8px 0 10px 20px; 331 margin: 10px 0px;
332 -webkit-margin-start: 20px;
333 -moz-margin-start: 20px;
346 } 334 }
347 335
348 #share 336 #share
349 { 337 {
350 background-image: url(background-share.png); 338 background-image: url(background-share.png);
351 padding: 50px 100px 40px 100px;
352 max-width: 760px; 339 max-width: 760px;
353 text-align: center; 340 text-align: center;
354 font-family: CreteRound, Helvetica, Arial, sans-serif; 341 font-family: CreteRound, Helvetica, Arial, sans-serif;
355 } 342 }
356 343
357 #share h2 344 #share h2
358 { 345 {
359 color: #fff; 346 margin-bottom: 30px;
360 margin: 0 0 30px 0;
361 } 347 }
362 348
349 #share h2,
363 #share h2 > a 350 #share h2 > a
364 { 351 {
365 color: #fff; 352 color: #fff;
366 } 353 }
367 354
368 #share h2 > a:hover 355 #share h2 > a:hover
369 { 356 {
370 color: #2e5075; 357 color: #2e5075;
371 } 358 }
372 359
373 #share span 360 #share span
374 { 361 {
375 color: #bed1e6; 362 color: #bed1e6;
376 text-align: center; 363 text-align: center;
377 line-height: 34px; 364 line-height: 34px;
378 font-size: 22px; 365 font-size: 22px;
379 display: block; 366 display: block;
380 } 367 }
381 368
382 #donate:hover, .share-buttons a:hover 369 #donate:hover, .share-buttons a:hover
383 { 370 {
384 box-shadow: 0px 0px 0px 2px #8ca7c4; 371 box-shadow: 0px 0px 0px 2px #8ca7c4;
385 border-radius: 30px; 372 border-radius: 30px;
386 } 373 }
387 374
388 #donate-block span, #share-block span 375 #donate-block span, #share-block span
389 { 376 {
390 margin: 10px 20px 0px 20px; 377 margin: 10px 20px;
391 } 378 }
392 379
393 #donate-block, #share-block 380 #donate-block, #share-block
394 { 381 {
395 min-width: 250px; 382 min-width: 250px;
396 display: inline-block; 383 display: inline-block;
397 vertical-align: top; 384 vertical-align: top;
398 padding: 5px 0 5px 0; 385 padding: 5px 0 5px 0;
399 border: 1px dashed #37506d; 386 border: 1px dashed #37506d;
400 border-style: none dashed; 387 border-style: none dashed;
401 } 388 }
402 389
403 #donate-block 390 #donate-block
404 { 391 {
405 width: 50%; 392 width: 50%;
406 } 393 }
407 394
408 #share-block 395 #share-block
409 { 396 {
410 width: 49%; 397 width: 49%;
411 398
412 -webkit-border-start-style: none; 399 -webkit-border-start-style: none;
413 -moz-border-start-style: none; 400 -moz-border-start-style: none;
414 } 401 }
415 402
416 .share-buttons 403 .share-buttons
417 { 404 {
418 margin: 6px 0 0 0; 405 margin-top: 6px;
419 cursor: pointer; 406 cursor: pointer;
420 vertical-align: top; 407 vertical-align: top;
421 /* because inline block creates 408 /* because inline block creates
422 * space if not captured with 409 * space if not captured with
423 * font-size and line-height 0px 410 * font-size and line-height 0px
424 */ 411 */
425 font-size: 0px; 412 font-size: 0px;
426 line-height: 0px; 413 line-height: 0px;
427 } 414 }
428 415
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 display: table-caption; 537 display: table-caption;
551 } 538 }
552 539
553 .toggle 540 .toggle
554 { 541 {
555 cursor: pointer; 542 cursor: pointer;
556 position: relative; 543 position: relative;
557 display: inline-block; 544 display: inline-block;
558 vertical-align: top; 545 vertical-align: top;
559 height: 22px; 546 height: 22px;
560 margin: 32px 0px 7px 0px; 547 margin-top: 32px;
saroyanm 2015/10/05 17:18:55 Why shorthand was removed ? Will stop commenting
548 margin-bottom: 7px;
561 border-radius: 9999px; 549 border-radius: 9999px;
562 border: 1px solid #999; 550 border: 1px solid #999;
563 overflow: hidden; 551 overflow: hidden;
564 -moz-user-select: none; 552 -moz-user-select: none;
565 -webkit-user-select: none; 553 -webkit-user-select: none;
566 user-select: none; 554 user-select: none;
567 } 555 }
568 556
569 .toggle:hover 557 .toggle:hover
570 { 558 {
(...skipping 11 matching lines...) Expand all
582 height: 100%; 570 height: 100%;
583 font-size: 11px; 571 font-size: 11px;
584 font-weight: 500; 572 font-weight: 500;
585 text-align: center; 573 text-align: center;
586 line-height: 23px; 574 line-height: 23px;
587 border-radius: 9999px; 575 border-radius: 9999px;
588 } 576 }
589 577
590 .toggle-on 578 .toggle-on
591 { 579 {
592 padding: 0px 30px 0px 10px; 580 padding-left: 10px;
593 color: rgba(255,255,255, 0.8); 581 padding-right: 30px;
582 color: rgba(255,255,255,0.8);
594 text-shadow: 1px 1px rgba(0,0,0,0.2); 583 text-shadow: 1px 1px rgba(0,0,0,0.2);
595 box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2); 584 box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2);
596 background: rgb(69,163,31); 585 background: rgb(69,163,31);
597 } 586 }
598 587
599 .toggle-off 588 .toggle-off
600 { 589 {
601 padding: 0px 10px 0px 30px; 590 padding-left: 30px;
591 padding-right: 10px;
602 color: rgba(0,0,0,0.6); 592 color: rgba(0,0,0,0.6);
603 text-shadow: 1px 1px rgba(255,255,255,0.2); 593 text-shadow: 1px 1px rgba(255,255,255,0.2);
604 background: #cfcfcf; 594 background: #cfcfcf;
605 background: -moz-linear-gradient(top, #cfcfcf 0%, #f5f5f5 100%); 595 background: -moz-linear-gradient(top, #cfcfcf 0%, #f5f5f5 100%);
606 background: -webkit-linear-gradient(top, #cfcfcf 0%,#f5f5f5 100%); 596 background: -webkit-linear-gradient(top, #cfcfcf 0%,#f5f5f5 100%);
607 background: linear-gradient(to bottom, #cfcfcf 0%,#f5f5f5 100%); 597 background: linear-gradient(to bottom, #cfcfcf 0%,#f5f5f5 100%);
608 } 598 }
609 599
610 .toggle-blob 600 .toggle-blob
611 { 601 {
(...skipping 18 matching lines...) Expand all
630 .off .toggle-blob 620 .off .toggle-blob
631 { 621 {
632 left: 0px; 622 left: 0px;
633 right: auto; 623 right: auto;
634 } 624 }
635 625
636 #donate 626 #donate
637 { 627 {
638 height: 21px; 628 height: 21px;
639 display: inline-block; 629 display: inline-block;
640 margin: 15px 0px 2px 0px; 630 margin-top: 15px;
631 margin-bottom: 2px;
641 font-size: 16px; 632 font-size: 16px;
642 color: #003366; 633 color: #003366;
643 cursor: pointer; 634 cursor: pointer;
644 font-weight: bold; 635 font-weight: bold;
645 padding: 5px 18px; 636 padding: 5px 18px;
646 text-decoration: none; 637 text-decoration: none;
647 border-radius: 20px; 638 border-radius: 20px;
648 border: 1px solid #FF9933; 639 border: 1px solid #FF9933;
649 overflow: hidden; 640 overflow: hidden;
650 font-family: arial, sans-serif; 641 font-family: arial, sans-serif;
651 background-image: url(donate.png); 642 background-image: url(donate.png);
652 background-repeat: repeat-x; 643 background-repeat: repeat-x;
653 } 644 }
654 645
655 footer 646 footer
656 { 647 {
657 margin: 0 auto 30px; 648 margin: 0 auto 30px;
658 max-width: 960px; 649 max-width: 960px;
659 text-align: center; 650 text-align: center;
660 } 651 }
652
653 @media (max-width: 970px)
654 {
655 header
656 {
657 background-size: 100px 57px;
658 }
659
660 #logo
661 {
662 width: 64px;
663 height: 64px;
664 }
665
666 section
667 {
668 padding: 40px 20px;
669 }
670
671 #general,
672 #general > div
673 {
674 display: block;
675 }
676
677 #general > div
678 {
679 width: auto;
680 padding: 10px 0px;
681 border-width: 1px 0px 0px;
682 }
683
684 #general > div,
685 #can-do-more > h2,
686 #can-do-more-content
687 {
688 margin-left: 20px;
689 margin-right: 20px;
690 }
691
692 #can-do-more
693 {
694 text-align: center;
695 }
696
697 #can-do-more .feature-description-textblock
698 {
699 text-align: start;
700 }
701
702 #can-do-more .feature h3
saroyanm 2015/10/05 17:18:55 can be merged with "#can-do-more"
Thomas Greiner 2015/10/06 09:54:36 Done.
703 {
704 text-align: center;
705 }
706
707 .toggle
708 {
709 margin-top: 14px;
710 }
711 }
OLDNEW
« firstRun.html ('K') | « firstRun.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld