Guest User

Firefox CSS + Pill Shaped Tabs & More

a guest
Mar 30th, 2026
221
0
134 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.63 KB | None | 0 0
  1. /******************** 0. Font Sizes ********************/
  2. /* Scoped font size */
  3. :root {
  4.   font-size: 14px !important;
  5.   --tab-min-height: 28px !important;
  6. }
  7.  
  8. /* Address bar font size */
  9. #nav-bar {
  10.   font-size: 12px !important;
  11. }
  12.  
  13. /* Bookmarks (All Items - folders) */
  14. .bookmark-item[container] label {
  15.   font-size: 14.5px !important;
  16. }
  17.  
  18.  
  19. /******************** 1. Toolbar Order ********************/
  20. #navigator-toolbox {
  21.   display: flex;
  22.   flex-direction: column;
  23. }
  24.  
  25. #nav-bar { order: 1; }
  26. #PersonalToolbar { order: 2; }
  27. #TabsToolbar { order: 3; }
  28.  
  29.  
  30. /******************** 2. Tab Bar Changes ********************/
  31.  
  32. .tabbrowser-tab {
  33.   padding-block: 0 !important;
  34. }
  35.  
  36. /* Pill-shaped tabs */
  37. .tabbrowser-tab .tab-background {
  38.   border-radius: 999px !important;
  39.   margin-block: 2px !important;
  40.   padding-inline: 8px !important;
  41. }
  42.  
  43. /* Active tab */
  44. .tabbrowser-tab[selected="true"] .tab-background {
  45.   background-color: var(
  46.     --tab-selected-bgcolor,
  47.     var(--toolbar-bgcolor)
  48.   ) !important;
  49.   border: 1px solid var(--toolbar-field-border-color, #aaa) !important;
  50. }
  51.  
  52. /* Active tab font weight */
  53. .tabbrowser-tab[selected="true"] .tab-label {
  54.   font-weight: 500 !important;
  55. }
  56.  
  57. /* Inactive tabs */
  58. .tabbrowser-tab:not([selected="true"]) .tab-background {
  59.   background-color: var(
  60.     --tab-background-color,
  61.     rgba(150, 150, 150, 0.15)
  62.   ) !important;
  63.   border: 1px solid transparent !important;
  64. }
  65.  
  66. /* Close button */
  67. .tabbrowser-tab .tab-close-button {
  68.   width: 14px !important;
  69.   height: 14px !important;
  70.   padding: 0 !important;
  71.   margin-block: 2px !important;
  72.   margin-inline-start: 2px !important;
  73.   margin-inline-end: 1px !important;
  74. }
  75.  
  76. /* Close button hover shape */
  77. .tabbrowser-tab .tab-close-button:hover {
  78.   border-radius: 50% !important;
  79. }
  80.  
  81.  
  82. /******************** 3. Bookmarks Changes ********************/
  83.  
  84. /* Remove folder icon from bookmark folders */
  85. #PersonalToolbar toolbarbutton.bookmark-item[container] .toolbarbutton-icon {
  86.   display: none !important;
  87. }
  88.  
  89. /* Extra padding for bookmark folder labels */
  90. #PersonalToolbar toolbarbutton.bookmark-item[container] .toolbarbutton-text {
  91.   padding-left: 4px !important;
  92.   padding-right: 4px !important;
  93. }
  94.  
  95. /* Add space below bookmarks toolbar */
  96. #PersonalToolbar {
  97.   padding-bottom: 3px !important;
  98. }
  99.  
  100. /* Center bookmarks */
  101. #PersonalToolbar #PlacesToolbarItems {
  102.   display: flex !important;
  103.   justify-content: center !important;
  104.   width: 100% !important;
  105. }
  106.  
  107.  
  108. /******************** 4. Navigation Buttons ********************/
  109.  
  110. /* Hide back & forward buttons */
  111. #back-button,
  112. #forward-button {
  113.   display: none !important;
  114. }
  115.  
Advertisement
Add Comment
Please, Sign In to add comment