Guest User

Untitled

a guest
Oct 25th, 2026
6
0
179 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. /* ==========================================================================
  2. 1. HIDE DEFAULT TABS TOOLBAR & WINDOW CONTROLS (WITH FULLSCREEN FIX)
  3. ========================================================================== */
  4. #TabsToolbar:not([customizing]) {
  5. visibility: collapse !important;
  6. }
  7.  
  8. /* Only show window controls when NOT in full screen mode */
  9. #main-window:not([inFullscreen]) #nav-bar .titlebar-buttonbox-container {
  10. display: flex !important;
  11. visibility: visible !important;
  12. }
  13.  
  14. /* Force window controls to completely hide in full screen to prevent top-left glitch */
  15. #main-window[inFullscreen] #nav-bar .titlebar-buttonbox-container {
  16. display: none !important;
  17. visibility: hidden !important;
  18. }
  19.  
  20.  
  21. /* ==========================================================================
  22. 2. COLLAPSIBLE OVERLAY SIDEBAR & HIDE SIDEBAR HEADER / CLOSE BUTTON
  23. ========================================================================== */
  24. :root {
  25. --sidebar-min-width: 40px;
  26. --sidebar-visible-width: 210px;
  27. --sidebar-hide-delay: 60ms;
  28. --transition-duration: 100ms;
  29. --transition-type: ease;
  30. --z-index-sidebar: 100;
  31. }
  32.  
  33. /* Hides Firefox's native sidebar title header and close 'X' button */
  34. #sidebar-box #sidebar-header,
  35. #sidebar-panel-header {
  36. display: none !important;
  37. }
  38.  
  39. #sidebar-box {
  40. background-color: var(--toolbar-bgcolor) !important;
  41. position: absolute !important;
  42. top: 0;
  43. bottom: 0;
  44. left: 0;
  45. min-width: var(--sidebar-min-width) !important;
  46. width: var(--sidebar-min-width) !important;
  47. max-width: var(--sidebar-visible-width) !important;
  48. z-index: var(--z-index-sidebar) !important;
  49. transition: min-width var(--transition-duration) var(--transition-type) var(--sidebar-hide-delay) !important;
  50.  
  51. /* Remove gray lines and rounded corners */
  52. border: none !important;
  53. outline: none !important;
  54. box-shadow: none !important;
  55. border-radius: 0 !important;
  56. }
  57.  
  58. /* Hide sidebar entirely during full screen so it doesn't trap mouse layout events */
  59. #main-window[inFullscreen] #sidebar-box {
  60. display: none !important;
  61. }
  62.  
  63. #sidebar {
  64. min-width: var(--sidebar-min-width) !important;
  65. width: var(--sidebar-min-width) !important;
  66. transition: min-width var(--transition-duration) var(--transition-type) var(--sidebar-hide-delay) !important;
  67. will-change: min-width;
  68.  
  69. /* Remove gray lines and rounded corners */
  70. border: none !important;
  71. outline: none !important;
  72. box-shadow: none !important;
  73. border-radius: 0 !important;
  74. }
  75.  
  76. #sidebar-box:hover {
  77. min-width: var(--sidebar-visible-width) !important;
  78. width: var(--sidebar-visible-width) !important;
  79. transition-delay: 0ms !important;
  80. }
  81.  
  82. #sidebar-box:hover > #sidebar,
  83. #sidebar-box:hover > .sidebar-browser-stack > #sidebar {
  84. min-width: var(--sidebar-visible-width) !important;
  85. width: var(--sidebar-visible-width) !important;
  86. transition-delay: 0ms !important;
  87. }
  88.  
  89. #appcontent {
  90. margin-left: var(--sidebar-min-width) !important;
  91. border-radius: 0 !important;
  92. }
  93.  
  94. #sidebar-splitter {
  95. display: none !important;
  96. min-width: 0 !important;
  97. width: 0 !important;
  98. border: none !important;
  99. background-color: transparent !important;
  100. }
  101.  
  102.  
  103. /* ==========================================================================
  104. 3. AUTO-HIDING BOOKMARKS BAR
  105. ========================================================================== */
  106. #PersonalToolbar {
  107. --uc-bm-height: 20px;
  108. --uc-bm-padding: 4px;
  109. --uc-autohide-toolbar-delay: 60ms;
  110. margin-left: 40px !important; /* Clears the collapsed sidebar icon strip */
  111. }
  112.  
  113. :root[uidensity="touch"] #PersonalToolbar {
  114. --uc-bm-padding: 7px;
  115. }
  116.  
  117. #PersonalToolbar:not([customizing]) {
  118. position: relative !important;
  119. margin-bottom: calc(-1px - var(--uc-bm-height) - 2 * var(--uc-bm-padding)) !important;
  120. transform: rotateX(90deg);
  121. transform-origin: top;
  122. transition: transform 135ms linear var(--uc-autohide-toolbar-delay) !important;
  123. z-index: 5 !important;
  124. background: inherit !important;
  125. background-color: var(--toolbar-bgcolor, #131317) !important;
  126. }
  127.  
  128. #PlacesToolbarItems > .bookmark-item,
  129. #OtherBookmarks,
  130. #PersonalToolbar > #import-button {
  131. padding-block: var(--uc-bm-padding) !important;
  132. }
  133.  
  134. /* Reliable hover and focus triggers across the whole toolbox area */
  135. #navigator-toolbox:is(:hover, :focus-within) #PersonalToolbar {
  136. transition-delay: 100ms !important;
  137. transform: rotateX(0deg) !important;
  138. }
  139.  
  140. #navigator-toolbox {
  141. --browser-area-z-index-toolbox: 4;
  142. overflow: visible !important;
  143. border-top-left-radius: 0 !important;
  144. border-radius: 0 !important;
  145. }
  146.  
  147. #browser {
  148. border-radius: 0 !important;
  149. }
Advertisement
Add Comment
Please, Sign In to add comment