OLD | NEW |
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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 .side-controls:not(.wrap) | 218 .side-controls:not(.wrap) |
219 { | 219 { |
220 margin: 0.8rem 0rem; | 220 margin: 0.8rem 0rem; |
221 display: flex; | 221 display: flex; |
222 justify-content: flex-end; | 222 justify-content: flex-end; |
223 } | 223 } |
224 | 224 |
225 .side-controls button | 225 .side-controls button |
226 { | 226 { |
227 margin: 0rem; | 227 margin: 0rem; |
228 -moz-margin-start: 1rem; | 228 } |
229 -webkit-margin-start: 1rem; | 229 |
| 230 /* |
| 231 Due to Edge adoption as new target browser |
| 232 we cannot use -moz/webkit-margin-start |
| 233 or -moz/webkit-margin-end because |
| 234 these lack Edge support. |
| 235 Yet we need to preserve html direction |
| 236 and potential UI that might swap right to left. |
| 237 */ |
| 238 html:not([dir="rtl"]) .side-controls button |
| 239 { |
| 240 margin-left: 1rem; |
| 241 } |
| 242 |
| 243 html[dir="rtl"] .side-controls button |
| 244 { |
| 245 margin-right: 1rem; |
230 } | 246 } |
231 | 247 |
232 .side-controls.wrap button | 248 .side-controls.wrap button |
233 { | 249 { |
234 margin: 0.6rem 0rem; | 250 margin: 0.6rem 0rem; |
235 -moz-margin-start: auto; | 251 } |
236 -webkit-margin-start: auto; | 252 |
| 253 html:not([dir="rtl"]) .side-controls.wrap button |
| 254 { |
| 255 margin-left: auto; |
| 256 } |
| 257 |
| 258 html[dir="rtl"] .side-controls.wrap button |
| 259 { |
| 260 margin-right: auto; |
237 } | 261 } |
238 | 262 |
239 /* | 263 /* |
240 icons | 264 icons |
241 */ | 265 */ |
242 | 266 |
243 .icon | 267 .icon |
244 { | 268 { |
245 border: 0px; | 269 border: 0px; |
246 padding: 0px; | 270 padding: 0px; |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 | 561 |
538 #sidebar, | 562 #sidebar, |
539 #sidebar .fixed, | 563 #sidebar .fixed, |
540 [role="tablist"] | 564 [role="tablist"] |
541 { | 565 { |
542 width: 14.3rem; | 566 width: 14.3rem; |
543 } | 567 } |
544 | 568 |
545 #sidebar | 569 #sidebar |
546 { | 570 { |
547 flex-shrink: 0; | 571 flex-shrink: 0; |
548 } | 572 } |
549 | 573 |
550 #sidebar .fixed | 574 #sidebar .fixed |
551 { | 575 { |
552 top: 1.2rem; | 576 top: 1.2rem; |
553 bottom: 0rem; | 577 bottom: 0rem; |
554 height: auto; | 578 height: auto; |
555 } | 579 } |
556 | 580 |
557 #sidebar header | 581 #sidebar header |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 padding: 0rem; | 632 padding: 0rem; |
609 position: relative; | 633 position: relative; |
610 font-size: 1rem; | 634 font-size: 1rem; |
611 } | 635 } |
612 | 636 |
613 [role="tablist"] li a | 637 [role="tablist"] li a |
614 { | 638 { |
615 display: flex; | 639 display: flex; |
616 margin-top: -1px; | 640 margin-top: -1px; |
617 padding: 1rem 0.8rem; | 641 padding: 1rem 0.8rem; |
618 -moz-margin-end: -1px; | 642 margin-left: -1px; |
619 -webkit-margin-end: -1px; | 643 margin-right: -1px; |
620 -moz-margin-start: -1px; | |
621 -webkit-margin-start: -1px; | |
622 border-color: #CDCDCD transparent; | 644 border-color: #CDCDCD transparent; |
623 border-style: solid; | 645 border-style: solid; |
624 border-width: 1px; | 646 border-width: 1px; |
625 text-decoration: none; | 647 text-decoration: none; |
626 color: inherit; | 648 color: inherit; |
627 cursor: pointer; | 649 cursor: pointer; |
628 } | 650 } |
629 | 651 |
630 li a[role="tab"][aria-selected] | 652 li a[role="tab"][aria-selected] |
631 { | 653 { |
632 -moz-border-start-color: #CDCDCD; | |
633 -webkit-border-start-color: #CDCDCD; | |
634 font-weight: 700; | 654 font-weight: 700; |
635 background-color: #FFF; | 655 background-color: #FFF; |
636 } | 656 } |
637 | 657 |
| 658 html:not([dir="rtl"]) li a[role="tab"][aria-selected] |
| 659 { |
| 660 border-left-color: #CDCDCD; |
| 661 } |
| 662 |
| 663 html[dir="rtl"] li a[role="tab"][aria-selected] |
| 664 { |
| 665 border-right-color: #CDCDCD; |
| 666 } |
| 667 |
638 #sidebar footer | 668 #sidebar footer |
639 { | 669 { |
640 width: 100%; | 670 width: 100%; |
641 } | 671 } |
642 | 672 |
643 #sidebar footer p | 673 #sidebar footer p |
644 { | 674 { |
645 display: flex; | 675 display: flex; |
646 justify-content: center; | 676 justify-content: center; |
647 margin: 1rem 0rem; | 677 margin: 1rem 0rem; |
648 } | 678 } |
649 | 679 |
650 /* This is a stopgap solution of footer overlapping tabs on low resolutions */ | 680 /* This is a stopgap solution of footer overlapping tabs on low resolutions */ |
651 @media (min-height: 37rem) | 681 @media (min-height: 37rem) |
652 { | 682 { |
653 #sidebar .fixed | 683 #sidebar .fixed |
654 { | 684 { |
655 position: fixed; | 685 position: fixed; |
656 } | 686 } |
657 | 687 |
658 #sidebar footer | 688 #sidebar footer |
659 { | 689 { |
660 bottom: 0px; | 690 bottom: 0px; |
661 position: absolute; | 691 position: absolute; |
662 } | 692 } |
| 693 |
663 } | 694 } |
664 | 695 |
665 /* | 696 /* |
666 Main content | 697 Main content |
667 */ | 698 */ |
668 | 699 |
669 body[data-tab|="general"] #content-general, | 700 body[data-tab|="general"] #content-general, |
670 body[data-tab|="advanced"] #content-advanced, | 701 body[data-tab|="advanced"] #content-advanced, |
671 body[data-tab|="whitelist"] #content-whitelist, | 702 body[data-tab|="whitelist"] #content-whitelist, |
672 body[data-tab|="help"] #content-help | 703 body[data-tab|="help"] #content-help |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 } | 759 } |
729 | 760 |
730 section.cols | 761 section.cols |
731 { | 762 { |
732 display: flex; | 763 display: flex; |
733 } | 764 } |
734 | 765 |
735 section.cols > *:first-child | 766 section.cols > *:first-child |
736 { | 767 { |
737 flex: 1; | 768 flex: 1; |
738 -moz-margin-end: 2rem; | 769 } |
739 -webkit-margin-end: 2rem; | 770 |
| 771 html:not([dir="rtl"]) section.cols > *:first-child |
| 772 { |
| 773 margin-right: 2rem; |
| 774 } |
| 775 |
| 776 html[dir="rtl"] section.cols > *:first-child |
| 777 { |
| 778 margin-left: 2rem; |
740 } | 779 } |
741 | 780 |
742 section.cols > *:last-child | 781 section.cols > *:last-child |
743 { | 782 { |
744 flex: 3; | 783 flex: 3; |
745 } | 784 } |
746 | 785 |
747 /* | 786 /* |
748 Acceptable ads | 787 Acceptable ads |
749 */ | 788 */ |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 html[dir="rtl"] button | 843 html[dir="rtl"] button |
805 { | 844 { |
806 left: auto; | 845 left: auto; |
807 right: 0rem; | 846 right: 0rem; |
808 } | 847 } |
809 | 848 |
810 #acceptable-ads label | 849 #acceptable-ads label |
811 { | 850 { |
812 font-weight: 700; | 851 font-weight: 700; |
813 font-size: 1rem; | 852 font-size: 1rem; |
814 -moz-margin-end: 0.5rem; | 853 } |
815 -webkit-margin-end: 0.5rem; | 854 |
| 855 html:not([dir="rtl"]) #acceptable-ads label |
| 856 { |
| 857 margin-right: 0.5rem; |
| 858 } |
| 859 |
| 860 html[dir="rtl"] #acceptable-ads label |
| 861 { |
| 862 margin-left: 0.5rem; |
816 } | 863 } |
817 | 864 |
818 #dnt | 865 #dnt |
819 { | 866 { |
820 padding: 0.8rem; | 867 padding: 0.8rem; |
821 border: 1px solid #077CA6; | 868 border: 1px solid #077CA6; |
822 } | 869 } |
823 | 870 |
824 .new | 871 .new |
825 { | 872 { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 .th .col5:nth-of-type(4), | 1016 .th .col5:nth-of-type(4), |
970 .table .col5:nth-of-type(4) | 1017 .table .col5:nth-of-type(4) |
971 { | 1018 { |
972 flex: 1; | 1019 flex: 1; |
973 } | 1020 } |
974 | 1021 |
975 .th .col5:nth-of-type(5), | 1022 .th .col5:nth-of-type(5), |
976 .table .col5:nth-of-type(5) | 1023 .table .col5:nth-of-type(5) |
977 { | 1024 { |
978 flex: 1; | 1025 flex: 1; |
979 -moz-margin-start: 0; | 1026 } |
980 -webkit-margin-start: 0; | 1027 |
981 -moz-margin-end: 1.8rem; | 1028 html:not([dir="rtl"]) .th .col5:nth-of-type(5), |
982 -webkit-margin-end: 1.8rem; | 1029 html:not([dir="rtl"]) .table .col5:nth-of-type(5) |
| 1030 { |
| 1031 margin-left: 0; |
| 1032 margin-right: 1.8rem; |
| 1033 } |
| 1034 |
| 1035 html[dir="rtl"] .th .col5:nth-of-type(5), |
| 1036 html[dir="rtl"] .table .col5:nth-of-type(5) |
| 1037 { |
| 1038 margin-right: 0; |
| 1039 margin-left: 1.8rem; |
983 } | 1040 } |
984 | 1041 |
985 .table.cols > span | 1042 .table.cols > span |
986 { | 1043 { |
987 margin: 0rem; | 1044 margin: 0rem; |
988 } | 1045 } |
989 | 1046 |
990 .table.cols li | 1047 .table.cols li |
991 { | 1048 { |
992 padding: 0.5rem 0rem; | 1049 padding: 0.5rem 0rem; |
993 } | 1050 } |
994 | 1051 |
995 .table.cols .state | 1052 html:not([dir="rtl"]) .table.cols .state |
996 { | 1053 { |
997 -moz-margin-start: 1rem; | 1054 margin-left: 1rem; |
998 -webkit-margin-start: 1rem; | 1055 } |
| 1056 |
| 1057 html[dir="rtl"] .table.cols .state |
| 1058 { |
| 1059 margin-right: 1rem; |
999 } | 1060 } |
1000 | 1061 |
1001 .table.cols .gear | 1062 .table.cols .gear |
1002 { | 1063 { |
1003 margin: 0rem | 1064 margin: 0rem |
1004 } | 1065 } |
1005 | 1066 |
1006 #dialog .table.list li | 1067 #dialog .table.list li |
1007 { | 1068 { |
1008 display: block; | 1069 display: block; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 } | 1106 } |
1046 | 1107 |
1047 /* | 1108 /* |
1048 Tooltips | 1109 Tooltips |
1049 */ | 1110 */ |
1050 | 1111 |
1051 .tooltip | 1112 .tooltip |
1052 { | 1113 { |
1053 position: relative; | 1114 position: relative; |
1054 margin: 0rem; | 1115 margin: 0rem; |
1055 -moz-margin-end: 1rem; | |
1056 -webkit-margin-end: 1rem; | |
1057 line-height: 1.5rem; | 1116 line-height: 1.5rem; |
1058 text-decoration: none; | 1117 text-decoration: none; |
1059 cursor: help; | 1118 cursor: help; |
1060 } | 1119 } |
1061 | 1120 |
| 1121 html:not([dir="rtl"]) .tooltip |
| 1122 { |
| 1123 margin-right: 1rem; |
| 1124 } |
| 1125 |
| 1126 html[dir="rtl"] .tooltip |
| 1127 { |
| 1128 margin-left: 1rem; |
| 1129 } |
| 1130 |
1062 /* | 1131 /* |
1063 Used for translatable screen reader only content. | 1132 Used for translatable screen reader only content. |
1064 e.g.: Use instead of aria-label to avoid complex attribute value translation | 1133 e.g.: Use instead of aria-label to avoid complex attribute value translation |
1065 */ | 1134 */ |
1066 .sr-only | 1135 .sr-only |
1067 { | 1136 { |
1068 position: absolute; | 1137 position: absolute; |
1069 overflow: hidden; | 1138 overflow: hidden; |
1070 clip: rect(0, 0, 0, 0); | 1139 clip: rect(0, 0, 0, 0); |
1071 width: 1px; | 1140 width: 1px; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 | 1172 |
1104 #content-whitelist form input | 1173 #content-whitelist form input |
1105 { | 1174 { |
1106 flex: 1; | 1175 flex: 1; |
1107 height: 100%; | 1176 height: 100%; |
1108 padding: 0.5rem 1rem; | 1177 padding: 0.5rem 1rem; |
1109 font-size: 1rem; | 1178 font-size: 1rem; |
1110 border: 2px solid #077CA6; | 1179 border: 2px solid #077CA6; |
1111 } | 1180 } |
1112 | 1181 |
1113 #content-whitelist form button | 1182 html:not([dir="rtl"]) #content-whitelist form button |
1114 { | 1183 { |
1115 -moz-margin-start: 0.7rem; | 1184 margin-left: 0.7rem; |
1116 -webkit-margin-start: 0.7rem; | 1185 } |
| 1186 |
| 1187 html[dir="rtl"] #content-whitelist form button |
| 1188 { |
| 1189 margin-right: 0.7rem; |
1117 } | 1190 } |
1118 | 1191 |
1119 #whitelisting-table li | 1192 #whitelisting-table li |
1120 { | 1193 { |
1121 padding-left: 1.4rem; | 1194 padding-left: 1.4rem; |
1122 padding-right: 1.4rem; | 1195 padding-right: 1.4rem; |
1123 border-left: 0rem; | 1196 border-left: 0rem; |
1124 border-right: 0rem; | 1197 border-right: 0rem; |
1125 } | 1198 } |
1126 | 1199 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 | 1412 |
1340 #social ul | 1413 #social ul |
1341 { | 1414 { |
1342 list-style: none; | 1415 list-style: none; |
1343 padding: 0px; | 1416 padding: 0px; |
1344 } | 1417 } |
1345 | 1418 |
1346 #social ul li | 1419 #social ul li |
1347 { | 1420 { |
1348 display: inline-block; | 1421 display: inline-block; |
1349 -moz-margin-end: 1rem; | 1422 } |
1350 -webkit-margin-end: 1rem; | 1423 |
| 1424 html:not([dir="rtl"]) #social ul li |
| 1425 { |
| 1426 margin-right: 1rem; |
| 1427 } |
| 1428 |
| 1429 html[dir="rtl"] #social ul li |
| 1430 { |
| 1431 margin-left: 1rem; |
1351 } | 1432 } |
1352 | 1433 |
1353 #social ul li a | 1434 #social ul li a |
1354 { | 1435 { |
1355 display: block; | 1436 display: block; |
1356 text-align: center; | 1437 text-align: center; |
1357 text-decoration: none; | 1438 text-decoration: none; |
1358 } | 1439 } |
1359 | 1440 |
1360 /* | 1441 /* |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1511 font-size: 1rem; | 1592 font-size: 1rem; |
1512 color: #077CA6; | 1593 color: #077CA6; |
1513 background-color: #E1F2FA; | 1594 background-color: #E1F2FA; |
1514 } | 1595 } |
1515 | 1596 |
1516 #notification strong | 1597 #notification strong |
1517 { | 1598 { |
1518 flex: 1; | 1599 flex: 1; |
1519 text-align: center; | 1600 text-align: center; |
1520 } | 1601 } |
OLD | NEW |