mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 02:59:03 +01:00 
			
		
		
		
	style(next): overhaul the check / uncheck animation for radio buttons
This commit is contained in:
		
							parent
							
								
									4c84bc724d
								
							
						
					
					
						commit
						07dd8995b6
					
				| @ -283,15 +283,26 @@ label:has(input[type="radio"]:hover)::before { | ||||
|     background: var(--radio-checkbox-hover-background); | ||||
| } | ||||
| 
 | ||||
| @keyframes radio-checked { | ||||
|     from { | ||||
|         transform: scale(1.5); | ||||
|     } to { | ||||
|         transform: scale(.5); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| /* The inner circle */ | ||||
| label:has(input[type="radio"])::after { | ||||
|     background: transparent; | ||||
|     background: var(--radio-checkbox-indicator-color); | ||||
|     transform: scale(0); | ||||
|     transition: transform 300ms ease-out; | ||||
|     opacity: 0; | ||||
|     transition: opacity 300ms linear, | ||||
|                 transform 300ms ease-in; | ||||
| } | ||||
| 
 | ||||
| label:has(input[type="radio"]:checked)::after { | ||||
|     background: var(--radio-checkbox-indicator-color); | ||||
|     transform: scale(.5); | ||||
|     transition: transform 150ms ease-in; | ||||
|     opacity: 1; | ||||
|     transition: opacity 150ms linear; | ||||
|     animation: radio-checked 200ms ease-out; | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Adorian Doran
						Adorian Doran