Guest User

My CSS Code

a guest
Sep 15th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.20 KB | None | 0 0
  1.  
  2. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom.css made available under Mozilla Public License v. 2.0
  3. See the above repository for updates as well as full license text. */
  4.  
  5. /* Modify to change window drag space width */
  6. /*
  7. Use tabs_on_bottom_menubar_on_top_patch.css if you
  8. have menubar permanently enabled and want it on top
  9. */
  10.  
  11. /* IMPORTANT */
  12. /*
  13. Get window_control_placeholder_support.css
  14. Window controls will be all wrong without it.
  15. Additionally on Linux, you may need to get:
  16. linux_gtk_window_control_patch.css
  17. */
  18.  
  19. radiogroup:focus-visible > radio[focused="true"] > .radio-label-box {
  20. outline: 1px dotted black !important;
  21. }
  22.  
  23. :root{ --toolbar-field-focus-border-color: transparent !important; }
  24.  
  25. :root{ --uc-titlebar-padding: 10px; }
  26. @media (-moz-os-version: windows-win7),(-moz-os-version: windows-win10){
  27. :root[sizemode="maximized"][tabsintitlebar]{ --uc-titlebar-padding: 8px }
  28. }
  29. #alltabs-button { display: none !important; }
  30. #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container,
  31. #TabsToolbar > .titlebar-buttonbox-container{
  32. position: fixed;
  33. display: block;
  34. top: var(--uc-titlebar-padding,0px);
  35. right:0;
  36. height: 40px;
  37. }
  38. /* Mac specific. You should set that font-smoothing pref to true if you are on any platform where window controls are on left */
  39. @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
  40. :root{ --uc-titlebar-padding: 0px !important }
  41. .titlebar-buttonbox-container{ left:0; right: unset !important; }
  42. }
  43.  
  44. :root[uidensity="compact"] #TabsToolbar > .titlebar-buttonbox-container{ height: 32px }
  45.  
  46. #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ opacity: 0 }
  47.  
  48. #navigator-toolbox{ padding-top: var(--uc-titlebar-padding,0px) !important; }
  49.  
  50. .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
  51.  
  52. #titlebar{
  53. order: 2;
  54. -moz-appearance: none !important;
  55. --tabs-navbar-shadow-size: 0px;
  56. }
  57.  
  58. #unified-extensions-button{
  59. display: none !important;
  60. }
  61.  
  62. .titlebar-placeholder,
  63. #TabsToolbar .titlebar-spacer{ display: none; }
  64. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  65. #navigator-toolbox::after{ display: none !important; }
  66.  
  67. @media (-moz-gtk-csd-close-button){ .titlebar-button{ flex-direction: column; } }
  68.  
  69. /* These exist only for compatibility with autohide-tabstoolbar.css */
  70. toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; }
  71. #navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 }
  72.  
  73. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom_menubar_on_top_patch.css made available under Mozilla Public License v. 2.0
  74. See the above repository for updates as well as full license text. */
  75.  
  76. /* Menubar on top patch - use with tabs_on_bottom.css */
  77. /* Only really useful if menubar is ALWAYS visible */
  78.  
  79. :root:not([sizemode="fullscreen"]){ --uc-window-control-width: 0px !important }
  80.  
  81. :root{
  82. /* height if native titlebar is enabled, assumes empty menubar */
  83. --uc-menubar-height: 22px;
  84. }
  85. :root[tabsintitlebar]{
  86. /* height when native titlebar is disabled, more roomy so can fit buttons etc. */
  87. --uc-menubar-height: 22px;
  88. }
  89.  
  90. #navigator-toolbox{ padding-top: calc(var(--uc-menubar-height) + var(--uc-titlebar-padding,0px)) !important }
  91. :root[sizemode="fullscreen"] #navigator-toolbox{ padding-top: 0px !important; }
  92. #toolbar-menubar{
  93. position: fixed;
  94. display: flex;
  95. top: var(--uc-titlebar-padding,0px);
  96. height: var(--uc-menubar-height);
  97. width: 100%;
  98. overflow: hidden;
  99. }
  100.  
  101. #toolbar-menubar > .titlebar-buttonbox-container{ height: 100%; order: 100; }
  102.  
  103. #toolbar-menubar > [flex]{ flex-grow: 100; }
  104. #toolbar-menubar > spacer[flex]{
  105. order: 99;
  106. flex-grow: 1;
  107. min-width: var(--uc-window-drag-space-width,20px);
  108. }
  109.  
  110. #toolbar-menubar .titlebar-button{ padding: 2px 17px !important; }
  111.  
  112. #toolbar-menubar .toolbarbutton-1 { --toolbarbutton-inner-padding: 3px }
  113.  
  114. /* remove padding in bookmarks menu */
  115. menupopup > menuitem, menupopup > menu {
  116. padding-block: 1.4px !important;
  117. }
  118.  
  119. .openintabs-menuitem {
  120. display: none !important;
  121. }
  122.  
  123. .bookmarks-actions-menuseparator {
  124. display:none !important;
  125. }
  126.  
  127. /* Status-bar */
  128. #main-window:not([inFullscreen="true"]) > body::after{
  129. display: flex;
  130. content: "";
  131. height: 24px;
  132. border-top: solid 0px #505050;
  133. }
  134. .browserContainer>statuspanel { left: 4px !important; bottom: 0px; transition-duration: 0s !important; transition-delay: 0s !important; }
  135. .browserContainer>statuspanel>.statuspanel-inner>.statuspanel-label { margin-left: 0px !important; border: none !important; padding: 0px !important; }
  136.  
  137. window[inFullscreen="true"] #browser-bottombox { display:none !important; }
  138. window[inFullscreen="true"] .browserContainer>statuspanel[type="overLink"] .statuspanel-label { display:none !important; }
  139.  
  140. #statuspanel #statuspanel-label {
  141. -moz-appearance: none !important;
  142. background-color: transparent !important;
  143. border: 0px solid black !important;
  144. padding-top: 22px !important;
  145. }
  146.  
  147. #statuspanel {
  148. background-color: transparent !important;
  149. border: none !important;
  150. bottom: 20px !important; /* adjust*/
  151. height: 20px !important; /* adjust */
  152. max-width: 30% !important; /* Change the value to suite your needs */
  153. transition: none !important;
  154. position: fixed !important;
  155. }
  156.  
  157. #PopupAutoCompleteRichResult {
  158.  
  159. display: none!important;
  160.  
  161. }}
  162. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom_v2.css made available under Mozilla Public License v. 2.0
  163. See the above repository for updates as well as full license text. */
  164.  
  165. /* This reorders toolbar to place tabs below other toolbars. Requires Firefox 133+ */
  166.  
  167. @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"),
  168. -moz-pref("userchrome.force-window-controls-on-left.enabled"){
  169. #nav-bar > .titlebar-buttonbox-container{
  170. order: -1 !important;
  171. > .titlebar-buttonbox{
  172. flex-direction: row-reverse;
  173. }
  174. }
  175. }
  176. @media not (-moz-bool-pref: "sidebar.verticalTabs"),
  177. not -moz-pref("sidebar.verticalTabs"){
  178. .global-notificationbox,
  179. #tab-notification-deck,
  180. #TabsToolbar{
  181. order: 1;
  182. }
  183. #TabsToolbar > :is(.titlebar-spacer,.titlebar-buttonbox-container){
  184. display: none;
  185. }
  186. :root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
  187. display: flex !important;
  188. }
  189. :root:is([tabsintitlebar],[customtitlebar]) #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
  190. > .titlebar-buttonbox-container{
  191. display: flex !important;
  192. }
  193. :root[sizemode="normal"] & {
  194. > .titlebar-spacer{
  195. display: flex !important;
  196. }
  197. }
  198. :root[sizemode="maximized"] & {
  199. > .titlebar-spacer[type="post-tabs"]{
  200. display: flex !important;
  201. }
  202. @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"),
  203. -moz-pref("userchrome.force-window-controls-on-left.enabled"),
  204. (-moz-gtk-csd-reversed-placement),
  205. (-moz-platform: macos){
  206. > .titlebar-spacer[type="post-tabs"]{
  207. display: none !important;
  208. }
  209. > .titlebar-spacer[type="pre-tabs"]{
  210. display: flex !important;
  211. }
  212. }
  213. }
  214. }
  215. }
Advertisement
Add Comment
Please, Sign In to add comment