Salberyon

userChrome.css

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