mirror of
				https://codeberg.org/claui/mobile-config-firefox.git
				synced 2025-11-03 12:05:55 +00:00 
			
		
		
		
	Use content property to set icon source
This commit is contained in:
		
							parent
							
								
									19c1452193
								
							
						
					
					
						commit
						1a67388c7f
					
				
					 1 changed files with 2 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -5,19 +5,10 @@ See the above repository for updates as well as full license text. */
 | 
			
		|||
 | 
			
		||||
 /* Default tab favicon, the globe kind of thing */
 | 
			
		||||
.tab-icon-image:not([src]){
 | 
			
		||||
  background-image: url("icon.png"); /* filename for icon to load */
 | 
			
		||||
  content: url("icon.png"); /* filename for icon to load */
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* The Firefox brand icon seen on newtab page etc. */
 | 
			
		||||
.tab-icon-image[src="chrome://branding/content/icon32.png"]{
 | 
			
		||||
  background-image: url("icon.png"); /* filename for icon to load */
 | 
			
		||||
  content: url("icon.png"); /* filename for icon to load */
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* This just set size & properties for the icon replacement */
 | 
			
		||||
.tab-icon-image:not([src]),
 | 
			
		||||
.tab-icon-image[src="chrome://branding/content/icon32.png"]{ 
 | 
			
		||||
   background-repeat: no-repeat;
 | 
			
		||||
   background-size: cover; 
 | 
			
		||||
   height: 0; 
 | 
			
		||||
   padding-top: 16px
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue