Advertisement
wojtekadams

CSS FF 113

May 18th, 2023 (edited)
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.67 KB | None | 0 0
  1. /* Source file https://github.com/COOLak/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. /* IMPORTANT */
  7. /*
  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. */
  13.  
  14. :root{ --uc-titlebar-padding: 0px; }
  15. @media (-moz-os-version: windows-win10){
  16. :root[sizemode="maximized"][tabsintitlebar]{ --uc-titlebar-padding: 8px }
  17. }
  18. #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container,
  19. #TabsToolbar > .titlebar-buttonbox-container{
  20. position: fixed;
  21. display: block;
  22. top: var(--uc-titlebar-padding,0px);
  23. right:0;
  24. height: 40px;
  25. }
  26. /* Mac specific. You should set that font-smoothing pref to true if you are on any platform where window controls are on left */
  27. @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
  28. :root{ --uc-titlebar-padding: 0px !important }
  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. #navigator-toolbox{ padding-top: var(--uc-titlebar-padding,0px) !important; }
  37.  
  38. .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
  39.  
  40. #titlebar{
  41. order: 2;
  42. appearance: none !important;
  43. --tabs-navbar-shadow-size: 0px;
  44. }
  45.  
  46. .titlebar-placeholder,
  47. #TabsToolbar .titlebar-spacer{ display: none; }
  48. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  49. #navigator-toolbox::after{ display: none !important; }
  50.  
  51. @media (-moz-gtk-csd-close-button){ .titlebar-button{ -flex-direction: column } }
  52.  
  53. /* These exist only for compatibility with autohide-tabstoolbar.css */
  54. toolbox#navigator-toolbox > toolbar#nav-bar.browser-toolbar{ animation: none; }
  55. #navigator-toolbox:hover #TabsToolbar{ animation: slidein ease-out 48ms 1 }
  56.  
  57. /* 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
  58. See the above repository for updates as well as full license text. */
  59.  
  60. /* Menubar on top patch - use with tabs_on_bottom.css */
  61. /* Only really useful if menubar is ALWAYS visible */
  62.  
  63. :root{ --uc-window-control-width: 0px !important }
  64.  
  65. #navigator-toolbox{ padding-top: calc(29px + var(--uc-titlebar-padding,0px)) !important }
  66.  
  67. #toolbar-menubar{
  68. position: fixed;
  69. display: flex;
  70. top: var(--uc-titlebar-padding,0px);
  71. height: 29px;
  72. width: 100%;
  73. overflow: hidden;
  74. }
  75.  
  76. #toolbar-menubar > .titlebar-buttonbox-container{ height: 29px; order: 100; }
  77.  
  78. #toolbar-menubar > [flex]{ flex-grow: 100; }
  79. #toolbar-menubar > spacer[flex]{
  80. order: 99;
  81. flex-grow: 1;
  82. min-width: var(--uc-window-drag-space-width,20px);
  83. }
  84.  
  85. #toolbar-menubar .titlebar-button{ padding: 2px 17px !important; }
  86.  
  87. #toolbar-menubar .toolbarbutton-1 { --toolbarbutton-inner-padding: 3px }
  88.  
  89. /* TABS: height */*|*:root { --tab-toolbar-navbar-overlap: 0px !important; --tab-min-height: 25px !important; /*adjust to set height or omit to use density*/
  90. --tab-min-width: 80px !important; /*adjust to set width or omit to use default*/
  91.  
  92. #tabbrowser-tabs {
  93. width: 100vw !important;
  94. }
  95. #main-window:not([chromehidden*="toolbar"]) #navigator-toolbox {padding-bottom: var(--tab-min-height) !important;}
  96.  
  97. .tab-background {
  98. border-radius: 8px 8px 0px 0px !important; border-image: none !important;
  99. }
  100. .tab-line {
  101. display: none;
  102. }
  103.  
  104. .tab-close-button {
  105. color: red!important;
  106. }
  107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement