mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	style(next): properly handle disabled check boxes and radio buttons
This commit is contained in:
		| @@ -208,7 +208,7 @@ label > input[type="checkbox"] { | ||||
|     left: 0; | ||||
|     width: var(--box-size); | ||||
|     height: 100%; | ||||
|     opacity: 0; | ||||
|     opacity: 0 !important; | ||||
| } | ||||
|  | ||||
| label:has(input[type="radio"])::before, | ||||
| @@ -237,7 +237,7 @@ label:has(input[type="checkbox"])::before { | ||||
|     background: var(--radio-checkbox-background); | ||||
| } | ||||
|  | ||||
| label:has(input[type="checkbox"]):hover:before { | ||||
| label:has(input[type="checkbox"]:not(:disabled)):hover:before { | ||||
|     background: var(--radio-checkbox-hover-background); | ||||
| } | ||||
|  | ||||
| @@ -280,7 +280,7 @@ label:has(input[type="radio"])::before { | ||||
|     background: var(--radio-checkbox-background); | ||||
| } | ||||
|  | ||||
| label:has(input[type="radio"]:hover)::before { | ||||
| label:has(input[type="radio"]:not(:disabled)):hover::before { | ||||
|     background: var(--radio-checkbox-hover-background); | ||||
| } | ||||
|  | ||||
| @@ -307,3 +307,12 @@ label:has(input[type="radio"]:checked)::after { | ||||
|     transition: opacity 150ms linear; | ||||
|     animation: radio-checked 200ms ease-out; | ||||
| } | ||||
|  | ||||
| /* Disabled check boxes and radio buttons */ | ||||
|  | ||||
| label:has(input[type="radio"]:disabled)::before, | ||||
| label:has(input[type="radio"]:disabled)::after, | ||||
| label:has(input[type="checkbox"]:disabled)::before, | ||||
| label:has(input[type="checkbox"]:disabled)::after { | ||||
|     opacity: .5; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user