Advertisement
Guy001

userChrome.css for a more compact Firefox UI

Oct 31st, 2024 (edited)
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.58 KB | None | 0 0
  1. /*    Menu Bar height    */
  2. #toolbar-menubar {
  3.   margin-top: 0px !important;
  4.   margin-bottom: 0px !important;
  5.   padding-top: 0px !important;
  6.   padding-bottom: 0px !important;
  7. }
  8. /* Fixing title bar buttons (close/min/max) due to shortened Menu Bar height */
  9. #toolbar-menubar .titlebar-button {
  10.   padding-block: 1px !important;
  11. }
  12.  
  13. /*    Tabs/Tab Bar height    */
  14. :root {
  15.  --tab-min-height: 20px !important;
  16. }
  17. #TabsToolbar {
  18.   max-height: 25px !important;
  19. }
  20.  
  21. /* decreasing the bottom padding of the tabs toolbar */
  22. #TabsToolbar {
  23.   margin-bottom: -3px !important;
  24. }
  25.  
  26. /*    Toolbar/Address bar/URL bar height    */
  27. /* partially based on https://github.com/CarterSnich/firefox-xtra-compact/blob/master/chrome/userChrome.css */
  28. toolbar#nav-bar {
  29.   height: 25px !important;
  30. }
  31. .urlbar-input-container {
  32.   height: 24px !important;
  33.   margin-top: 4px !important;
  34. }
  35. #urlbar-background {
  36.   height: 21px !important;
  37.   margin-top: 5px !important;
  38. }
  39. /* centering the url text line vertically */
  40. #urlbar-input {
  41.   padding-bottom: 2px !important;
  42. }
  43.  
  44. /* removing the empty spaces in the toolbar sides */
  45. #back-button {
  46.   padding-left: 0px !important;
  47. }
  48. #PanelUI-menu-button {
  49.   padding-right: 0px !important;
  50. }
  51.  
  52. /*    Menu Items height/padding    */
  53. menupopup > menu:not(bookmarksPopup), /* this is for the lines of the sub-menus/folders/containers */
  54. menupopup > menuitem:not(bookmarksPopup) {
  55.   padding-block: 3px !important; /* above and below each item */
  56.   margin-left: 0px !important; /* margin is the outer space around an item */
  57.   padding-left: 8px !important; /* padding is the inner space inside an item */
  58.   margin-right: 0px !important;
  59.   padding-right: 0px !important;
  60. }
  61.  
  62. /* the padding of the menu itself */
  63. menupopup {
  64.   --panel-padding: 1px !important;
  65. }
  66.  
  67. /* the text part of the item/sub-menu */
  68. menupopup > menu > hbox, /* this is the text part of the sub-menus/folders/containers */
  69. menupopup > menuitem > hbox {
  70.   margin-left: 0px !important;
  71.   margin-right: 4px !important; /* not 0px because otherwise the text appears too close to the favicon */
  72. }
  73.  
  74. /* removing padding for separators */
  75. menuseparator {
  76.   padding-block: 0px !important;
  77. }
  78.  
  79. /* padding for the "hamburger menu" and extensions menu in the toolbar */
  80. /* the values in the first line refer to the top-bottom and left-right padding respectively */
  81. :root{
  82. --arrowpanel-menuitem-padding: 1px 1px !important;
  83. --arrowpanel-menuitem-margin-inline: 1px !important;
  84. --arrowpanel-menuitem-padding-block: 1px !important;
  85. --panel-separator-margin-horizontal: 1px !important;
  86. --panel-subview-body-padding-block: 1px !important;
  87. }
  88.  
  89. /* height/placement of the "go" arrow when typing/searching in the urlbar */
  90. #urlbar-go-button {
  91.   padding-top: 0px !important;
  92.   padding-bottom: 0px !important;
  93.   line-height: 20px !important;
  94.   max-height: 20px !important;
  95. }
  96.  
  97. /* padding of the left-side icons in the url bar */
  98. #tracking-protection-icon-container, #identity-icon-box, #identity-permission-box {
  99.   padding: 4px !important;
  100. }
  101.  
  102. /* spacing/padding around addons icons in the toolbar/urlbar */
  103. :root {
  104.   --toolbarbutton-outer-padding: 0px !important;
  105.   --toolbarbutton-inner-padding: 5px !important;
  106. }
  107. .toolbaritem-combined-buttons:not([widget-type='button-and-view']),
  108. .toolbaritem-menu-buttons {
  109.   margin-inline: 0px !important;
  110.   margin-inline-start: 0px !important;
  111.   margin-inline-end: 0px !important;
  112. }
  113.  
  114. /* padding of the New Tab button */
  115. #tabs-newtab-button {
  116.   padding-left: 3px !important;
  117. }
  118.  
  119. /* padding of the site icon on a tab */
  120. stack.tab-icon-stack {
  121.   margin: -2px !important;
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement