Advertisement
Guest User

hide_tabs_toolbar.css

a guest
Feb 6th, 2024
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.00 KB | None | 0 0
  1. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_toolbar.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. /* Hides tabs toolbar */
  5. /* For OSX use hide_tabs_toolbar_osx.css instead */
  6.  
  7. /* Note, if you have either native titlebar or menubar enabled, then you don't really need this style.
  8.  * In those cases you can just use: #TabsToolbar{ visibility: collapse !important }
  9.  */
  10.  
  11. /* IMPORTANT */
  12. /*
  13. Get window_control_placeholder_support.css
  14. Window controls will be all wrong without it
  15. */
  16.  
  17. :root[tabsintitlebar]{ --uc-toolbar-height: 40px; }
  18. :root[tabsintitlebar][uidensity="compact"]{ --uc-toolbar-height: 32px }
  19. #titlebar{
  20.   will-change: unset !important;
  21.   transition: none !important;
  22.   opacity: 1 !important;
  23. }
  24. #TabsToolbar{ visibility: collapse !important }
  25.  
  26. :root[sizemode="fullscreen"] #TabsToolbar > :is(#window-controls,.titlebar-buttonbox-container){
  27.   visibility: visible !important;
  28.   z-index: 2;
  29. }
  30.  
  31. :root:not([inFullscreen]) #nav-bar{
  32.   margin-top: calc(0px - var(--uc-toolbar-height,0px));
  33. }
  34.  
  35. :root[tabsintitlebar] #toolbar-menubar[autohide="true"]{
  36.   min-height: unset !important;
  37.   height: var(--uc-toolbar-height,0px) !important;
  38.   position: relative;
  39. }
  40.  
  41. #toolbar-menubar[autohide="false"]{
  42.   margin-bottom: var(--uc-toolbar-height,0px)
  43. }
  44.  
  45. :root[tabsintitlebar] #toolbar-menubar[autohide="true"] #main-menubar{
  46.   flex-grow: 1;
  47.   align-items: stretch;
  48.   background-color: var(--toolbar-bgcolor,--toolbar-non-lwt-bgcolor);
  49.   background-clip: padding-box;
  50.   border-right: 30px solid transparent;
  51.   border-image: linear-gradient(to left, transparent, var(--toolbar-bgcolor,--toolbar-non-lwt-bgcolor) 30px) 20 / 30px
  52. }
  53.  
  54. #toolbar-menubar:not([inactive]){ z-index: 2 }
  55. #toolbar-menubar[autohide="true"][inactive] > #menubar-items {
  56.   opacity: 0;
  57.   pointer-events: none;
  58.   margin-left: var(--uc-window-drag-space-pre,0px)
  59. }
  60.  
  61. #nav-bar {
  62.     margin-right: 150px;
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement