Advertisement
Rickkins

Untitled

Apr 10th, 2025
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.99 KB | None | 0 0
  1. /* 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
  2. See the above repository for updates as well as full license text. */
  3.  
  4. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom.css made available under Mozilla Public License v. 2.0
  5. See the above repository for updates as well as full license text. */
  6.  
  7. /* IMPORTANT
  8. Get window_control_placeholder_support.css
  9. Window controls will be all wrong without it.
  10. Additionally on Linux, you may need to get:
  11. linux_gtk_window_control_patch.css
  12. Use tabs_on_bottom_menubar_on_top_patch.css if you
  13. have menubar permanently enabled and want it on top
  14. */
  15.  
  16. #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container,
  17. #TabsToolbar > .titlebar-buttonbox-container{
  18. position: fixed;
  19. display: block;
  20. top: 0px;
  21. right:0;
  22. height: 40px;
  23. }
  24. @media (-moz-gtk-csd-reversed-placement),
  25. (-moz-platform: macos){
  26. .titlebar-buttonbox-container{ left:0; right: unset !important; }
  27. }
  28. @supports -moz-bool-pref("userchrome.force-window-controls-on-left.enabled"){
  29. .titlebar-buttonbox-container{ left:0; right: unset !important; }
  30. }
  31.  
  32. :root[uidensity="compact"] #TabsToolbar > .titlebar-buttonbox-container{ height: 32px }
  33.  
  34. #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ opacity: 0 }
  35.  
  36. .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
  37.  
  38. #titlebar{
  39. -moz-box-ordinal-group: 2; /* Fx <112 compatibility */
  40. order: 2;
  41. -moz-appearance: none !important;
  42. --tabs-navbar-shadow-size: 0px;
  43. --uc-menubar-vertical-overlap: 19px; /* for hide_tabs_with_one_tab_w_window_controls.css compatibility */
  44. }
  45. /* Re-order window and tab notification boxes */
  46. #navigator-toolbox > div{ display: contents }
  47. .global-notificationbox,
  48. #tab-notification-deck{
  49. -moz-box-ordinal-group: 2; /* Fx <112 compatibility */
  50. order: 2;
  51. }
  52.  
  53. #TabsToolbar .titlebar-spacer{ display: none; }
  54. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  55. #navigator-toolbox::after{ display: none !important; }
  56.  
  57. @media (-moz-gtk-csd-close-button){
  58. .titlebar-button{
  59. -moz-box-orient: vertical; /* Fx <112 compatibility */
  60. flex-direction: column;
  61. }
  62. }
  63.  
  64. /* At Activated Menubar */
  65. :root:not([chromehidden~="menubar"], [sizemode="fullscreen"]) #toolbar-menubar:not([autohide="true"]) + #TabsToolbar > .titlebar-buttonbox-container {
  66. display: block !important;
  67. }
  68. #toolbar-menubar:not([autohide="true"]) > .titlebar-buttonbox-container {
  69. visibility: hidden;
  70. }
  71.  
  72. /* These exist only for compatibility with autohide-tabstoolbar.css */
  73. toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; }
  74. #navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 }
  75. #TabsToolbar > .titlebar-buttonbox-container{ visibility: visible }
  76. #navigator-toolbox:not(:-moz-lwtheme){ background-color: -moz-dialog }
  77.  
  78. /* Uncomment the following if you want bookmarks toolbar to be below tabs */
  79. /*
  80. #PersonalToolbar{
  81. -moz-box-ordinal-group: 2;
  82. order: 2;
  83. }
  84. */
  85.  
  86. /* Menubar on top patch - use with tabs_on_bottom.css */
  87. /* Only really useful if menubar is ALWAYS visible */
  88.  
  89. :root:not([sizemode="fullscreen"]){ --uc-window-control-width: 0px !important }
  90.  
  91. :root{
  92. /* height if native titlebar is enabled, assumes empty menubar */
  93. --uc-menubar-height: 20px;
  94. }
  95. :root[tabsintitlebar]{
  96. /* height when native titlebar is disabled, more roomy so can fit buttons etc. */
  97. --uc-menubar-height: 29px;
  98. }
  99. :root:is([sizemode="fullscreen"],[chromehidden~="menubar"]){
  100. --uc-menubar-height: 0px;
  101. }
  102. /* Since menubar is statically at top, remove fake drag-space that might be set by window_control_placeholder_support.css */
  103. :root:not([sizemode="fullscreen"]) #nav-bar{ border-inline-width: 0 }
  104.  
  105. #navigator-toolbox{
  106. -moz-window-dragging: drag;
  107. padding-top: var(--uc-menubar-height) !important;
  108. }
  109.  
  110. /* Remove window dragging from notification boxes */
  111. #tab-notification-deck,
  112. .global-notificationbox{
  113. -moz-window-dragging: no-drag;
  114. }
  115.  
  116. #toolbar-menubar{
  117. position: fixed;
  118. display: flex;
  119. top: 0px;
  120. height: var(--uc-menubar-height);
  121. width: 100%;
  122. overflow: hidden;
  123. }
  124.  
  125. #toolbar-menubar > .titlebar-buttonbox-container{ height: 100%; order: 100; }
  126.  
  127. #toolbar-menubar > [flex]{ flex-grow: 100; }
  128. #toolbar-menubar > spacer[flex]{
  129. order: 99;
  130. flex-grow: 1;
  131. min-width: var(--uc-window-drag-space-post,20px);
  132. }
  133.  
  134. #toolbar-menubar .toolbarbutton-1 { --toolbarbutton-inner-padding: 3px }
  135.  
  136. :root:not([sizemode="fullscreen"]) #toolbar-menubar.browser-toolbar > .titlebar-buttonbox-container{
  137. visibility: visible;
  138. }
  139. :root:not([chromehidden~="menubar"], [sizemode="fullscreen"]) #TabsToolbar#TabsToolbar#TabsToolbar > .titlebar-buttonbox-container {
  140. display: none !important;
  141. }
  142.  
  143. ******************************************
  144. #PlacesToolbarItems > .bookmark-item{
  145. margin-inline: 1px !important; padding-inline: 1px !important;
  146. }
  147. #tabbrowser-tabs tab.tabbrowser-tab[selected="true"],
  148. tabbrowser-tabs tab.tabbrowser-tab[multiselected="true"] {
  149. border-top: 2px solid Black !important;
  150. }
  151. menupopup > .bookmark-item{ padding-block: 1px 2px !important; }
  152. .bookmark-item[container] label { font-size: 18px !important;}
  153.  
  154. *************************************************
  155.  
  156. :root{ --uc-titlebar-padding: 0px !important;}
  157. .titlebar-buttonbox-container{ left:0; right: unset !important; }
  158. }
  159.  
  160. :root[uidensity="compact"] #TabsToolbar > .titlebar-buttonbox-container{ height: 32px }
  161.  
  162. #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ opacity: 0 }
  163.  
  164. #navigator-toolbox{ padding-top: var(--uc-titlebar-padding,0px) !important; }
  165.  
  166. .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
  167.  
  168. #titlebar{
  169. -moz-box-ordinal-group: 2;
  170. -moz-appearance: none !important;
  171. --tabs-navbar-shadow-size: 0px;
  172. }
  173. #tab-notification-deck{ -moz-box-ordinal-group: 2 }
  174.  
  175. #TabsToolbar .titlebar-spacer{ display: none; }
  176. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  177. #navigator-toolbox::after{ display: none !important; }
  178.  
  179. @media (-moz-gtk-csd-close-button){ .titlebar-button{ -moz-box-orient: vertical } }
  180.  
  181. /* These exist only for compatibility with autohide-tabstoolbar.css */
  182. toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; }
  183. #navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 }
  184. #TabsToolbar > .titlebar-buttonbox-container{ visibility: visible }
  185. #navigator-toolbox:not(:-moz-lwtheme){ background-color: -moz-dialog }
  186.  
  187. /* Uncomment the following if you want bookmarks toolbar to be below tabs */
  188. /*
  189. #PersonalToolbar{ -moz-box-ordinal-group: 2 }
  190. */
  191.  
  192.  
  193.  
  194.  
  195. #tabbrowser-tabs tab.tabbrowser-tab[selected="true"],
  196. #tabbrowser-tabs tab.tabbrowser-tab[multiselected="true"] {
  197. border-top: 2px solid Black !important;
  198. }
  199.  
  200. menupopup > .bookmark-item{
  201. padding-block: 1px 2px !important;
  202. }
  203.  
  204. .bookmark-item[container] label { font-size: 18px !important;}
  205.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement