wojtekadams

CSS FF 89

Jun 3rd, 2021 (edited)
710
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.35 KB | None | 0 0
  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:not([sizemode="fullscreen"]){ --uc-window-control-width: 0px !important }
  68.  
  69. #navigator-toolbox{ padding-top: calc(29px + var(--uc-titlebar-padding,0px)) !important }
  70. :root[sizemode="fullscreen"] #navigator-toolbox{ padding-top: 0px !important; }
  71. #toolbar-menubar{
  72.   position: fixed;
  73.   display: flex;
  74.   top: var(--uc-titlebar-padding,0px);
  75.   height: 29px;
  76.   width: 100%;
  77.   overflow: hidden;
  78. }
  79.  
  80. #toolbar-menubar > .titlebar-buttonbox-container{ height: 29px; order: 100; }
  81.  
  82. #toolbar-menubar > [flex]{ flex-grow: 100; }
  83. #toolbar-menubar > spacer[flex]{
  84.   order: 99;
  85.   flex-grow: 1;
  86.   min-width: var(--uc-window-drag-space-width,20px);
  87. }
  88.  
  89. #toolbar-menubar .titlebar-button{ padding: 2px 17px !important;  }
  90.  
  91. #toolbar-menubar .toolbarbutton-1 { --toolbarbutton-inner-padding: 3px }
Comments
Add Comment
Please, Sign In to add comment