mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-26 19:14:12 +00:00 
			
		
		
		
	Refactor
This commit is contained in:
		
							parent
							
								
									d95b0dee6b
								
							
						
					
					
						commit
						467f68502a
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -43,10 +43,10 @@ export const builtinThemes = [ | ||||||
| ]; | ]; | ||||||
| 
 | 
 | ||||||
| export function applyTheme(theme: Theme, persisted = true) { | export function applyTheme(theme: Theme, persisted = true) { | ||||||
| 	document.documentElement.classList.add('change-theme'); | 	document.documentElement.classList.add('changing-theme'); | ||||||
| 
 | 
 | ||||||
| 	setTimeout(() => { | 	setTimeout(() => { | ||||||
| 		document.documentElement.classList.remove('change-theme'); | 		document.documentElement.classList.remove('changing-theme'); | ||||||
| 	}, 500); | 	}, 500); | ||||||
| 
 | 
 | ||||||
| 	// Deep copy
 | 	// Deep copy
 | ||||||
|  |  | ||||||
|  | @ -20,7 +20,7 @@ html, body | ||||||
| 	text-size-adjust 100% | 	text-size-adjust 100% | ||||||
| 	font-family sans-serif | 	font-family sans-serif | ||||||
| 
 | 
 | ||||||
| html.change-theme | html.changing-theme | ||||||
| 	&, * | 	&, * | ||||||
| 		transition-property all | 		transition-property all | ||||||
| 		transition-duration 0.5s | 		transition-duration 0.5s | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue