mirror of
				https://codeberg.org/claui/mobile-config-firefox.git
				synced 2025-11-04 12:35:55 +00:00 
			
		
		
		
	sharp_tabs: draw tabs-newtab-button icon as background-image
This is done because we want the button background to fill toolbar height, but we don't actually know how tall the toolbar is and thus working with list-style-image + padding is going to produce stretced icon on some systems.
This commit is contained in:
		
							parent
							
								
									8dc4e1c795
								
							
						
					
					
						commit
						a49066b2f4
					
				
					 1 changed files with 10 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -40,15 +40,19 @@ See the above repository for updates as well as full license text. */
 | 
			
		|||
#TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-icon{ border-radius: 2px !important;  }
 | 
			
		||||
 | 
			
		||||
/* tabs newtab button needs some special styling... */
 | 
			
		||||
#tabs-newtab-button{ padding-inline: 0 !important; }
 | 
			
		||||
#tabs-newtab-button{
 | 
			
		||||
  padding-inline: 0 !important;
 | 
			
		||||
  -moz-box-align: stretch !important;
 | 
			
		||||
}
 | 
			
		||||
/* We draw the icon as background-image to get correct scaling regardless of toolbar height */
 | 
			
		||||
#tabs-newtab-button > .toolbarbutton-icon{
 | 
			
		||||
  border-radius: 0 !important; 
 | 
			
		||||
  width: initial !important; 
 | 
			
		||||
  width: var(--tab-min-height) !important; 
 | 
			
		||||
  height: initial !important;
 | 
			
		||||
  padding: 9px !important;
 | 
			
		||||
}
 | 
			
		||||
:root[uidensity="compact"] #tabs-newtab-button > .toolbarbutton-icon{
 | 
			
		||||
  padding: 7px !important;
 | 
			
		||||
  list-style-image: none;
 | 
			
		||||
  background-image: url(chrome://global/skin/icons/plus.svg);
 | 
			
		||||
  background-position: center;
 | 
			
		||||
  background-repeat: no-repeat;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#scrollbutton-up,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue