| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 { | 174 { |
| 175 width: 1.2rem; | 175 width: 1.2rem; |
| 176 height: 1.2rem; | 176 height: 1.2rem; |
| 177 padding: 0px; | 177 padding: 0px; |
| 178 border: 0px; | 178 border: 0px; |
| 179 background-color: transparent; | 179 background-color: transparent; |
| 180 } | 180 } |
| 181 | 181 |
| 182 button[role="checkbox"]:not(.toggle) | 182 button[role="checkbox"]:not(.toggle) |
| 183 { | 183 { |
| 184 background-image: url(icons/checkbox.svg#off); | 184 /* Using ?query as a workaround to chromium bug #643716 */ |
| 185 background-image: url(icons/checkbox.svg?off#off); |
| 185 display: inline-block; | 186 display: inline-block; |
| 186 } | 187 } |
| 187 | 188 |
| 188 button[role="checkbox"][aria-checked="true"]:not(.toggle) | 189 button[role="checkbox"][aria-checked="true"]:not(.toggle) |
| 189 { | 190 { |
| 190 background-image: url(icons/checkbox.svg#on); | 191 background-image: url(icons/checkbox.svg?on#on); |
| 191 } | 192 } |
| 192 | 193 |
| 193 button[role="checkbox"][disabled], | 194 button[role="checkbox"][disabled], |
| 194 button[role="checkbox"][aria-disabled="true"] | 195 button[role="checkbox"][aria-disabled="true"] |
| 195 { | 196 { |
| 196 border-radius: 2px; | 197 border-radius: 2px; |
| 197 background-color: #ccc; | 198 background-color: #ccc; |
| 198 } | 199 } |
| 199 | 200 |
| 200 button[role="checkbox"].toggle | 201 button[role="checkbox"].toggle |
| 201 { | 202 { |
| 202 background: url(icons/toggle.svg#on); | 203 background-image: url(icons/toggle.svg?on#on); |
| 203 } | 204 } |
| 204 | 205 |
| 205 button[role="checkbox"][aria-checked="false"].toggle | 206 button[role="checkbox"][aria-checked="false"].toggle |
| 206 { | 207 { |
| 207 background: url(icons/toggle.svg#off); | 208 background-image: url(icons/toggle.svg?off#off); |
| 208 } | 209 } |
| 209 | 210 |
| 210 button[role="checkbox"][aria-checked="true"].toggle | 211 button[role="checkbox"][aria-checked="true"].toggle |
| 211 { | 212 { |
| 212 background: url(icons/toggle.svg#on); | 213 background-image: url(icons/toggle.svg?on#on); |
| 213 } | 214 } |
| 214 | 215 |
| 215 button[role="checkbox"].toggle | 216 button[role="checkbox"].toggle |
| 216 { | 217 { |
| 217 background-position: initial; | 218 background-position: initial; |
| 218 width: 1.9rem; | 219 width: 1.9rem; |
| 219 height: 1rem; | 220 height: 1rem; |
| 220 vertical-align: middle; | 221 vertical-align: middle; |
| 221 } | 222 } |
| 222 | 223 |
| 223 button[role="checkbox"][disabled].toggle | 224 button[role="checkbox"][disabled].toggle |
| 224 { | 225 { |
| 225 background-image: none; | 226 background-image: none; |
| 226 } | 227 } |
| 227 | 228 |
| 228 button.delete::before | 229 button.delete::before |
| 229 { | 230 { |
| 230 background-image: url(icons/trash.svg#default); | 231 background-image: url(icons/trash.svg?default#default); |
| 231 } | 232 } |
| 232 | 233 |
| 233 button.delete:hover::before | 234 button.delete:hover::before |
| 234 { | 235 { |
| 235 background-image: url(icons/trash.svg#hover); | 236 background-image: url(icons/trash.svg?hover#hover); |
| 236 } | 237 } |
| 237 | 238 |
| 238 button.gear::before | 239 button.gear::before |
| 239 { | 240 { |
| 240 background-image: url(icons/gear.svg#default); | 241 background-image: url(icons/gear.svg?default#default); |
| 241 } | 242 } |
| 242 | 243 |
| 243 button.gear:hover::before | 244 button.gear:hover::before |
| 244 { | 245 { |
| 245 background-image: url(icons/gear.svg#hover); | 246 background-image: url(icons/gear.svg?hover#hover); |
| 246 } | 247 } |
| 247 | 248 |
| 248 button.gear, | 249 button.gear, |
| 249 button.delete | 250 button.delete |
| 250 { | 251 { |
| 251 border: 0px; | 252 border: 0px; |
| 252 padding: 0px; | 253 padding: 0px; |
| 253 background-color: transparent; | 254 background-color: transparent; |
| 254 } | 255 } |
| 255 | 256 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 } | 398 } |
| 398 | 399 |
| 399 [data-validation] .floating-input input:focus:invalid ~ .attention::before | 400 [data-validation] .floating-input input:focus:invalid ~ .attention::before |
| 400 { | 401 { |
| 401 background-image: url(icons/attention.svg); | 402 background-image: url(icons/attention.svg); |
| 402 } | 403 } |
| 403 | 404 |
| 404 [data-validation] .floating-input input:valid ~ .attention::before | 405 [data-validation] .floating-input input:valid ~ .attention::before |
| 405 { | 406 { |
| 406 top: 0.5rem; | 407 top: 0.5rem; |
| 407 background-image: url(icons/checkmark.svg#approved); | 408 background-image: url(icons/checkmark.svg?approved#approved); |
| 408 } | 409 } |
| 409 | 410 |
| 410 [data-validation] .floating-input input ~ .error-msg | 411 [data-validation] .floating-input input ~ .error-msg |
| 411 { | 412 { |
| 412 margin-top: 0.5rem; | 413 margin-top: 0.5rem; |
| 413 color: #C11D27; | 414 color: #C11D27; |
| 414 display: block; | 415 display: block; |
| 415 visibility: hidden; | 416 visibility: hidden; |
| 416 } | 417 } |
| 417 | 418 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 | 636 |
| 636 section.cols > *:last-child | 637 section.cols > *:last-child |
| 637 { | 638 { |
| 638 flex: 3; | 639 flex: 3; |
| 639 } | 640 } |
| 640 | 641 |
| 641 /* | 642 /* |
| 642 Acceptable ads | 643 Acceptable ads |
| 643 */ | 644 */ |
| 644 | 645 |
| 645 #acceptable-ads.show-notification #tracking-notification | 646 #tracking-warning |
| 646 { | |
| 647 display: block; | |
| 648 } | |
| 649 | |
| 650 #tracking-notification | |
| 651 { | 647 { |
| 652 position: relative; | 648 position: relative; |
| 653 display: none; | |
| 654 padding: 1.5rem; | 649 padding: 1.5rem; |
| 655 margin-bottom: 1rem; | 650 margin-bottom: 1rem; |
| 656 border: 2px solid #ffd7a3; | 651 border: 2px solid #ffd7a3; |
| 657 background-color: #fefbe3; | 652 background-color: #fefbe3; |
| 658 } | 653 } |
| 659 | 654 |
| 660 #hide-tracking-notification | 655 #acceptable-ads:not(.show-warning) #tracking-warning |
| 656 { |
| 657 display: none; |
| 658 } |
| 659 |
| 660 #hide-tracking-warning |
| 661 { | 661 { |
| 662 position: absolute; | 662 position: absolute; |
| 663 right: 1rem; | 663 right: 1rem; |
| 664 top: 1rem; | 664 top: 1rem; |
| 665 } | 665 } |
| 666 | 666 |
| 667 #tracking-notification .link | 667 html[dir="rtl"] #hide-tracking-warning |
| 668 { |
| 669 left: 1rem; |
| 670 right: auto; |
| 671 } |
| 672 |
| 673 #tracking-warning .link |
| 668 { | 674 { |
| 669 color: inherit; | 675 color: inherit; |
| 670 text-decoration: underline; | 676 text-decoration: underline; |
| 671 font-weight: 700; | 677 font-weight: 700; |
| 672 } | 678 } |
| 673 | 679 |
| 674 #acceptable-ads ul | 680 #acceptable-ads ul |
| 675 { | 681 { |
| 676 position: relative; | 682 position: relative; |
| 677 padding-left: 2.2rem; | 683 padding-left: 2.2rem; |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 #dialog .table.list li button[aria-checked="true"] | 928 #dialog .table.list li button[aria-checked="true"] |
| 923 { | 929 { |
| 924 color: #BBB; | 930 color: #BBB; |
| 925 } | 931 } |
| 926 | 932 |
| 927 #dialog .table.list li button[aria-checked="true"]::before | 933 #dialog .table.list li button[aria-checked="true"]::before |
| 928 { | 934 { |
| 929 content: ""; | 935 content: ""; |
| 930 width: 1.3rem; | 936 width: 1.3rem; |
| 931 height: 1.3rem; | 937 height: 1.3rem; |
| 932 background-image: url(icons/checkmark.svg#default); | 938 background-image: url(icons/checkmark.svg?default#default); |
| 933 margin: 0rem; | 939 margin: 0rem; |
| 934 } | 940 } |
| 935 | 941 |
| 936 #dialog .table.list li button .display | 942 #dialog .table.list li button .display |
| 937 { | 943 { |
| 938 flex: none; | 944 flex: none; |
| 939 margin: 0rem 0.8rem; | 945 margin: 0rem 0.8rem; |
| 940 text-transform: none; | 946 text-transform: none; |
| 941 font-weight: 400; | 947 font-weight: 400; |
| 942 } | 948 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 960 .tooltip::before | 966 .tooltip::before |
| 961 { | 967 { |
| 962 content: ""; | 968 content: ""; |
| 963 width: 1.1rem; | 969 width: 1.1rem; |
| 964 height: 1.1rem; | 970 height: 1.1rem; |
| 965 display: block; | 971 display: block; |
| 966 background-image: url(icons/tooltip.svg); | 972 background-image: url(icons/tooltip.svg); |
| 967 } | 973 } |
| 968 | 974 |
| 969 /* | 975 /* |
| 970 Used for translatable screen reader only conten. | 976 Used for translatable screen reader only content. |
| 971 e.g.: Use instead of aria-label to avoid complex attribute value translation | 977 e.g.: Use instead of aria-label to avoid complex attribute value translation |
| 972 */ | 978 */ |
| 973 .sr-only | 979 .sr-only |
| 974 { | 980 { |
| 975 position: absolute; | 981 position: absolute; |
| 976 overflow: hidden; | 982 overflow: hidden; |
| 977 clip: rect(0, 0, 0, 0); | 983 clip: rect(0, 0, 0, 0); |
| 978 width: 1px; | 984 width: 1px; |
| 979 height: 1px; | 985 height: 1px; |
| 980 margin: -1px; | 986 margin: -1px; |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1250 background-image: url(icons/globe.svg); | 1256 background-image: url(icons/globe.svg); |
| 1251 } | 1257 } |
| 1252 | 1258 |
| 1253 .context-menu .source::before | 1259 .context-menu .source::before |
| 1254 { | 1260 { |
| 1255 background-image: url(icons/code.svg); | 1261 background-image: url(icons/code.svg); |
| 1256 } | 1262 } |
| 1257 | 1263 |
| 1258 .context-menu .delete::before | 1264 .context-menu .delete::before |
| 1259 { | 1265 { |
| 1260 background-image: url(icons/trash.svg#default); | 1266 background-image: url(icons/trash.svg?default#default); |
| 1261 } | 1267 } |
| 1262 | 1268 |
| 1263 /* | 1269 /* |
| 1264 Help tab content | 1270 Help tab content |
| 1265 */ | 1271 */ |
| 1266 | 1272 |
| 1267 html:not([lang="zh"]) #social-chinese, | 1273 html:not([lang="zh"]) #social-chinese, |
| 1268 html[lang="zh"] #social-general | 1274 html[lang="zh"] #social-general |
| 1269 { | 1275 { |
| 1270 display: none; | 1276 display: none; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1358 | 1364 |
| 1359 #dialog header h3 | 1365 #dialog header h3 |
| 1360 { | 1366 { |
| 1361 margin: 0rem; | 1367 margin: 0rem; |
| 1362 font-size: 1rem; | 1368 font-size: 1rem; |
| 1363 font-weight: 700; | 1369 font-weight: 700; |
| 1364 } | 1370 } |
| 1365 | 1371 |
| 1366 #dialog-close, | 1372 #dialog-close, |
| 1367 #hide-notification, | 1373 #hide-notification, |
| 1368 #hide-tracking-notification | 1374 #hide-tracking-warning |
| 1369 { | 1375 { |
| 1370 border: 0rem; | 1376 border: 0rem; |
| 1371 padding: 0rem; | 1377 padding: 0rem; |
| 1372 margin: 0rem; | 1378 margin: 0rem; |
| 1373 background-color: transparent; | 1379 background-color: transparent; |
| 1374 cursor: pointer; | 1380 cursor: pointer; |
| 1375 } | 1381 } |
| 1376 | 1382 |
| 1377 #dialog-close::before, | 1383 #dialog-close::before, |
| 1378 #hide-notification::after, | 1384 #hide-notification::after, |
| 1379 #hide-tracking-notification::after | 1385 #hide-tracking-warning::after |
| 1380 { | 1386 { |
| 1381 content: ""; | 1387 content: ""; |
| 1382 display: block; | 1388 display: block; |
| 1383 height: 1rem; | 1389 height: 1rem; |
| 1384 width: 1rem; | 1390 width: 1rem; |
| 1385 border: 0rem; | 1391 border: 0rem; |
| 1386 background-image: url(icons/delete.svg#primary); | 1392 background-image: url(icons/delete.svg?primary#primary); |
| 1387 } | 1393 } |
| 1388 | 1394 |
| 1389 #dialog-close:hover::before | 1395 #dialog-close:hover::before |
| 1390 { | 1396 { |
| 1391 background-image: url(icons/delete.svg#primary-hover); | 1397 background-image: url(icons/delete.svg?primary-hover#primary-hover); |
| 1392 } | 1398 } |
| 1393 | 1399 |
| 1394 #dialog #dialog-body | 1400 #dialog #dialog-body |
| 1395 { | 1401 { |
| 1396 max-height: 60vh; | 1402 max-height: 60vh; |
| 1397 overflow: auto; | 1403 overflow: auto; |
| 1398 } | 1404 } |
| 1399 | 1405 |
| 1400 .dialog-content | 1406 .dialog-content |
| 1401 { | 1407 { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1498 text-align: center; | 1504 text-align: center; |
| 1499 } | 1505 } |
| 1500 | 1506 |
| 1501 #hide-notification | 1507 #hide-notification |
| 1502 { | 1508 { |
| 1503 margin: 0rem 1rem; | 1509 margin: 0rem 1rem; |
| 1504 } | 1510 } |
| 1505 | 1511 |
| 1506 #hide-notification::after | 1512 #hide-notification::after |
| 1507 { | 1513 { |
| 1508 background-image: url(icons/delete.svg#secondary); | 1514 background-image: url(icons/delete.svg?secondary#secondary); |
| 1509 } | 1515 } |
| 1510 | 1516 |
| 1511 #hide-tracking-notification::after | 1517 #hide-tracking-warning::after |
| 1512 { | 1518 { |
| 1513 background-image: url(icons/delete.svg#tertiary); | 1519 background-image: url(icons/delete.svg?tertiary#tertiary); |
| 1514 } | 1520 } |
| 1515 | 1521 |
| 1516 #hide-notification:hover::after | 1522 #hide-notification:hover::after |
| 1517 { | 1523 { |
| 1518 background-image: url(icons/delete.svg#secondary-hover); | 1524 background-image: url(icons/delete.svg?secondary-hover#secondary-hover); |
| 1519 } | 1525 } |
| 1520 | 1526 |
| 1521 #hide-tracking-notification:hover::after | 1527 #hide-tracking-warning:hover::after |
| 1522 { | 1528 { |
| 1523 background-image: url(icons/delete.svg#tertiary-hover); | 1529 background-image: url(icons/delete.svg?tertiary-hover#tertiary-hover); |
| 1524 } | 1530 } |
| LEFT | RIGHT |