HaniiPuppy

Firefox userChrome.css 2

Dec 9th, 2019
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.09 KB | None | 0 0
  1. /* TABS: on bottom */
  2.  
  3. :root
  4. {
  5.     --uc-titlebar-padding: 0px;
  6. }
  7.  
  8. :root[sizemode="maximized"][tabsintitlebar]
  9. {
  10.     --uc-titlebar-padding: 8px
  11. }
  12.  
  13. .titlebar-buttonbox-container
  14. {
  15.     position: fixed;
  16.     display: block;
  17.     top: var(--uc-titlebar-padding,0px);
  18.     right:0;
  19.     height: 40px;
  20. }
  21.  
  22. /* Mac specific. You should set that font-smoothing pref to true if you are on any platform where window controls are on left */
  23. @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled")
  24. {
  25.     :root{ --uc-titlebar-padding: 0px !important }
  26.     .titlebar-buttonbox-container{ left:0; right: unset; }
  27. }
  28.  
  29. :root[uidensity="compact"] .titlebar-buttonbox-container{ height: 32px }
  30.  
  31. #toolbar-menubar[inactive] > .titlebar-buttonbox-container{ opacity: 0 }
  32.  
  33. #navigator-toolbox
  34. {
  35.     padding-top: var(--uc-titlebar-padding,0px) !important;
  36. }
  37.  
  38.  
  39. .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
  40.  
  41. #titlebar
  42. {
  43.     -moz-box-ordinal-group: 2;
  44.     -moz-appearance: none !important;
  45. }
  46.  
  47. .titlebar-placeholder,
  48. #TabsToolbar .titlebar-spacer{ display: none; }
  49. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  50. #navigator-toolbox::after{ display: none !important; }
  51.  
  52. @media (-moz-gtk-csd-close-button){ .titlebar-button{ -moz-box-orient: vertical } }
  53.  
  54. /* These exist only for compatibility with autohide-tabstoolbar.css */
  55. toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; }
  56. #navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 }
  57.  
  58.  
  59.  
  60.  
  61. #TabsToolbar
  62. {
  63.     position: absolute !important;
  64.     /*display: block;*/
  65.     bottom: 0 !important;
  66.     width: 100vw !important;
  67.     background-color: var(--toolbar-bgcolor) !important;
  68. }
  69.  
  70.  
  71.  
  72.  
  73. /* drag space */
  74. .titlebar-spacer[type="pre-tabs"],
  75. .titlebar-spacer[type="post-tabs"] {
  76.   display:none !important;
  77. }
  78.  
  79. #main-window:not([chromehidden*="toolbar"]) #navigator-toolbox
  80. {
  81.   padding-bottom: var(--tab-min-height) !important;
  82. }
  83.  
  84. /* TABS: height */
  85. :root {
  86.  --tab-toolbar-navbar-overlap: 0px !important;
  87.  --tab-min-height: 25px !important; /* adjust to suit your needs */
  88. }
  89. :root #tabbrowser-tabs {
  90.  --tab-min-height: 25px !important; /* needs to be the same as above under :root */
  91.  --tab-min-width: 80px !important;
  92. }
  93.  
  94. #TabsToolbar {
  95.  height: var(--tab-min-height) !important;
  96.  margin-bottom: 1px !important;
  97.  box-shadow: ThreeDShadow 0 -1px inset, -moz-dialog 0 1px !important;
  98.  background-color: var(--toolbar-bgcolor) !important;
  99. }
  100.  
  101. /* Fixes window moving when moving a tab */
  102. #navigator-toolbox[movingtab] > #titlebar > #TabsToolbar {
  103.   padding-bottom: unset !important;
  104. }
  105. #navigator-toolbox[movingtab] #tabbrowser-tabs {
  106.   padding-bottom: unset !important;
  107.   margin-bottom: unset !important;
  108. }
  109. #navigator-toolbox[movingtab] > #nav-bar {
  110.   margin-top: unset !important;
  111. }
  112.  
  113. /* Fixes window buttons being on window area */
  114. .titlebar-buttonbox-container{
  115.   position: fixed;
  116.   top:0;
  117.   left:0;
  118.   height: 0px;
  119. }
  120.  
  121. /* Hides favicons in the bookmarks bar. */
  122. #personal-bookmarks .toolbarbutton-icon
  123. {
  124.   display: none !important;
  125. }
Advertisement
Add Comment
Please, Sign In to add comment