Guest User

userChrome.css

a guest
Jun 2nd, 2021
374
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom.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. /* Modify to change window drag space width */
  5. /*
  6. Use tabs_on_bottom_menubar_on_top_patch.css if you
  7. have menubar permanently enabled and want it on top
  8. */
  9.  
  10. /* IMPORTANT */
  11. /*
  12. Get window_control_placeholder_support.css
  13. Window controls will be all wrong without it.
  14. Additionally on Linux, you may need to get:
  15. linux_gtk_window_control_patch.css
  16. */
  17.  
  18. :root{ --uc-titlebar-padding: 0px; }
  19. @media (-moz-os-version: windows-win10){
  20. :root[sizemode="maximized"][tabsintitlebar]{ --uc-titlebar-padding: 8px }
  21. }
  22. #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container,
  23. #TabsToolbar > .titlebar-buttonbox-container{
  24. position: fixed;
  25. display: block;
  26. top: var(--uc-titlebar-padding,0px);
  27. right:0;
  28. height: 40px;
  29. }
  30. /* Mac specific. You should set that font-smoothing pref to true if you are on any platform where window controls are on left */
  31. @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
  32. :root{ --uc-titlebar-padding: 0px !important }
  33. .titlebar-buttonbox-container{ left:0; right: unset !important; }
  34. }
  35.  
  36. :root[uidensity="compact"] #TabsToolbar > .titlebar-buttonbox-container{ height: 32px }
  37.  
  38. #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ opacity: 0 }
  39.  
  40. #navigator-toolbox{ padding-top: var(--uc-titlebar-padding,0px) !important; }
  41.  
  42. .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
  43.  
  44. #titlebar{
  45. -moz-box-ordinal-group: 2;
  46. -moz-appearance: none !important;
  47. --tabs-navbar-shadow-size: 0px;
  48. }
  49.  
  50. .titlebar-placeholder,
  51. #TabsToolbar .titlebar-spacer{ display: none; }
  52. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  53. #navigator-toolbox::after{ display: none !important; }
  54.  
  55. @media (-moz-gtk-csd-close-button){ .titlebar-button{ -moz-box-orient: vertical } }
  56.  
  57. /* These exist only for compatibility with autohide-tabstoolbar.css */
  58. toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; }
  59. #navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 }
  60.  
  61. /* 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
  62. See the above repository for updates as well as full license text. */
  63.  
  64. /* Menubar on top patch - use with tabs_on_bottom.css */
  65. /* Only really useful if menubar is ALWAYS visible */
  66.  
  67. :root{ --uc-window-control-width: 0px !important }
  68.  
  69. #navigator-toolbox{ padding-top: calc(1px + var(--uc-titlebar-padding,0px)) !important }
  70.  
  71. #toolbar-menubar{
  72. position: fixed;
  73. display: flex;
  74. top: var(--uc-titlebar-padding,29px);
  75. height: 29px;
  76. width: 100%;
  77. overflow: hidden;
  78. }
  79.  
  80. #nav-bar-customization-target,
  81. #PanelUI-button,
  82. #nav-bar-overflow-button,
  83. #toolbar-menubar > spacer{ flex-grow: 1 }
  84. #toolbar-menubar > spacer,
  85. #toolbar-menubar > .titlebar-buttonbox-container{ order: 1000 }
  86.  
  87.  
  88. #toolbar-menubar:not([customizing]){
  89. --uc-menubar-height: 34px;
  90. position: fixed;
  91. display: flex;
  92. width: 100vw;
  93. height: var(--uc-menubar-height);
  94. margin-top: calc(8px - var(--uc-menubar-height));
  95. transition: margin-top 150ms linear !important;
  96. -moz-window-dragging: drag;
  97. z-index:4;
  98. }
  99.  
  100. #toolbar-menubar:hover{
  101. background-color: var(--toolbar-bgcolor) !important;
  102. margin-top: 0px;
  103. z-index: 6
  104. }
  105.  
  106. /* This exists only for compatibility reasons with some other styles */
  107. #navigator-toolbox{ --uc-hide-window-control-space: 0 }
  108.  
  109.  
  110. /* TABS: height */*|*:root { --tab-toolbar-navbar-overlap: 0px !important; --tab-min-height: 25px !important;
  111. --tab-min-width: 80px !important;
  112.  
  113. #tabbrowser-tabs {
  114. width: 100vw !important;
  115. }
  116. #main-window:not([chromehidden*="toolbar"]) #navigator-toolbox {padding-bottom: var(--tab-min-height) !important;}
  117.  
  118. .tab-background {
  119. border-radius: 8px 8px 0px 0px !important; border-image: none !important;
  120. }
  121. .tab-line {
  122. display: none;
  123. }
  124.  
  125. .tab-close-button {
  126. color: red!important;
  127. }
  128.  
RAW Paste Data