mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Unify border-radius behavior (#26770)
				
					
				
			## Changes - no more hardcoded `border-radius`es (apart from `0`) - no more value inconsistencies - no more guessing what pixel value you should use - two new variables: - `--border-radius-medium` (for elements where the normal border radius does not suffice) - `--border-radius-circle` (for displaying circles) --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
		| @@ -83,7 +83,7 @@ text-expander .suggestions { | ||||
|   margin-top: 24px; | ||||
|   list-style: none; | ||||
|   background: var(--color-box-body); | ||||
|   border-radius: 5px; | ||||
|   border-radius: var(--border-radius); | ||||
|   border: 1px solid var(--color-secondary); | ||||
|   box-shadow: 0 .5rem 1rem var(--color-shadow); | ||||
| } | ||||
| @@ -101,15 +101,15 @@ text-expander .suggestions li + li { | ||||
| } | ||||
|  | ||||
| text-expander .suggestions li:first-child { | ||||
|   border-radius: 4px 4px 0 0; | ||||
|   border-radius: var(--border-radius) var(--border-radius) 0 0; | ||||
| } | ||||
|  | ||||
| text-expander .suggestions li:last-child { | ||||
|   border-radius: 0 0 4px 4px; | ||||
|   border-radius: 0 0 var(--border-radius) var(--border-radius); | ||||
| } | ||||
|  | ||||
| text-expander .suggestions li:only-child { | ||||
|   border-radius: 4px; | ||||
|   border-radius: var(--border-radius); | ||||
| } | ||||
|  | ||||
| text-expander .suggestions li:hover { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user