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

Side by Side Diff: chrome/skin/firstRun.css

Issue 10860047: New toggle button on First-run page (Closed)
Patch Set: Created July 8, 2013, 10:26 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 | « chrome/content/ui/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 <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 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
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 115
116 #features-title::after 116 #features-title::after
117 { 117 {
118 content: ":"; 118 content: ":";
119 } 119 }
120 120
121 .feature:not([hidden]) 121 .feature:not([hidden])
122 { 122 {
123 display: block; 123 display: block;
124 position: relative;
124 list-style-type: none; 125 list-style-type: none;
125 padding-bottom: 20px; 126 padding-bottom: 20px;
126 } 127 }
127 128
128 .feature-image, .feature-description 129 .feature-image, .feature-description
129 { 130 {
130 display: inline-block; 131 display: inline-block;
131 *display: inline; /* IE6 inline-block fix */ 132 *display: inline; /* IE6 inline-block fix */
132 *zoom: 1; 133 *zoom: 1;
133 vertical-align: top; 134 vertical-align: top;
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 -webkit-transition-duration: 0.15s; 435 -webkit-transition-duration: 0.15s;
435 -moz-transition-duration: 0.15s; 436 -moz-transition-duration: 0.15s;
436 -o-transition-duration: 0.15s; 437 -o-transition-duration: 0.15s;
437 -ms-transition-duration: 0.15s; 438 -ms-transition-duration: 0.15s;
438 transition-duration: 0.15s; 439 transition-duration: 0.15s;
439 } 440 }
440 441
441 .toggle 442 .toggle
442 { 443 {
443 cursor: pointer; 444 cursor: pointer;
445 position: absolute;
444 display: inline-block; 446 display: inline-block;
445 width: 69px; 447 top: 50%;
448 height: 22px;
449 margin: -21px 0px 7px 0px;
446 border-radius: 9999px; 450 border-radius: 9999px;
447 box-shadow: 0 0 0 1px #999; 451 box-shadow: 0 0 0 1px #999;
448 overflow: hidden; 452 overflow: hidden;
453 -moz-user-select: none;
454 -webkit-user-select: none;
455 user-select: none;
449 } 456 }
450 457
451 .toggle-on, .toggle-off, .toggle-blob 458 .toggle:active
452 { 459 {
453 height: 22px; 460 cursor: wait;
461 }
462
463 .toggle-on, .toggle-off
464 {
465 min-width: 42px;
466 height: 100%;
454 font-size: 11px; 467 font-size: 11px;
455 font-weight: 500; 468 font-weight: 500;
456 text-align: center; 469 text-align: center;
457 line-height: 22px; 470 line-height: 25px;
458 float: left;
459 }
460
461 .toggle-inner, .toggle-on, .toggle-off, .toggle-blob
462 {
463 -moz-transition: all 0.2s;
464 -webkit-transition: all 0.2s;
465 transition: all 0.2s;
466 }
467
468 .toggle-inner
469 {
470 width: 185px;
471 margin-left: 0px;
472 }
473
474 .toggle-blob
475 {
476 position: relative;
477 width: 22px;
478 margin-left: -11px;
479 border-radius: 50px;
480 box-shadow: 1px 1px 2px #888;
481 background: #cfcfcf;
482 background: -moz-linear-gradient(bottom, #cfcfcf 0%, #f5f5f5 100%);
483 background: -webkit-linear-gradient(bottom, #cfcfcf 0%,#f5f5f5 100%);
484 background: linear-gradient(to top, #cfcfcf 0%,#f5f5f5 100%);
485 z-index: 99;
486 }
487
488 .toggle-blob:hover
489 {
490 background: #e4e4e4;
491 background: -moz-linear-gradient(top, #e4e4e4 0%, #f9f9f9 100%);
492 background: -webkit-linear-gradient(top, #e4e4e4 0%,#f9f9f9 100%);
493 background: linear-gradient(to bottom, #e4e4e4 0%,#f9f9f9 100%);
494 } 471 }
495 472
496 .toggle-on 473 .toggle-on
497 { 474 {
498 width: 59px; 475 padding: 0px 30px 0px 10px;
499 text-indent: -11px;
500 color: rgba(255,255,255, 0.8); 476 color: rgba(255,255,255, 0.8);
501 text-shadow: 1px 1px rgba(0,0,0,0.2); 477 text-shadow: 1px 1px rgba(0,0,0,0.2);
502 box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2); 478 box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2);
503 background: rgb(69,163,31); 479 background: rgb(69,163,31);
504 } 480 }
505 481
506 .toggle-off 482 .toggle-off
507 { 483 {
508 width: 59px; 484 padding: 0px 10px 0px 30px;
509 margin-left: -11px;
510 text-indent: 11px;
511 color: rgba(0,0,0,0.6); 485 color: rgba(0,0,0,0.6);
512 text-shadow: 1px 1px rgba(255,255,255,0.2); 486 text-shadow: 1px 1px rgba(255,255,255,0.2);
513 background: #cfcfcf; 487 background: #cfcfcf;
514 background: -moz-linear-gradient(top, #cfcfcf 0%, #f5f5f5 100%); 488 background: -moz-linear-gradient(top, #cfcfcf 0%, #f5f5f5 100%);
515 background: -webkit-linear-gradient(top, #cfcfcf 0%,#f5f5f5 100%); 489 background: -webkit-linear-gradient(top, #cfcfcf 0%,#f5f5f5 100%);
516 background: linear-gradient(to bottom, #cfcfcf 0%,#f5f5f5 100%); 490 background: linear-gradient(to bottom, #cfcfcf 0%,#f5f5f5 100%);
517 } 491 }
518 492
519 .off .toggle-inner 493 .toggle-blob
520 { 494 {
521 margin-left: -75px; 495 position: absolute;
496 top: 0px;
497 right: 0px;
498 height: 100%;
499 width: 22px;
500 border-radius: 50px;
501 box-shadow: 1px 1px 2px #888;
502 background: #cfcfcf;
503 background: -moz-linear-gradient(bottom, #cfcfcf 0%, #f5f5f5 100%);
504 background: -webkit-linear-gradient(bottom, #cfcfcf 0%,#f5f5f5 100%);
505 background: linear-gradient(to top, #cfcfcf 0%,#f5f5f5 100%);
506 }
507
508 .off .toggle-on
509 {
510 margin-top: -22px;
522 } 511 }
523 512
524 .off .toggle-blob 513 .off .toggle-blob
525 { 514 {
526 margin-left: -17.5px; 515 left: 0px;
527 } 516 right: auto;
528
529 .off .toggle-on
530 {
531 width: 92.5px;
532 text-indent: -17.5px;
533 } 517 }
534 518
535 /* Adjust font size on smaller screens */ 519 /* Adjust font size on smaller screens */
536 @media (max-height: 800px) 520 @media (max-height: 800px)
537 { 521 {
538 body 522 body
539 { 523 {
540 font-size: 19px; 524 font-size: 19px;
541 } 525 }
542 } 526 }
543 527
544 @media (max-height: 750px) 528 @media (max-height: 750px)
545 { 529 {
546 body 530 body
547 { 531 {
548 font-size: 17px; 532 font-size: 17px;
549 } 533 }
550 } 534 }
551 535
552 @media (max-height: 700px) 536 @media (max-height: 700px)
553 { 537 {
554 body 538 body
555 { 539 {
556 font-size: 16px; 540 font-size: 16px;
557 } 541 }
558 } 542 }
OLDNEW
« no previous file with comments | « chrome/content/ui/firstRun.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld