Advertisement
Salberyon

userChrome.css

Aug 29th, 2023 (edited)
749
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.85 KB | None | 0 0
  1. #unified-extensions-button, #unified-extensions-button > .toolbarbutton-icon{
  2. width: 0px !important;
  3. padding: 0px !important;
  4. }
  5.  
  6. /* 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
  7. See the above repository for updates as well as full license text. */
  8.  
  9. /* This reorders toolbar to place tabs below other toolbars. Requires Firefox 133+ */
  10.  
  11. @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"){
  12. #nav-bar > .titlebar-buttonbox-container{
  13. order: -1 !important;
  14. > .titlebar-buttonbox{
  15. flex-direction: row-reverse;
  16. }
  17. }
  18. }
  19. @media not (-moz-bool-pref: "sidebar.verticalTabs"){
  20. .global-notificationbox,
  21. #tab-notification-deck,
  22. #TabsToolbar{
  23. order: 1;
  24. }
  25. #TabsToolbar > :is(.titlebar-spacer,.titlebar-buttonbox-container){
  26. display: none;
  27. }
  28. :root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
  29. display: flex !important;
  30. }
  31. :root[tabsintitlebar] #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
  32. > .titlebar-buttonbox-container{
  33. display: flex !important;
  34. }
  35. :root[sizemode="normal"] & {
  36. > .titlebar-spacer{
  37. display: flex !important;
  38. }
  39. }
  40. :root[sizemode="maximized"] & {
  41. > .titlebar-spacer[type="post-tabs"]{
  42. display: flex !important;
  43. }
  44. @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"),
  45. (-moz-gtk-csd-reversed-placement),
  46. (-moz-platform: macos){
  47. > .titlebar-spacer[type="post-tabs"]{
  48. display: none !important;
  49. }
  50. > .titlebar-spacer[type="pre-tabs"]{
  51. display: flex !important;
  52. }
  53. }
  54. }
  55. }
  56. }
  57.  
  58. /* This part is from pre Firefox 113 and does the transparency */
  59.  
  60.  
  61.  
  62. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom.css made available under Mozilla Public License v. 2.0
  63. See the above repository for updates as well as full license text. */
  64.  
  65. /* Modify to change window drag space width */
  66. /*
  67. Use tabs_on_bottom_menubar_on_top_patch.css if you
  68. have menubar permanently enabled and want it on top
  69. */
  70.  
  71. /* IMPORTANT */
  72. /*
  73. Get window_control_placeholder_support.css
  74. Window controls will be all wrong without it.
  75. Additionally on Linux, you may need to get:
  76. linux_gtk_window_control_patch.css
  77. */
  78.  
  79. /* Transparent toolbars */
  80. #main-window[lwthemetextcolor="bright"] #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar) {
  81. background-color: transparent !important;
  82. background-image: none !important;
  83. }
  84.  
  85. :root{ --uc-titlebar-padding: 0px; }
  86. @media (-moz-os-version: windows-win10){
  87. :root[sizemode="maximized"][tabsintitlebar]{ --uc-titlebar-padding: 8px }
  88. }
  89. #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container,
  90. #TabsToolbar > .titlebar-buttonbox-container{
  91. position: fixed;
  92. display: block;
  93. top: var(--uc-titlebar-padding,0px);
  94. right:0;
  95. height: 40px;
  96. }
  97. /* Mac specific. You should set that font-smoothing pref to true if you are on any platform where window controls are on left */
  98. @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
  99. :root{ --uc-titlebar-padding: 0px !important }
  100. .titlebar-buttonbox-container{ left:0; right: unset !important; }
  101. }
  102.  
  103. :root[uidensity="compact"] #TabsToolbar > .titlebar-buttonbox-container{ height: 32px }
  104.  
  105. #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ opacity: 0 }
  106.  
  107. #navigator-toolbox{ padding-top: var(--uc-titlebar-padding,0px) !important; }
  108.  
  109. .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
  110.  
  111. .browser-toolbar{ background: transparent !important; }
  112.  
  113. #titlebar{
  114. -moz-box-ordinal-group: 2;
  115. -moz-appearance: none !important;
  116. --tabs-navbar-shadow-size: 0px;
  117. }
  118.  
  119. .titlebar-placeholder,
  120. #TabsToolbar .titlebar-spacer{ display: none; }
  121. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  122. #navigator-toolbox::after{ display: none !important; }
  123.  
  124. @media (-moz-gtk-csd-close-button){ .titlebar-button{ -moz-box-orient: vertical } }
  125.  
  126. /* These exist only for compatibility with autohide-tabstoolbar.css */
  127. toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; }
  128. #navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 }
  129.  
  130. /* 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
  131. See the above repository for updates as well as full license text. */
  132.  
  133. /* Menubar on top patch - use with tabs_on_bottom.css */
  134. /* Only really useful if menubar is ALWAYS visible */
  135.  
  136. :root{ --uc-window-control-width: 0px !important }
  137.  
  138. #navigator-toolbox{ padding-top: calc(29px + var(--uc-titlebar-padding,0px)) !important }
  139.  
  140. #toolbar-menubar{
  141. position: fixed;
  142. display: flex;
  143. top: var(--uc-titlebar-padding,0px);
  144. height: 29px;
  145. width: 100%;
  146. overflow: hidden;
  147. }
  148.  
  149. #toolbar-menubar > .titlebar-buttonbox-container{ height: 29px; order: 100; }
  150.  
  151. #toolbar-menubar > [flex]{ flex-grow: 100; }
  152. #toolbar-menubar > spacer[flex]{
  153. order: 99;
  154. flex-grow: 1;
  155. min-width: var(--uc-window-drag-space-width,20px);
  156. }
  157.  
  158. #toolbar-menubar .titlebar-button{ padding: 2px 17px !important; }
  159.  
  160. #toolbar-menubar .toolbarbutton-1 { --toolbarbutton-inner-padding: 3px }
  161.  
  162. /* TABS: height */*|*:root { --tab-toolbar-navbar-overlap: 0px !important; --tab-min-height: 25px !important;
  163. --tab-min-width: 80px !important;
  164.  
  165. #tabbrowser-tabs {
  166. width: 50vw !important;
  167. }
  168. #main-window:not([chromehidden*="toolbar"]) #navigator-toolbox {padding-bottom: var(--tab-min-height) !important;}
  169.  
  170. .tab-background {
  171. border-radius: 0px 0px 0px 0px !important; border-image: none !important;
  172. }
  173. .tab-line {
  174. display: none;
  175. }
  176.  
  177. .tab-close-button {
  178. color: red!important;
  179. }
  180.  
  181. #alltabs-button { display: none !important; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement