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