Hide window control buttons if they are on left side
This commit is contained in:
		
							parent
							
								
									16ad5d86f2
								
							
						
					
					
						commit
						68f4146754
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -1,8 +1,6 @@
 | 
				
			||||||
/* Makes menubar appear as overlay in the top left corner */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#toolbar-menubar{
 | 
					#toolbar-menubar{
 | 
				
			||||||
  position: fixed;
 | 
					  position: fixed;
 | 
				
			||||||
  display: block;
 | 
					  display: flex;
 | 
				
			||||||
  top: 0;
 | 
					  top: 0;
 | 
				
			||||||
  width: 100vw;
 | 
					  width: 100vw;
 | 
				
			||||||
  height: initial !important;
 | 
					  height: initial !important;
 | 
				
			||||||
| 
						 | 
					@ -13,7 +11,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:root[tabsintitlebar][sizemode="maximized"] #toolbar-menubar{ top: 8px; }
 | 
					:root[tabsintitlebar][sizemode="maximized"] #toolbar-menubar{ top: 8px; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#toolbar-menubar > .titlebar-buttonbox-container{ float: right; display: block }
 | 
					#toolbar-menubar > spacer{ flex-grow: 1 }
 | 
				
			||||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container{ display: none }
 | 
					#toolbar-menubar[inactive] > .titlebar-buttonbox-container{ display: none }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#main-menubar{ height: calc(var(--tab-min-height) + 4px); background-color: var(--toolbar-bgcolor); }
 | 
					#main-menubar{ height: calc(var(--tab-min-height) + 4px); background-color: var(--toolbar-bgcolor); }
 | 
				
			||||||
| 
						 | 
					@ -26,3 +24,7 @@
 | 
				
			||||||
  height: calc(var(--tab-min-height) + 4px);
 | 
					  height: calc(var(--tab-min-height) + 4px);
 | 
				
			||||||
  background-image: linear-gradient(to right, var(--toolbar-bgcolor) 30%, transparent);
 | 
					  background-image: linear-gradient(to right, var(--toolbar-bgcolor) 30%, transparent);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
 | 
				
			||||||
 | 
					  #toolbar-menubar[autohide="true"]:not([inactive]) > .titlebar-buttonbox-container{ display: none }  
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue