Hide the tab bar only if there is only one tab present
This commit is contained in:
		
							parent
							
								
									4a74ae6019
								
							
						
					
					
						commit
						6e0a2ae0f2
					
				
					 1 changed files with 21 additions and 1 deletions
				
			
		|  | @ -1 +1,21 @@ | |||
| #tabbrowser-tabs { visibility: collapse !important; } | ||||
| #tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox { | ||||
| 	min-height: 0 !important; | ||||
| } | ||||
| 
 | ||||
| /* Thanks to @Speravir for making it work again in the latest versions. */ | ||||
| #tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"] { | ||||
| 	visibility: collapse; | ||||
| } | ||||
| 
 | ||||
| #navigator-toolbox[first-visible-tab="true"][last-visible-tab="true"] { | ||||
| 	visibility: collapse; } | ||||
| 
 | ||||
| /* I don't use tabs so I just hide the new tab button. You should be able to use a similar trick as the rule above with | ||||
| css siblings selectors if you want to keep it when the tab bar is visible. */ | ||||
| #tabbrowser-tabs .tabs-newtab-button {  | ||||
| 	visibility: collapse !important; | ||||
| } | ||||
| 
 | ||||
| #tabbrowser-tabs tab { | ||||
| 	min-height: var(--tab-min-height) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue