Guest User

Firefox CSS

a guest
Feb 16th, 2026
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | Source Code | 0 0
  1. html {
  2. --custom-bg: #f5f5f5;
  3. }
  4.  
  5. body {
  6. background: var(--custom-bg) !important;
  7. }
  8.  
  9. html:not([privatebrowsingmode="temporary"]) #navigator-toolbox {
  10. padding-top: 3px;
  11. padding-bottom: 4px;
  12. background: var(--custom-bg) !important;
  13. border-bottom: 0 !important;
  14. }
  15.  
  16. #nav-bar {
  17. background: var(--custom-bg) !important;
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. width: calc(100% - 20px);
  22. }
  23.  
  24. /* Ensure icons are centered within the nav-bar */
  25. #nav-bar > .nav-bar-inner {
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. width: 100%;
  30. }
  31.  
  32. html:not([privatebrowsingmode="temporary"]) #sidebar-box {
  33. background: var(--custom-bg) !important;
  34. }
  35.  
  36. html:not([privatebrowsingmode="temporary"]) #sidebar-splitter {
  37. border: none !important;
  38. background: transparent !important;
  39. width: 1px !important;
  40. }
  41.  
  42. html:not([privatebrowsingmode="temporary"]) #TabsToolbar {
  43. visibility: collapse !important;
  44. }
  45.  
  46. #TabsToolbar {
  47. background: var(--custom-bg) !important;
  48. }
  49.  
  50. html:not([privatebrowsingmode="temporary"]) .titlebar-buttonbox-container {
  51. position: absolute;
  52. right: 0;
  53. top: 9px;
  54. display: flex;
  55. justify-content: center;
  56. width: 110px !important;
  57. }
  58.  
  59. .titlebar-button {
  60. width: 36px !important;
  61. }
  62.  
  63. html:not([privatebrowsingmode="temporary"]) #sidebar-header {
  64. display: none;
  65. }
  66.  
  67. #identity-icon-label {
  68. display: none;
  69. }
  70.  
  71. #urlbar {
  72. left: 50% !important;
  73. transform: translateX(-50%);
  74. max-width: 960px !important;
  75. }
  76.  
  77. #urlbar:not([breakout-extend]) #urlbar-background {
  78. background: none !important;
  79. background-color: transparent !important;
  80. }
  81.  
  82. html:not([privatebrowsingmode="temporary"]) #sidebar-box {
  83. --uc-sidebar-width: 60px;
  84. --uc-sidebar-hover-width: 360px;
  85. position: relative;
  86. min-width: var(--uc-sidebar-width) !important;
  87. width: var(--uc-sidebar-width) !important;
  88. max-width: var(--uc-sidebar-width) !important;
  89. z-index: 4 !important;
  90. }
  91.  
  92. html:not([privatebrowsingmode="temporary"]) #main-window[sizemode="fullscreen"] #sidebar-box {
  93. --uc-sidebar-width: 1px;
  94. }
  95.  
  96. html:not([privatebrowsingmode="temporary"]) #sidebar-splitter {
  97. display: none;
  98. }
  99.  
  100. html:not([privatebrowsingmode="temporary"]) #sidebar {
  101. min-width: var(--uc-sidebar-width) !important;
  102. }
  103.  
  104. html:not([privatebrowsingmode="temporary"]) #sidebar-box:hover > .sidebar-browser-stack > #sidebar {
  105. min-width: var(--uc-sidebar-hover-width) !important;
  106. }
  107.  
  108. html:not([privatebrowsingmode="temporary"]) .sidebar-panel {
  109. background-color: transparent !important;
  110. color: var(--newtab-text-primary-color) !important;
  111. }
  112.  
Tags: Firefox css
Advertisement
Add Comment
Please, Sign In to add comment