mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Fix code tag style problem and LFS view bug (#35628)
Fix #35567 --------- Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -101,11 +101,13 @@ samp, | ||||
|   font-size: 0.95em; /* compensate for monospace fonts being usually slightly larger */ | ||||
| } | ||||
|  | ||||
| code { | ||||
| /* there are many <code> blocks in non-markup(.markup code) / non-code-diff(code.code-inner) containers (for example: translation strings, etc), | ||||
| so we need to make <code> have default global styles, ".markup code" has its own styles and doesn't conflict, but `.code-inner` is special. | ||||
| TODO: in the future, we should use `div` instead of `code` for `.code-inner` because it is a container for highlighted code line */ | ||||
| code:not(.code-inner) { | ||||
|   padding: 1px 4px; | ||||
|   border-radius: var(--border-radius); | ||||
|   background-color: var(--color-label-bg); | ||||
|   color: var(--color-label-text); | ||||
| } | ||||
|  | ||||
| b, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user