Advertisement
Guy001

userChrome.css for a more compact Firefox UI

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