You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

  1. #umatrix-legacy-button {
  2. list-style-image: url('../img/browsericons/icon19-19.png');
  3. }
  4. #umatrix-legacy-button.off {
  5. list-style-image: url('../img/browsericons/icon19-off.png');
  6. }
  7. toolbar[iconsize="small"] #umatrix-legacy-button {
  8. list-style-image: url('../img/browsericons/icon19-19.png');
  9. }
  10. toolbar[iconsize="small"] #umatrix-legacy-button.off {
  11. list-style-image: url('../img/browsericons/icon19-off.png');
  12. }
  13. #umatrix-legacy-button[badge]::before {
  14. background: #000;
  15. color: #fff;
  16. content: attr(badge);
  17. font: bold 10px sans-serif;
  18. margin-top: -2px;
  19. padding: 0 2px;
  20. position: fixed;
  21. }
  22. /* This hack required because if the before content changes it de-pops the
  23. popup (without firing any events). So just hide it instead. Note, can't
  24. actually *hide* it, or the same thing happens.
  25. **/
  26. #umatrix-legacy-button[badge=""]::before {
  27. padding: 0;
  28. }
  29. /* Override off state when in palette */
  30. toolbarpaletteitem #umatrix-legacy-button.off {
  31. list-style-image: url('../img/browsericons/icon19-12.png');
  32. }
  33. /* Override badge when in palette */
  34. toolbarpaletteitem #umatrix-legacy-button[badge]::before {
  35. content: none;
  36. }
  37. /* Prevent pale moon from showing the arrow underneath the button */
  38. /* https://github.com/chrisaljoudi/uBlock/issues/1449#issuecomment-112112761 */
  39. #umatrix-legacy-button .toolbarbutton-menu-dropmarker {
  40. display: none;
  41. -moz-box-orient: horizontal;
  42. }