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

Side by Side Diff: skin/options.css

Issue 29333819: Issue 2375 - Implement "Blocking lists" section in new options page (Closed)
Patch Set: Fixed the progress indicator and small fixes Created Feb. 4, 2016, 5:43 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
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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 border-color: #CDCDCD transparent; 195 border-color: #CDCDCD transparent;
196 border-style: solid; 196 border-style: solid;
197 border-width: 1px; 197 border-width: 1px;
198 font-size: 16px; 198 font-size: 16px;
199 font-weight: 300; 199 font-weight: 300;
200 line-height: 1em; 200 line-height: 1em;
201 margin-top: -1px; 201 margin-top: -1px;
202 padding: 14px 20px; 202 padding: 14px 20px;
203 } 203 }
204 204
205 body[data-tab="general"] #tab-general, 205 body[data-tab|="general"] #tab-general,
206 body[data-tab="advanced"] #tab-advanced, 206 body[data-tab|="advanced"] #tab-advanced,
207 body[data-tab="help"] #tab-help 207 body[data-tab|="help"] #tab-help
208 { 208 {
209 background-color: #FFFFFF; 209 background-color: #FFFFFF;
210 border-radius: 3px 0px 0px 3px; 210 border-radius: 3px 0px 0px 3px;
211 border-width: 1px; 211 border-width: 1px;
212 font-weight: 600; 212 font-weight: 600;
213 -moz-border-start-color: #CDCDCD; 213 -moz-border-start-color: #CDCDCD;
214 -webkit-border-start-color: #CDCDCD; 214 -webkit-border-start-color: #CDCDCD;
215 -moz-margin-end: -1px; 215 -moz-margin-end: -1px;
216 -webkit-margin-end: -1px; 216 -webkit-margin-end: -1px;
217 -moz-margin-start: -1px; 217 -moz-margin-start: -1px;
218 -webkit-margin-start: -1px; 218 -webkit-margin-start: -1px;
219 -moz-padding-end: 21px; 219 -moz-padding-end: 21px;
220 -webkit-padding-end: 21px; 220 -webkit-padding-end: 21px;
221 -moz-padding-start: 21px; 221 -moz-padding-start: 21px;
222 -webkit-padding-start: 21px; 222 -webkit-padding-start: 21px;
223 } 223 }
224 224
225 html[dir="rtl"] body[data-tab="general"] #tab-general, 225 html[dir="rtl"] body[data-tab|="general"] #tab-general,
226 html[dir="rtl"] body[data-tab="advanced"] #tab-advanced, 226 html[dir="rtl"] body[data-tab|="advanced"] #tab-advanced,
227 html[dir="rtl"] body[data-tab="help"] #tab-help 227 html[dir="rtl"] body[data-tab|="help"] #tab-help
228 { 228 {
229 border-radius: 0px 3px 3px 0px; 229 border-radius: 0px 3px 3px 0px;
230 } 230 }
231 231
232 .tabs.vertical.bottom 232 .tabs.vertical.bottom
233 { 233 {
234 bottom: 0px; 234 bottom: 0px;
235 position: absolute; 235 position: absolute;
236 } 236 }
237 237
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 #content-wrapper 322 #content-wrapper
323 { 323 {
324 position: relative; 324 position: relative;
325 } 325 }
326 326
327 #content-wrapper > div 327 #content-wrapper > div
328 { 328 {
329 display: none; 329 display: none;
330 } 330 }
331 331
332 body[data-tab="general"] #content-general, 332 body[data-tab|="general"] #content-general,
333 body[data-tab="advanced"] #content-advanced, 333 body[data-tab|="advanced"] #content-advanced,
334 body[data-tab="help"] #content-help 334 body[data-tab|="help"] #content-help
335 { 335 {
336 display: block; 336 display: block;
337 } 337 }
338 338
339 div.button 339 div.button
340 { 340 {
341 cursor: pointer; 341 cursor: pointer;
342 display: flex; 342 display: flex;
343 } 343 }
344 344
(...skipping 16 matching lines...) Expand all
361 361
362 .table.list li .display 362 .table.list li .display
363 { 363 {
364 flex: 1; 364 flex: 1;
365 line-height: 16px; 365 line-height: 16px;
366 overflow: hidden; 366 overflow: hidden;
367 text-overflow: ellipsis; 367 text-overflow: ellipsis;
368 white-space: nowrap; 368 white-space: nowrap;
369 } 369 }
370 370
371 .table.list li:nth-child(odd), 371 .table.list li:nth-of-type(odd),
372 .table.cols li:nth-child(even), 372 .table.cols li:nth-of-type(odd),
373 .table li.empty-placeholder 373 .table li.empty-placeholder
374 { 374 {
375 background-color: #F5F5F5; 375 background-color: #F5F5F5;
376 } 376 }
377 377
378 .table label 378 .table label
379 { 379 {
380 vertical-align: top; 380 vertical-align: top;
381 } 381 }
382 382
383 .table.cols span 383 .table.cols
384 { 384 {
385 display: inline-block; 385 border-bottom: 1px solid #CDCDCD;
386 width: 30%; 386 border-top: 1px solid #CDCDCD;
387 } 387 }
388 388
389 .table.cols .col-name 389 button[disabled="true"]
390 { 390 {
391 border-bottom: 1px solid #CDCDCD; 391 border-radius: 2px;
392 } 392 background-color: #ccc;
393
394 .table.cols .col-name span
395 {
396 display: inline-block;
397 width: 30%;
398 }
399
400 .table.cols .col-name span:first-child
401 {
402 -webkit-padding-start: 38px;
403 -moz-padding-start: 38px;
404 }
405
406 .table input[type="checkbox"]
407 {
408 margin-top: 0px;
409 -moz-margin-end: 20px;
410 -webkit-margin-end: 20px;
411 padding: 0px 0px 0px 0px;
412 visibility: hidden;
413 }
414
415 .table input[type="checkbox"]::before
416 {
417 content: "";
418 background-position: -51px 0px;
419 height: 18px;
420 width: 18px;
421 visibility: visible;
422 }
423
424 .table input[type="checkbox"]:checked::before
425 {
426 content: "";
427 background-position: -68px 0px;
428 height: 18px;
429 padding: 0px;
430 width: 18px;
431 visibility: visible;
432 } 393 }
433 394
434 .table button.delete 395 .table button.delete
435 { 396 {
436 background-color: transparent; 397 background-color: transparent;
437 background-position: -9px -32px; 398 background-position: -9px -32px;
438 border: 0px; 399 border: 0px;
439 height: 10px; 400 height: 10px;
440 margin-top: 5px; 401 margin-top: 5px;
441 -moz-margin-end: 20px; 402 -moz-margin-end: 20px;
442 -webkit-margin-end: 20px; 403 -webkit-margin-end: 20px;
443 padding: 0px; 404 padding: 0px;
444 cursor: pointer; 405 cursor: pointer;
445 width: 10px; 406 width: 10px;
446 } 407 }
447 408
448 .table .popular 409 .table .popular
449 { 410 {
450 color: #1E8728; 411 color: #1E8728;
451 font-size: 12px; 412 font-size: 12px;
452 -moz-padding-end: 12px; 413 -moz-padding-end: 12px;
453 -webkit-padding-end: 12px; 414 -webkit-padding-end: 12px;
454 } 415 }
455 416
456 .tabs.horizontal 417 .tabs.horizontal
457 { 418 {
419 display: flex;
458 margin-bottom: 0px; 420 margin-bottom: 0px;
459 padding: 0px; 421 padding: 0px;
460 } 422 }
461 423
462 .tabs.horizontal li 424 .tabs.horizontal li
463 { 425 {
426 display: inline-block;
464 border-bottom: 1px solid #A1A1A1; 427 border-bottom: 1px solid #A1A1A1;
465 display: inline-block; 428 padding: 10px 46px;
466 color: #3A7BA6; 429 color: #3A7BA6;
467 padding: 10px 0px 11px 0px;
468 text-align: center; 430 text-align: center;
469 width: 50%;
470 } 431 }
471 432
472 .tabs.horizontal li.active 433 .icon,
473 { 434 button[role="checkbox"],
474 border-bottom: 2px solid #1E8728; 435 .table button.delete,
475 color: black; 436 #content-help a::before,
476 font-weight: 600; 437 #dialog-close::before,
477 padding-bottom: 10px;
478 }
479
480 .icon, .table button[role="checkbox"], .table button.delete,
481 #content-help a::before, #dialog-close::before,
482 #custom-filters-add button::after, 438 #custom-filters-add button::after,
483 #dialog-body button::before 439 #dialog-body button::before,
440 .date::before,
441 .time::before,
442 #all-filter-lists .arrow,
443 .context-menu .content a::before
484 { 444 {
485 background-image: url(options-sprite.png); 445 background-image: url(options-sprite.png);
486 display: inline-block; 446 display: inline-block;
487 } 447 }
488 448
489 .icon-add 449 .icon-add
490 { 450 {
491 background-position: -0px -0px; 451 background-position: -0px -0px;
492 cursor: pointer; 452 cursor: pointer;
493 height: 18px; 453 height: 18px;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 -webkit-margin-start: 32px; 577 -webkit-margin-start: 32px;
618 } 578 }
619 579
620 #whitelisting-add-button + span 580 #whitelisting-add-button + span
621 { 581 {
622 flex: 1; 582 flex: 1;
623 } 583 }
624 584
625 .icon-enter 585 .icon-enter
626 { 586 {
627 background-position: -18px -85px; 587 background-position: -18px -32px;
628 cursor: pointer; 588 cursor: pointer;
629 height: 10px; 589 height: 10px;
630 position: absolute; 590 position: absolute;
631 top: 10px; 591 top: 10px;
632 -moz-margin-start: -20px; 592 -moz-margin-start: -20px;
633 -webkit-margin-start: -20px; 593 -webkit-margin-start: -20px;
634 width: 10px; 594 width: 10px;
635 } 595 }
636 596
637 .button-add, .cancel-button 597 .button-add, .cancel-button
638 { 598 {
639 background-color: transparent; 599 background-color: transparent;
640 border: 0px; 600 border: 0px;
641 color: #3A7BA6; 601 color: #3A7BA6;
642 cursor: pointer; 602 cursor: pointer;
643 } 603 }
644 604
645 /* 605 /*
646 Advanced tab content 606 Advanced tab content
647 */ 607 */
648 608
609 #filter-lists > div
610 {
611 display: none;
612 }
613
614 body[data-tab="advanced-allFilterLists"] #all-filter-lists,
615 body[data-tab="advanced-customFilters"] #custom-filters
616 {
617 display: block;
618 }
619
620 body[data-tab="advanced-allFilterLists"] #content-advanced [data-tab="advanced-a llFilterLists"],
621 body[data-tab="advanced-customFilters"] #content-advanced [data-tab="advanced-cu stomFilters"]
622 {
623 border-bottom: 2px solid #1E8728;
624 padding-bottom: 10px;
625 color: black;
626 font-weight: 600;
627 }
628
629 #all-filter-lists .table
630 {
631 display: inline-block;
632 }
633
634 #all-filter-lists .table li
635 {
636 padding-left: 16px;
637 padding-right: 16px;
638 }
639
640 #all-filter-lists .table li > div
641 {
642 display: flex;
643 width: 330px;
644 }
645
646 .table-header
647 {
648 display: flex;
649 }
650
651 #filter-lists h3
652 {
653 display: inline-block;
654 margin-bottom: 7px;
655 font-size: 14px;
656 }
657
658 .table-header h3:first-child
659 {
660 width: 330px;
661 -webkit-padding-start: 54px;
662 -moz-padding-start: 54px;
663 }
664
665 #all-filter-lists .table li span.display
666 {
667 cursor: pointer;
668 }
669
670 #all-filter-lists .table .head span:first-child
671 {
672 -webkit-padding-start: 38px;
673 -moz-padding-start: 38px;
674 }
675
676 #all-filter-lists .controls
677 {
678 padding-top: 0px;
679 border-top: none;
680 }
681
682 #all-filter-lists .controls button
683 {
684 margin-top: 14px;
685 }
686
687 #all-filter-lists .arrow
688 {
689 position: relative;
690 margin: auto 6px;
691 border-style: none;
692 padding: 0px;
693 width: 6px;
694 height: 4px;
695 background-position: -1px -54px;
696 cursor: pointer;
697 }
698
699 #all-filter-lists .table li:last-of-type a
700 {
701 color: #3A7BA6;
702 text-decoration: none;
703 cursor: pointer;
704 }
705
706 #all-filter-lists .table li:last-of-type > span:last-child
707 {
708 -webkit-margin-start: auto;
709 -moz-margin-start: auto;
710 }
711
712 #all-filter-lists li.show-message .date,
713 #all-filter-lists li.show-message .time,
714 #all-filter-lists li:not(.show-message) .message
715 {
716 display: none;
717 }
718
719 .date::before
720 {
721 content: "";
722 -webkit-margin-end: 6px;
723 -moz-margin-end: 6px;
724 height: 12px;
725 width: 12px;
726 background-position: -7px -49px;
727 }
728
729 .time::before
730 {
731 content: "";
732 -webkit-margin-end: 6px;
733 -moz-margin-end: 6px;
734 -webkit-margin-start: 12px;
735 -moz-margin-start: 12px;
736 height: 12px;
737 width: 12px;
738 background-position: -20px -49px;
739 }
740
649 #custom-filters-header 741 #custom-filters-header
650 { 742 {
651 padding: 0px 20px; 743 padding: 0px 20px;
652 margin-bottom: 10px; 744 margin-bottom: 10px;
653 } 745 }
654 746
655 #custom-filters-raw-controls 747 #custom-filters-raw-controls
656 { 748 {
657 display: flex; 749 display: flex;
658 } 750 }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 height: 15px; 853 height: 15px;
762 -webkit-margin-end: 10px; 854 -webkit-margin-end: 10px;
763 -moz-margin-end: 10px; 855 -moz-margin-end: 10px;
764 margin-bottom: -2px; 856 margin-bottom: -2px;
765 width: 1px; 857 width: 1px;
766 } 858 }
767 859
768 #custom-filters-add button::after 860 #custom-filters-add button::after
769 { 861 {
770 content: ""; 862 content: "";
771 background-position: -28px -85px; 863 background-position: -28px -32px;
772 cursor: pointer; 864 cursor: pointer;
773 height: 10px; 865 height: 10px;
774 -webkit-margin-start: 6px; 866 -webkit-margin-start: 6px;
775 -moz-margin-start: 6px; 867 -moz-margin-start: 6px;
776 width: 10px; 868 width: 10px;
777 } 869 }
778 870
779 /* 871 /*
780 Tooltips 872 Tooltips
781 */ 873 */
782 874
783 .tooltip, #block-element-explanation a 875 .tooltip, #block-element-explanation a
784 { 876 {
785 border-bottom: dashed 1px; 877 border-bottom: dashed 1px;
786 color: #3A7BA6; 878 color: #3A7BA6;
787 cursor: default; 879 cursor: default;
788 font-size: 12px; 880 font-size: 12px;
789 height: 15px; 881 height: 15px;
790 line-height: 19px; 882 line-height: 19px;
791 margin: 0px 4px; 883 margin: 0px 4px;
792 position: relative; 884 position: relative;
793 text-decoration: none; 885 text-decoration: none;
794 } 886 }
795 887
888 .context-menu
889 {
890 display: inline-block;
891 position: relative;
892 border-bottom: none;
893 }
894
895 .context-menu a
896 {
897 vertical-align: middle;
898 white-space: nowrap;
899 color: #FFF;
900 }
901
796 #content-advanced .tooltip 902 #content-advanced .tooltip
797 { 903 {
798 -moz-margin-start: 8px; 904 -moz-margin-start: 8px;
799 -webkit-margin-start: 8px; 905 -webkit-margin-start: 8px;
800 } 906 }
801 907
802 #block-element-explanation a 908 #block-element-explanation a
803 { 909 {
804 color: black; 910 color: black;
805 border-bottom-color: #3A7BA6; 911 border-bottom-color: #3A7BA6;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 945
840 .tooltip:not(:hover) > div[role="tooltip"], 946 .tooltip:not(:hover) > div[role="tooltip"],
841 div[role="tooltip"]:hover 947 div[role="tooltip"]:hover
842 { 948 {
843 visibility: hidden; 949 visibility: hidden;
844 opacity: 0; 950 opacity: 0;
845 -webkit-transition-delay: 0ms; 951 -webkit-transition-delay: 0ms;
846 transition-delay: 0ms; 952 transition-delay: 0ms;
847 } 953 }
848 954
849 div[role="tooltip"]::before 955 div[role="tooltip"]::before,
956 div.context-menu::before
850 { 957 {
851 background-image: url(options-sprite.png); 958 background-image: url(options-sprite.png);
852 background-position: -8px -42px; 959 background-position: -8px -42px;
853 content: ""; 960 content: "";
854 height: 6px; 961 height: 6px;
855 position: absolute; 962 position: absolute;
856 top: -6px; 963 top: -6px;
857 width: 14px; 964 width: 14px;
858 left: 30px; 965 left: 30px;
859 } 966 }
860 967
968 div.context-menu
969 {
970 position: absolute;
971 top: 16px;
972 z-index: 1;
973 visibility: hidden;
974 }
975
976 div.context-menu::before
977 {
978 left: -4px;
979 }
980
981 html[dir="rtl"] div.context-menu::before
982 {
983 left: inherit;
984 right: -4px;
985 }
986
987 div.context-menu .content
988 {
989 position: relative;
990 left: calc(-50% + 2px);
991 border-radius: 3px;
992 padding: 4px 10px;
993 background-color: rgba(45, 45, 45, 0.95);
994 cursor: default;
995 }
996
997 html[dir="rtl"] div.context-menu .content
998 {
999 left: inherit;
1000 right: -50%;
1001 }
1002
1003 li.show-context-menu div.context-menu
1004 {
1005 visibility: visible;
1006 }
1007
1008 div.context-menu > div a::before
1009 {
1010 content: "";
1011 -moz-margin-end: 8px;
1012 -webkit-margin-end: 8px;
1013 }
1014
1015 div.context-menu > div a
1016 {
1017 display: block;
1018 padding: 7px 4px;
1019 border-bottom: 1px solid #CDCDCD;
1020 text-decoration: none;
1021 cursor: pointer;
1022 vertical-align: middle;
1023 }
1024
1025 div.context-menu > div a::before
1026 {
1027 vertical-align: middle;
1028 height: 16px;
1029 width: 16px;
1030 }
1031
1032 div.context-menu > div a:last-child
1033 {
1034 border: none;
1035 }
1036
1037 .context-menu .update-subscription::before
1038 {
1039 background-position: -38px -31px;
1040 }
1041
1042 .context-menu .website::before
1043 {
1044 background-position: -33px -47px;
1045 }
1046
1047 .context-menu .source::before
1048 {
1049 background-position: -53px -34px;
1050 }
1051
1052 .context-menu .delete::before
1053 {
1054 background-position: -71px -34px;
1055 }
1056
861 html[dir="ltr"] div[role="tooltip"].flip-vertical::before, 1057 html[dir="ltr"] div[role="tooltip"].flip-vertical::before,
862 html[dir="rtl"] div[role="tooltip"]:not(.flip-vertical)::before 1058 html[dir="rtl"] div[role="tooltip"]:not(.flip-vertical)::before
863 { 1059 {
864 left: inherit; 1060 left: inherit;
865 right: 30px; 1061 right: 30px;
866 } 1062 }
867 1063
868 div[role="tooltip"] img 1064 div[role="tooltip"] img
869 { 1065 {
870 float: left; 1066 float: left;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 #other-language .button-add::before 1312 #other-language .button-add::before
1117 { 1313 {
1118 display: none; 1314 display: none;
1119 } 1315 }
1120 1316
1121 #other-language .display 1317 #other-language .display
1122 { 1318 {
1123 -webkit-margin-start: 10px; 1319 -webkit-margin-start: 10px;
1124 -moz-margin-start: 10px; 1320 -moz-margin-start: 10px;
1125 } 1321 }
OLDNEW
« background.js ('K') | « options.js ('k') | skin/options-sprite.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld