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

Side by Side Diff: skin/desktop-options.css

Issue 29673576: Make new options page compatible with edge (Closed)
Patch Set: dropped automatically inserted extra line Created Feb. 5, 2018, 9:44 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
« desktop-options.js ('K') | « desktop-options.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-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
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
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
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;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 } 758 }
729 759
730 section.cols 760 section.cols
731 { 761 {
732 display: flex; 762 display: flex;
733 } 763 }
734 764
735 section.cols > *:first-child 765 section.cols > *:first-child
736 { 766 {
737 flex: 1; 767 flex: 1;
738 -moz-margin-end: 2rem; 768 }
739 -webkit-margin-end: 2rem; 769
770 html:not([dir="rtl"]) section.cols > *:first-child
771 {
772 margin-right: 2rem;
773 }
774
775 html[dir="rtl"] section.cols > *:first-child
776 {
777 margin-left: 2rem;
740 } 778 }
741 779
742 section.cols > *:last-child 780 section.cols > *:last-child
743 { 781 {
744 flex: 3; 782 flex: 3;
745 } 783 }
746 784
747 /* 785 /*
748 Acceptable ads 786 Acceptable ads
749 */ 787 */
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 html[dir="rtl"] button 842 html[dir="rtl"] button
805 { 843 {
806 left: auto; 844 left: auto;
807 right: 0rem; 845 right: 0rem;
808 } 846 }
809 847
810 #acceptable-ads label 848 #acceptable-ads label
811 { 849 {
812 font-weight: 700; 850 font-weight: 700;
813 font-size: 1rem; 851 font-size: 1rem;
814 -moz-margin-end: 0.5rem; 852 }
815 -webkit-margin-end: 0.5rem; 853
854 html:not([dir="rtl"]) #acceptable-ads label
855 {
856 margin-right: 0.5rem;
857 }
858
859 html[dir="rtl"] #acceptable-ads label
860 {
861 margin-left: 0.5rem;
816 } 862 }
817 863
818 #dnt 864 #dnt
819 { 865 {
820 padding: 0.8rem; 866 padding: 0.8rem;
821 border: 1px solid #077CA6; 867 border: 1px solid #077CA6;
822 } 868 }
823 869
824 .new 870 .new
825 { 871 {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 .th .col5:nth-of-type(4), 1015 .th .col5:nth-of-type(4),
970 .table .col5:nth-of-type(4) 1016 .table .col5:nth-of-type(4)
971 { 1017 {
972 flex: 1; 1018 flex: 1;
973 } 1019 }
974 1020
975 .th .col5:nth-of-type(5), 1021 .th .col5:nth-of-type(5),
976 .table .col5:nth-of-type(5) 1022 .table .col5:nth-of-type(5)
977 { 1023 {
978 flex: 1; 1024 flex: 1;
979 -moz-margin-start: 0; 1025 }
980 -webkit-margin-start: 0; 1026
981 -moz-margin-end: 1.8rem; 1027 html:not([dir="rtl"]) .th .col5:nth-of-type(5),
982 -webkit-margin-end: 1.8rem; 1028 html:not([dir="rtl"]) .table .col5:nth-of-type(5)
1029 {
1030 margin-left: 0;
1031 margin-right: 1.8rem;
1032 }
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;
983 } 1039 }
984 1040
985 .table.cols > span 1041 .table.cols > span
986 { 1042 {
987 margin: 0rem; 1043 margin: 0rem;
988 } 1044 }
989 1045
990 .table.cols li 1046 .table.cols li
991 { 1047 {
992 padding: 0.5rem 0rem; 1048 padding: 0.5rem 0rem;
993 } 1049 }
994 1050
995 .table.cols .state 1051 html:not([dir="rtl"]) .table.cols .state
996 { 1052 {
997 -moz-margin-start: 1rem; 1053 margin-left: 1rem;
998 -webkit-margin-start: 1rem; 1054 }
1055
1056 html[dir="rtl"] .table.cols .state
1057 {
1058 margin-right: 1rem;
999 } 1059 }
1000 1060
1001 .table.cols .gear 1061 .table.cols .gear
1002 { 1062 {
1003 margin: 0rem 1063 margin: 0rem
1004 } 1064 }
1005 1065
1006 #dialog .table.list li 1066 #dialog .table.list li
1007 { 1067 {
1008 display: block; 1068 display: block;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 } 1105 }
1046 1106
1047 /* 1107 /*
1048 Tooltips 1108 Tooltips
1049 */ 1109 */
1050 1110
1051 .tooltip 1111 .tooltip
1052 { 1112 {
1053 position: relative; 1113 position: relative;
1054 margin: 0rem; 1114 margin: 0rem;
1055 -moz-margin-end: 1rem;
1056 -webkit-margin-end: 1rem;
1057 line-height: 1.5rem; 1115 line-height: 1.5rem;
1058 text-decoration: none; 1116 text-decoration: none;
1059 cursor: help; 1117 cursor: help;
1060 } 1118 }
1061 1119
1120 html:not([dir="rtl"]) .tooltip
1121 {
1122 margin-right: 1rem;
1123 }
1124
1125 html[dir="rtl"] .tooltip
1126 {
1127 margin-left: 1rem;
1128 }
1129
1062 /* 1130 /*
1063 Used for translatable screen reader only content. 1131 Used for translatable screen reader only content.
1064 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
1065 */ 1133 */
1066 .sr-only 1134 .sr-only
1067 { 1135 {
1068 position: absolute; 1136 position: absolute;
1069 overflow: hidden; 1137 overflow: hidden;
1070 clip: rect(0, 0, 0, 0); 1138 clip: rect(0, 0, 0, 0);
1071 width: 1px; 1139 width: 1px;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 1171
1104 #content-whitelist form input 1172 #content-whitelist form input
1105 { 1173 {
1106 flex: 1; 1174 flex: 1;
1107 height: 100%; 1175 height: 100%;
1108 padding: 0.5rem 1rem; 1176 padding: 0.5rem 1rem;
1109 font-size: 1rem; 1177 font-size: 1rem;
1110 border: 2px solid #077CA6; 1178 border: 2px solid #077CA6;
1111 } 1179 }
1112 1180
1113 #content-whitelist form button 1181 html:not([dir="rtl"]) #content-whitelist form button
1114 { 1182 {
1115 -moz-margin-start: 0.7rem; 1183 margin-left: 0.7rem;
1116 -webkit-margin-start: 0.7rem; 1184 }
1185
1186 html[dir="rtl"] #content-whitelist form button
1187 {
1188 margin-right: 0.7rem;
1117 } 1189 }
1118 1190
1119 #whitelisting-table li 1191 #whitelisting-table li
1120 { 1192 {
1121 padding-left: 1.4rem; 1193 padding-left: 1.4rem;
1122 padding-right: 1.4rem; 1194 padding-right: 1.4rem;
1123 border-left: 0rem; 1195 border-left: 0rem;
1124 border-right: 0rem; 1196 border-right: 0rem;
1125 } 1197 }
1126 1198
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 1411
1340 #social ul 1412 #social ul
1341 { 1413 {
1342 list-style: none; 1414 list-style: none;
1343 padding: 0px; 1415 padding: 0px;
1344 } 1416 }
1345 1417
1346 #social ul li 1418 #social ul li
1347 { 1419 {
1348 display: inline-block; 1420 display: inline-block;
1349 -moz-margin-end: 1rem; 1421 }
1350 -webkit-margin-end: 1rem; 1422
1423 html:not([dir="rtl"]) #social ul li
1424 {
1425 margin-right: 1rem;
1426 }
1427
1428 html[dir="rtl"] #social ul li
1429 {
1430 margin-left: 1rem;
1351 } 1431 }
1352 1432
1353 #social ul li a 1433 #social ul li a
1354 { 1434 {
1355 display: block; 1435 display: block;
1356 text-align: center; 1436 text-align: center;
1357 text-decoration: none; 1437 text-decoration: none;
1358 } 1438 }
1359 1439
1360 /* 1440 /*
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 font-size: 1rem; 1591 font-size: 1rem;
1512 color: #077CA6; 1592 color: #077CA6;
1513 background-color: #E1F2FA; 1593 background-color: #E1F2FA;
1514 } 1594 }
1515 1595
1516 #notification strong 1596 #notification strong
1517 { 1597 {
1518 flex: 1; 1598 flex: 1;
1519 text-align: center; 1599 text-align: center;
1520 } 1600 }
OLDNEW
« desktop-options.js ('K') | « desktop-options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld