Help toggling top tab bar on firefox.

A while ago someone helped me to eliminate the top tab bar so i could just have my Tree Style Tab on the side. It works great but i was wondering if there was any way to make that a toggle? Cause sometimes I move my computer to a smaller monitor and the horizontal space that it takes can be inconvinient.

Here’s the snippet for removing it in the first place:

/* hides the native tabs */ #TabsToolbar { visibility: collapse; }/* leaves space for the window buttons */ #nav-bar { margin-top: -30px; margin-right: 0px; margin-bottom: -4px; }

Also, since i have you here, i couldn´t manage to create a floating o just an existing “three buttons” (like the minimize maximize and close buttons). So if you know about any one of those it´d be really helpful.

Thanks in advance !

#firefox

  • @Falmarri
    link
    English
    21 year ago

    I suggest switching to sidebery. Use the 5.x version from github, but if you do that they have a recipe.

    https://github.com/mbnuqw/sidebery/wiki/Firefox-Styles-Snippets-(via-userChrome.css)

    IMO the default styles look kinda ugly. I made one that looks very similar to treestyletabs

    #root.root {--tabs-activated-shadow: 0px 1px 4px -1px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,0.133);}
    #root.root {--tabs-activated-bg: #d3ebffff;}
    #root.root {--tabs-inner-gap: 6px;}
    #root.root {--tabs-indent: 8px;}
    #root.root {--tabs-font: .9rem sans-serif;}
    #root.root {--tabs-height: 25px;}
    #root.root {--popup-bg: rgb(244, 245, 246);}
    #root.root {--general-margin: 0px;}
    #root.root {--frame-bg: #9a9996ff;}
    
    #root.root {--status-active: #146fd9;}
    
    #root.root {--tabs-border-radius: 4px 0 0 4px;}
    
    
    /* OLD CSS VARS
    
    */
    
    .Tab .body{
      border-style: solid;
      border-width: 0px 0px 1px;
      border-color: rgba(154, 153, 150,0.55);
    	background-color: #FCFCFC;
    }
    
    .Tab[data-discarded="true"] > .body > .fav,
    .Tab[data-discarded="true"] > .body > .t-box, 
    .Tab[data-discarded="true"] > .body > .ctx {
      opacity: 1.00;
    	--frame-fg: red;
    }
    
    .TabsPanel .bottom-space {
    	height: 0;
    }
    
    .TabsPanel .bottom-bar {
    	display: none;
    }
    
    .Tab .progress-spinner {
    	right: 1px;
    	bottom: 1px;
    }
    
    .Tab[data-loading="true"] .fav-icon {
      mask: radial-gradient(circle at calc(100% - 8px) calc(100% - 8px),rgba(0,0,0,.141),rgba(0,0,0,.141) 8px,#000 8px,#000);
    }
    
    • spacegorillaOP
      link
      fedilink
      1
      edit-2
      1 year ago

      @Falmarri hey thanks man! if you dont mind I can´t manage to make the animation for the tabbar work. It seems to be something with the unicode values for the titlepreface* values but i dont really get along with css and/or unicode values so it´s not really going anywhere. Currently i have it set on U+200B wich seems to be the ‘empty’ value o smth but with that value the top bar just barely moves up when i activate Sidebery…

      edit: typo