legacy-toolbar-button.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*******************************************************************************
  2. ηMatrix - a browser extension to black/white list requests.
  3. Copyright (C) 2019-2022 Alessio Vanni
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see {http://www.gnu.org/licenses/}.
  14. Home: https://gitlab.com/vannilla/ematrix
  15. uMatrix Home: https://github.com/gorhill/uMatrix
  16. */
  17. #ematrix-button {
  18. list-style-image: url('../img/browsericons/icon19-19.png');
  19. }
  20. #ematrix-button.off {
  21. list-style-image: url('../img/browsericons/icon19-off.png');
  22. }
  23. toolbar[iconsize="small"] #ematrix-button {
  24. list-style-image: url('../img/browsericons/icon19-19.png');
  25. }
  26. toolbar[iconsize="small"] #ematrix-button.off {
  27. list-style-image: url('../img/browsericons/icon19-off.png');
  28. }
  29. #ematrix-button[badge]::before {
  30. background: #000;
  31. color: #fff;
  32. content: attr(badge);
  33. font: bold 10px sans-serif;
  34. margin-top: -2px;
  35. padding: 0 2px;
  36. position: fixed;
  37. }
  38. /* This hack required because if the before content changes it de-pops the
  39. popup (without firing any events). So just hide it instead. Note, can't
  40. actually *hide* it, or the same thing happens.
  41. **/
  42. #ematrix-button[badge=""]::before {
  43. padding: 0;
  44. }
  45. /* Override off state when in palette */
  46. toolbarpaletteitem #ematrix-button.off {
  47. list-style-image: url('../img/browsericons/icon19-12.png');
  48. }
  49. /* Override badge when in palette */
  50. toolbarpaletteitem #ematrix-button[badge]::before {
  51. content: none;
  52. }
  53. /* Prevent Pale Moon from showing the arrow underneath the button */
  54. /* https://github.com/chrisaljoudi/uBlock/issues/1449#issuecomment-112112761 */
  55. #ematrix-button .toolbarbutton-menu-dropmarker {
  56. display: none;
  57. -moz-box-orient: horizontal;
  58. }