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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 | 635 |
636 section.cols > *:last-child | 636 section.cols > *:last-child |
637 { | 637 { |
638 flex: 3; | 638 flex: 3; |
639 } | 639 } |
640 | 640 |
641 /* | 641 /* |
642 Acceptable ads | 642 Acceptable ads |
643 */ | 643 */ |
644 | 644 |
| 645 #tracking-warning |
| 646 { |
| 647 position: relative; |
| 648 padding: 1.5rem; |
| 649 margin-bottom: 1rem; |
| 650 border: 2px solid #ffd7a3; |
| 651 background-color: #fefbe3; |
| 652 } |
| 653 |
| 654 #acceptable-ads:not(.show-warning) #tracking-warning |
| 655 { |
| 656 display: none; |
| 657 } |
| 658 |
| 659 #hide-tracking-warning |
| 660 { |
| 661 position: absolute; |
| 662 right: 1rem; |
| 663 top: 1rem; |
| 664 } |
| 665 |
| 666 html[dir="rtl"] #hide-tracking-warning |
| 667 { |
| 668 left: 1rem; |
| 669 right: auto; |
| 670 } |
| 671 |
| 672 #tracking-warning .link |
| 673 { |
| 674 color: inherit; |
| 675 text-decoration: underline; |
| 676 font-weight: 700; |
| 677 } |
| 678 |
645 #acceptable-ads ul | 679 #acceptable-ads ul |
646 { | 680 { |
647 position: relative; | 681 position: relative; |
648 padding-left: 2.2rem; | 682 padding-left: 2.2rem; |
649 list-style: none; | 683 list-style: none; |
650 } | 684 } |
651 | 685 |
652 html[dir="rtl"] #acceptable-ads ul | 686 html[dir="rtl"] #acceptable-ads ul |
653 { | 687 { |
654 padding-left: 0rem; | 688 padding-left: 0rem; |
655 padding-right: 2.2rem; | 689 padding-right: 2.2rem; |
656 } | 690 } |
657 | 691 |
658 #acceptable-ads button | 692 #acceptable-ads ul button |
659 { | 693 { |
660 position: absolute; | 694 position: absolute; |
661 margin-top: 0.3rem; | 695 margin-top: 0.3rem; |
662 left: 0rem; | 696 left: 0rem; |
663 } | 697 } |
664 | 698 |
665 html[dir="rtl"] button | 699 html[dir="rtl"] button |
666 { | 700 { |
667 left: auto; | 701 left: auto; |
668 right: 0rem; | 702 right: 0rem; |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 .tooltip::before | 965 .tooltip::before |
932 { | 966 { |
933 content: ""; | 967 content: ""; |
934 width: 1.1rem; | 968 width: 1.1rem; |
935 height: 1.1rem; | 969 height: 1.1rem; |
936 display: block; | 970 display: block; |
937 background-image: url(icons/tooltip.svg); | 971 background-image: url(icons/tooltip.svg); |
938 } | 972 } |
939 | 973 |
940 /* | 974 /* |
941 Used for translatable screen reader only conten. | 975 Used for translatable screen reader only content. |
942 e.g.: Use instead of aria-label to avoid complex attribute value translation | 976 e.g.: Use instead of aria-label to avoid complex attribute value translation |
943 */ | 977 */ |
944 .sr-only | 978 .sr-only |
945 { | 979 { |
946 position: absolute; | 980 position: absolute; |
947 overflow: hidden; | 981 overflow: hidden; |
948 clip: rect(0, 0, 0, 0); | 982 clip: rect(0, 0, 0, 0); |
949 width: 1px; | 983 width: 1px; |
950 height: 1px; | 984 height: 1px; |
951 margin: -1px; | 985 margin: -1px; |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 } | 1362 } |
1329 | 1363 |
1330 #dialog header h3 | 1364 #dialog header h3 |
1331 { | 1365 { |
1332 margin: 0rem; | 1366 margin: 0rem; |
1333 font-size: 1rem; | 1367 font-size: 1rem; |
1334 font-weight: 700; | 1368 font-weight: 700; |
1335 } | 1369 } |
1336 | 1370 |
1337 #dialog-close, | 1371 #dialog-close, |
1338 #hide-notification | 1372 #hide-notification, |
| 1373 #hide-tracking-warning |
1339 { | 1374 { |
1340 border: 0rem; | 1375 border: 0rem; |
1341 padding: 0rem; | 1376 padding: 0rem; |
1342 margin: 0rem; | 1377 margin: 0rem; |
1343 background-color: transparent; | 1378 background-color: transparent; |
1344 cursor: pointer; | 1379 cursor: pointer; |
1345 } | 1380 } |
1346 | 1381 |
1347 #dialog-close::before, | 1382 #dialog-close::before, |
1348 #hide-notification::after | 1383 #hide-notification::after, |
| 1384 #hide-tracking-warning::after |
1349 { | 1385 { |
1350 content: ""; | 1386 content: ""; |
1351 display: block; | 1387 display: block; |
1352 height: 1rem; | 1388 height: 1rem; |
1353 width: 1rem; | 1389 width: 1rem; |
1354 border: 0rem; | 1390 border: 0rem; |
1355 background-image: url(icons/delete.svg#primary); | 1391 background-image: url(icons/delete.svg#primary); |
1356 } | 1392 } |
1357 | 1393 |
1358 #dialog-close:hover::before | 1394 #dialog-close:hover::before |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1470 #hide-notification | 1506 #hide-notification |
1471 { | 1507 { |
1472 margin: 0rem 1rem; | 1508 margin: 0rem 1rem; |
1473 } | 1509 } |
1474 | 1510 |
1475 #hide-notification::after | 1511 #hide-notification::after |
1476 { | 1512 { |
1477 background-image: url(icons/delete.svg#secondary); | 1513 background-image: url(icons/delete.svg#secondary); |
1478 } | 1514 } |
1479 | 1515 |
| 1516 #hide-tracking-warning::after |
| 1517 { |
| 1518 background-image: url(icons/delete.svg#tertiary); |
| 1519 } |
| 1520 |
1480 #hide-notification:hover::after | 1521 #hide-notification:hover::after |
1481 { | 1522 { |
1482 background-image: url(icons/delete.svg#secondary-hover); | 1523 background-image: url(icons/delete.svg#secondary-hover); |
1483 } | 1524 } |
| 1525 |
| 1526 #hide-tracking-warning:hover::after |
| 1527 { |
| 1528 background-image: url(icons/delete.svg#tertiary-hover); |
| 1529 } |
OLD | NEW |