mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	style(next): create a style for dropdown buttons to mimic combo boxes
This commit is contained in:
		
							parent
							
								
									f7efc033e1
								
							
						
					
					
						commit
						0339d83434
					
				| @ -126,24 +126,41 @@ input::selection, | ||||
|     background: transparent !important; | ||||
| } | ||||
| 
 | ||||
| /* Combo boxes */ | ||||
| /* Combo box-like dropdown buttons */ | ||||
| 
 | ||||
| select, select.form-select { | ||||
| .select-button.dropdown-toggle { | ||||
|     padding-right: 40px; | ||||
| } | ||||
| 
 | ||||
| .select-button.dropdown-toggle::after { | ||||
|     /* Remove the original arrow */ | ||||
|     content: unset; | ||||
| } | ||||
| 
 | ||||
| /* Combo boxes and combo box-like dropdown buttons */ | ||||
| 
 | ||||
| select, | ||||
| select.form-select, | ||||
| .select-button.dropdown-toggle, | ||||
| .select-button.dropdown-toggle.btn { | ||||
|     outline: 3px solid transparent; | ||||
|     outline-offset: 6px; | ||||
|     background: unset; | ||||
|     background: var(--input-background-color) | ||||
|                 var(--select-arrow-svg) right 0.75rem center/15px 20px no-repeat; | ||||
|     color: var(--input-text-color); | ||||
|     border: unset; | ||||
| } | ||||
| 
 | ||||
| select:hover, select.form-select:hover { | ||||
| select:hover, | ||||
| select.form-select:hover, | ||||
| .select-button.dropdown-toggle:hover { | ||||
|     background-color: var(--input-hover-background); | ||||
|     color: var(--input-hover-color); | ||||
| } | ||||
| 
 | ||||
| select:focus, select.form-select:focus { | ||||
| select:focus, | ||||
| select.form-select:focus, | ||||
| .select-button.dropdown-toggle:focus { | ||||
|     box-shadow: unset; | ||||
|     outline: 3px solid var(--input-focus-outline-color); | ||||
|     outline-offset: 0; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Adorian Doran
						Adorian Doran