您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

userChrome.css 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* Remove fullscreen transition */
  2. #navigator-toolbox[fullscreenShouldAnimate] { transition: none !important; }
  3. /* Enable page action button */
  4. #urlbar #page-action-buttons #pageActionButton { visibility: unset !important; }
  5. /* Set favorites icon color to default */
  6. #urlbar #page-action-buttons #star-button[starred] { fill: currentColor !important; }
  7. /* Set reader view button color to default */
  8. #urlbar #page-action-buttons #reader-mode-button[readeractive] > .urlbar-icon { fill: currentColor !important; }
  9. /* Set multifoxContainer button color to default */
  10. #urlbar #page-action-buttons #userContext-label[value="Default"] + #userContext-indicator,
  11. #mainPopupSet menuitem.identity-icon-fingerprint[label="Default"] .menu-iconic-icon { fill: currentColor; }
  12. /* Set User Scripts icon to grayscale */
  13. #appMenu-popup #appMenu-multiView #appMenu-userChromeJS-button .toolbarbutton-icon { filter: contrast(10) grayscale(1) invert(); }
  14. /* Set Firefox View icon to grayscale */
  15. #TabsToolbar #firefox-view-button { filter: grayscale(1); }
  16. /* Set private browsing icon to grayscale */
  17. #private-browsing-indicator-with-label > image.private-browsing-indicator-icon { filter: grayscale(1) invert(); }
  18. /* Hide private browsing label */
  19. #private-browsing-indicator-with-label > label { display: none; }
  20. /* Hide tab bar spacer */
  21. #TabsToolbar .titlebar-spacer[type="post-tabs"] { display: none; }
  22. /* Hide reader view button when not active */
  23. #urlbar #page-action-buttons #reader-mode-button:not([readeractive="true"]) { display: none; }
  24. /* Hide Hover Zoom+ button */
  25. #urlbar #page-action-buttons #pageAction-urlbar-_92e6fe1c-6e1d-44e1-8bc6-d309e59406af_ { display: none; }
  26. /* Hide Multi-Account Containers button */
  27. #urlbar #page-action-buttons #pageAction-urlbar-_testpilot-containers { display: none; }
  28. /* Hide RES button */
  29. #urlbar #page-action-buttons #pageAction-urlbar-jid1-xufzosoflzsoxg_jetpack { display: none; }
  30. /* Hide default multifoxContainer label */
  31. #urlbar #page-action-buttons #userContext-label[value="Default"] { display: none; }
  32. /* Shrink bookmark separators */
  33. #PlacesToolbarItems > toolbarseparator::before {
  34. filter: opacity(0.3);
  35. height: 80%;
  36. margin: auto;
  37. }
  38. /* Remove bookmark bar text */
  39. #personal-bookmarks .bookmark-item > .toolbarbutton-text {
  40. max-width: 0;
  41. }
  42. #personal-bookmarks .bookmark-item > .toolbarbutton-icon:not([label=""], [type="menu"]) {
  43. margin-inline-end: revert !important;
  44. }
  45. /* Always show bookbar bar text for folders */
  46. #personal-bookmarks .bookmark-item > .toolbarbutton-icon[type="menu"] + .toolbarbutton-text {
  47. max-width: none;
  48. }
  49. /* Animate bookmark bar text on hover */
  50. #personal-bookmarks .bookmark-item:is(:hover, :focus, :active) > .toolbarbutton-text {
  51. max-width: inherit;
  52. transition: max-width 0.5s ease-out 0.2s;
  53. }
  54. #personal-bookmarks .bookmark-item:is(:hover, :focus, :active) > .toolbarbutton-icon:not([label=""], [type="menu"]) {
  55. margin-inline-end: inherit !important;
  56. transition: margin-inline-end 0.1s linear 0.2s;
  57. }