| Left: | ||
| Right: | 
| LEFT | RIGHT | 
|---|---|
| 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 } | |
| 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 { | |
| 228 margin-left: 1rem; | 240 margin-left: 1rem; | 
| 
 
Thomas Greiner
2018/01/18 16:20:46
We intentionally avoided using properties such as
 
a.giammarchi
2018/01/19 17:02:28
Done.
 
 | |
| 229 } | 241 } | 
| 230 | 242 | 
| 243 html[dir="rtl"] .side-controls button | |
| 244 { | |
| 245 margin-right: 1rem; | |
| 246 } | |
| 247 | |
| 231 .side-controls.wrap button | 248 .side-controls.wrap button | 
| 232 { | 249 { | 
| 233 margin: 0.6rem 0rem; | 250 margin: 0.6rem 0rem; | 
| 251 } | |
| 252 | |
| 253 html:not([dir="rtl"]) .side-controls.wrap button | |
| 254 { | |
| 234 margin-left: auto; | 255 margin-left: auto; | 
| 256 } | |
| 257 | |
| 258 html[dir="rtl"] .side-controls.wrap button | |
| 259 { | |
| 260 margin-right: auto; | |
| 235 } | 261 } | 
| 236 | 262 | 
| 237 /* | 263 /* | 
| 238 icons | 264 icons | 
| 239 */ | 265 */ | 
| 240 | 266 | 
| 241 .icon | 267 .icon | 
| 242 { | 268 { | 
| 243 border: 0px; | 269 border: 0px; | 
| 244 padding: 0px; | 270 padding: 0px; | 
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 608 font-size: 1rem; | 634 font-size: 1rem; | 
| 609 } | 635 } | 
| 610 | 636 | 
| 611 [role="tablist"] li a | 637 [role="tablist"] li a | 
| 612 { | 638 { | 
| 613 display: flex; | 639 display: flex; | 
| 614 margin-top: -1px; | 640 margin-top: -1px; | 
| 615 padding: 1rem 0.8rem; | 641 padding: 1rem 0.8rem; | 
| 616 margin-left: -1px; | 642 margin-left: -1px; | 
| 617 margin-right: -1px; | 643 margin-right: -1px; | 
| 618 border-color: transparent; | 644 border-color: #CDCDCD transparent; | 
| 
 
Thomas Greiner
2018/01/18 16:20:46
Why did you remove the second value for the border
 
 | |
| 619 border-style: solid; | 645 border-style: solid; | 
| 620 border-width: 1px; | 646 border-width: 1px; | 
| 621 text-decoration: none; | 647 text-decoration: none; | 
| 622 color: inherit; | 648 color: inherit; | 
| 623 cursor: pointer; | 649 cursor: pointer; | 
| 624 } | 650 } | 
| 625 | 651 | 
| 626 li a[role="tab"][aria-selected] | 652 li a[role="tab"][aria-selected] | 
| 627 { | 653 { | 
| 628 border-color: #CDCDCD transparent #CDCDCD #CDCDCD; | |
| 
 
Thomas Greiner
2018/01/18 16:20:46
This is the same issue as in the comment regarding
 
a.giammarchi
2018/01/19 11:16:48
I was sure there were reasons for using those (unu
 
Thomas Greiner
2018/01/19 13:55:16
No need to apologize because there's also no expla
 
a.giammarchi
2018/01/19 14:16:28
Yes, it would've helped indeed. I am adding here a
 
Thomas Greiner
2018/01/22 13:06:38
That's fine with me.
 
 | |
| 629 font-weight: 700; | 654 font-weight: 700; | 
| 630 background-color: #FFF; | 655 background-color: #FFF; | 
| 656 } | |
| 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; | |
| 631 } | 666 } | 
| 632 | 667 | 
| 633 #sidebar footer | 668 #sidebar footer | 
| 634 { | 669 { | 
| 635 width: 100%; | 670 width: 100%; | 
| 636 } | 671 } | 
| 637 | 672 | 
| 638 #sidebar footer p | 673 #sidebar footer p | 
| 639 { | 674 { | 
| 640 display: flex; | 675 display: flex; | 
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 723 } | 758 } | 
| 724 | 759 | 
| 725 section.cols | 760 section.cols | 
| 726 { | 761 { | 
| 727 display: flex; | 762 display: flex; | 
| 728 } | 763 } | 
| 729 | 764 | 
| 730 section.cols > *:first-child | 765 section.cols > *:first-child | 
| 731 { | 766 { | 
| 732 flex: 1; | 767 flex: 1; | 
| 768 } | |
| 769 | |
| 770 html:not([dir="rtl"]) section.cols > *:first-child | |
| 771 { | |
| 733 margin-right: 2rem; | 772 margin-right: 2rem; | 
| 773 } | |
| 774 | |
| 775 html[dir="rtl"] section.cols > *:first-child | |
| 776 { | |
| 777 margin-left: 2rem; | |
| 734 } | 778 } | 
| 735 | 779 | 
| 736 section.cols > *:last-child | 780 section.cols > *:last-child | 
| 737 { | 781 { | 
| 738 flex: 3; | 782 flex: 3; | 
| 739 } | 783 } | 
| 740 | 784 | 
| 741 /* | 785 /* | 
| 742 Acceptable ads | 786 Acceptable ads | 
| 743 */ | 787 */ | 
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 798 html[dir="rtl"] button | 842 html[dir="rtl"] button | 
| 799 { | 843 { | 
| 800 left: auto; | 844 left: auto; | 
| 801 right: 0rem; | 845 right: 0rem; | 
| 802 } | 846 } | 
| 803 | 847 | 
| 804 #acceptable-ads label | 848 #acceptable-ads label | 
| 805 { | 849 { | 
| 806 font-weight: 700; | 850 font-weight: 700; | 
| 807 font-size: 1rem; | 851 font-size: 1rem; | 
| 852 } | |
| 853 | |
| 854 html:not([dir="rtl"]) #acceptable-ads label | |
| 855 { | |
| 808 margin-right: 0.5rem; | 856 margin-right: 0.5rem; | 
| 857 } | |
| 858 | |
| 859 html[dir="rtl"] #acceptable-ads label | |
| 860 { | |
| 861 margin-left: 0.5rem; | |
| 809 } | 862 } | 
| 810 | 863 | 
| 811 #dnt | 864 #dnt | 
| 812 { | 865 { | 
| 813 padding: 0.8rem; | 866 padding: 0.8rem; | 
| 814 border: 1px solid #077CA6; | 867 border: 1px solid #077CA6; | 
| 815 } | 868 } | 
| 816 | 869 | 
| 817 .new | 870 .new | 
| 818 { | 871 { | 
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 962 .th .col5:nth-of-type(4), | 1015 .th .col5:nth-of-type(4), | 
| 963 .table .col5:nth-of-type(4) | 1016 .table .col5:nth-of-type(4) | 
| 964 { | 1017 { | 
| 965 flex: 1; | 1018 flex: 1; | 
| 966 } | 1019 } | 
| 967 | 1020 | 
| 968 .th .col5:nth-of-type(5), | 1021 .th .col5:nth-of-type(5), | 
| 969 .table .col5:nth-of-type(5) | 1022 .table .col5:nth-of-type(5) | 
| 970 { | 1023 { | 
| 971 flex: 1; | 1024 flex: 1; | 
| 1025 } | |
| 1026 | |
| 1027 html:not([dir="rtl"]) .th .col5:nth-of-type(5), | |
| 1028 html:not([dir="rtl"]) .table .col5:nth-of-type(5) | |
| 1029 { | |
| 972 margin-left: 0; | 1030 margin-left: 0; | 
| 973 margin-right: 1.8rem; | 1031 margin-right: 1.8rem; | 
| 974 } | 1032 } | 
| 975 | 1033 | 
| 1034 html[dir="rtl"] .th .col5:nth-of-type(5), | |
| 1035 html[dir="rtl"] .table .col5:nth-of-type(5) | |
| 1036 { | |
| 1037 margin-right: 0; | |
| 1038 margin-left: 1.8rem; | |
| 1039 } | |
| 1040 | |
| 976 .table.cols > span | 1041 .table.cols > span | 
| 977 { | 1042 { | 
| 978 margin: 0rem; | 1043 margin: 0rem; | 
| 979 } | 1044 } | 
| 980 | 1045 | 
| 981 .table.cols li | 1046 .table.cols li | 
| 982 { | 1047 { | 
| 983 padding: 0.5rem 0rem; | 1048 padding: 0.5rem 0rem; | 
| 984 } | 1049 } | 
| 985 | 1050 | 
| 986 .table.cols .state | 1051 html:not([dir="rtl"]) .table.cols .state | 
| 987 { | 1052 { | 
| 988 margin-left: 1rem; | 1053 margin-left: 1rem; | 
| 1054 } | |
| 1055 | |
| 1056 html[dir="rtl"] .table.cols .state | |
| 1057 { | |
| 1058 margin-right: 1rem; | |
| 989 } | 1059 } | 
| 990 | 1060 | 
| 991 .table.cols .gear | 1061 .table.cols .gear | 
| 992 { | 1062 { | 
| 993 margin: 0rem | 1063 margin: 0rem | 
| 994 } | 1064 } | 
| 995 | 1065 | 
| 996 #dialog .table.list li | 1066 #dialog .table.list li | 
| 997 { | 1067 { | 
| 998 display: block; | 1068 display: block; | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1035 } | 1105 } | 
| 1036 | 1106 | 
| 1037 /* | 1107 /* | 
| 1038 Tooltips | 1108 Tooltips | 
| 1039 */ | 1109 */ | 
| 1040 | 1110 | 
| 1041 .tooltip | 1111 .tooltip | 
| 1042 { | 1112 { | 
| 1043 position: relative; | 1113 position: relative; | 
| 1044 margin: 0rem; | 1114 margin: 0rem; | 
| 1045 margin-right: 1rem; | |
| 1046 line-height: 1.5rem; | 1115 line-height: 1.5rem; | 
| 1047 text-decoration: none; | 1116 text-decoration: none; | 
| 1048 cursor: help; | 1117 cursor: help; | 
| 1118 } | |
| 1119 | |
| 1120 html:not([dir="rtl"]) .tooltip | |
| 1121 { | |
| 1122 margin-right: 1rem; | |
| 1123 } | |
| 1124 | |
| 1125 html[dir="rtl"] .tooltip | |
| 1126 { | |
| 1127 margin-left: 1rem; | |
| 1049 } | 1128 } | 
| 1050 | 1129 | 
| 1051 /* | 1130 /* | 
| 1052 Used for translatable screen reader only content. | 1131 Used for translatable screen reader only content. | 
| 1053 e.g.: Use instead of aria-label to avoid complex attribute value translation | 1132 e.g.: Use instead of aria-label to avoid complex attribute value translation | 
| 1054 */ | 1133 */ | 
| 1055 .sr-only | 1134 .sr-only | 
| 1056 { | 1135 { | 
| 1057 position: absolute; | 1136 position: absolute; | 
| 1058 overflow: hidden; | 1137 overflow: hidden; | 
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1092 | 1171 | 
| 1093 #content-whitelist form input | 1172 #content-whitelist form input | 
| 1094 { | 1173 { | 
| 1095 flex: 1; | 1174 flex: 1; | 
| 1096 height: 100%; | 1175 height: 100%; | 
| 1097 padding: 0.5rem 1rem; | 1176 padding: 0.5rem 1rem; | 
| 1098 font-size: 1rem; | 1177 font-size: 1rem; | 
| 1099 border: 2px solid #077CA6; | 1178 border: 2px solid #077CA6; | 
| 1100 } | 1179 } | 
| 1101 | 1180 | 
| 1102 #content-whitelist form button | 1181 html:not([dir="rtl"]) #content-whitelist form button | 
| 1103 { | 1182 { | 
| 1104 margin-left: 0.7rem; | 1183 margin-left: 0.7rem; | 
| 1184 } | |
| 1185 | |
| 1186 html[dir="rtl"] #content-whitelist form button | |
| 1187 { | |
| 1188 margin-right: 0.7rem; | |
| 1105 } | 1189 } | 
| 1106 | 1190 | 
| 1107 #whitelisting-table li | 1191 #whitelisting-table li | 
| 1108 { | 1192 { | 
| 1109 padding-left: 1.4rem; | 1193 padding-left: 1.4rem; | 
| 1110 padding-right: 1.4rem; | 1194 padding-right: 1.4rem; | 
| 1111 border-left: 0rem; | 1195 border-left: 0rem; | 
| 1112 border-right: 0rem; | 1196 border-right: 0rem; | 
| 1113 } | 1197 } | 
| 1114 | 1198 | 
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1327 | 1411 | 
| 1328 #social ul | 1412 #social ul | 
| 1329 { | 1413 { | 
| 1330 list-style: none; | 1414 list-style: none; | 
| 1331 padding: 0px; | 1415 padding: 0px; | 
| 1332 } | 1416 } | 
| 1333 | 1417 | 
| 1334 #social ul li | 1418 #social ul li | 
| 1335 { | 1419 { | 
| 1336 display: inline-block; | 1420 display: inline-block; | 
| 1421 } | |
| 1422 | |
| 1423 html:not([dir="rtl"]) #social ul li | |
| 1424 { | |
| 1337 margin-right: 1rem; | 1425 margin-right: 1rem; | 
| 1426 } | |
| 1427 | |
| 1428 html[dir="rtl"] #social ul li | |
| 1429 { | |
| 1430 margin-left: 1rem; | |
| 1338 } | 1431 } | 
| 1339 | 1432 | 
| 1340 #social ul li a | 1433 #social ul li a | 
| 1341 { | 1434 { | 
| 1342 display: block; | 1435 display: block; | 
| 1343 text-align: center; | 1436 text-align: center; | 
| 1344 text-decoration: none; | 1437 text-decoration: none; | 
| 1345 } | 1438 } | 
| 1346 | 1439 | 
| 1347 /* | 1440 /* | 
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1498 font-size: 1rem; | 1591 font-size: 1rem; | 
| 1499 color: #077CA6; | 1592 color: #077CA6; | 
| 1500 background-color: #E1F2FA; | 1593 background-color: #E1F2FA; | 
| 1501 } | 1594 } | 
| 1502 | 1595 | 
| 1503 #notification strong | 1596 #notification strong | 
| 1504 { | 1597 { | 
| 1505 flex: 1; | 1598 flex: 1; | 
| 1506 text-align: center; | 1599 text-align: center; | 
| 1507 } | 1600 } | 
| LEFT | RIGHT |