mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	style(next): tweak the colors of the radio buttons
This commit is contained in:
		
							parent
							
								
									15dbaf441d
								
							
						
					
					
						commit
						fe539b1647
					
				@ -46,6 +46,10 @@
 | 
				
			|||||||
    --input-action-button-color: #c6c6c6;
 | 
					    --input-action-button-color: #c6c6c6;
 | 
				
			||||||
    --input-action-button-hover: white;
 | 
					    --input-action-button-hover: white;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    --radio-background: #ffffff30;
 | 
				
			||||||
 | 
					    --radio-hover-background: #ffffff61;
 | 
				
			||||||
 | 
					    --radio-indicator-color: white;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    --select-focus-background: #333;
 | 
					    --select-focus-background: #333;
 | 
				
			||||||
    --select-focus-text-color: var(--input-text-color);
 | 
					    --select-focus-text-color: var(--input-text-color);
 | 
				
			||||||
    --select-dropdown-text-color: var(--input-text-color);
 | 
					    --select-dropdown-text-color: var(--input-text-color);
 | 
				
			||||||
 | 
				
			|||||||
@ -46,6 +46,10 @@
 | 
				
			|||||||
    --input-action-button-color: #575757;
 | 
					    --input-action-button-color: #575757;
 | 
				
			||||||
    --input-action-button-hover: black;
 | 
					    --input-action-button-hover: black;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    --radio-background: #0000002e;
 | 
				
			||||||
 | 
					    --radio-hover-background: #0000004f;
 | 
				
			||||||
 | 
					    --radio-indicator-color: black;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    --select-focus-background: white;
 | 
					    --select-focus-background: white;
 | 
				
			||||||
    --select-focus-text-color: var(--input-text-color);
 | 
					    --select-focus-text-color: var(--input-text-color);
 | 
				
			||||||
    --select-dropdown-text-color: var(--input-text-color);
 | 
					    --select-dropdown-text-color: var(--input-text-color);
 | 
				
			||||||
 | 
				
			|||||||
@ -218,15 +218,15 @@ label:has(input[type="radio"])::after {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* The outer circle */
 | 
					/* The outer circle */
 | 
				
			||||||
label:has(input[type="radio"])::before {
 | 
					label:has(input[type="radio"])::before {
 | 
				
			||||||
    background: lightgray;
 | 
					    background: var(--radio-background);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
label:has(input[type="radio"]:hover)::before {
 | 
					label:has(input[type="radio"]:hover)::before {
 | 
				
			||||||
    background: lightgray;
 | 
					    background: var(--radio-hover-background);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
label:has(input[type="radio"]:focus-visible)::before {
 | 
					label:has(input[type="radio"]:focus-visible)::before {
 | 
				
			||||||
    outline: 2px solid blue;
 | 
					    outline: 2px solid var(--input-focus-outline-color);
 | 
				
			||||||
}   
 | 
					}   
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* The inner circle */
 | 
					/* The inner circle */
 | 
				
			||||||
@ -237,7 +237,7 @@ label:has(input[type="radio"])::after {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
label:has(input[type="radio"]:checked)::after {
 | 
					label:has(input[type="radio"]:checked)::after {
 | 
				
			||||||
    background: black;
 | 
					    background: var(--radio-indicator-color);
 | 
				
			||||||
    transform: scale(.5);
 | 
					    transform: scale(.5);
 | 
				
			||||||
    transition: transform 150ms ease-in;
 | 
					    transition: transform 150ms ease-in;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user