mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Reorganize Chroma styles (#13934)
This moves the Chroma styles into separate files with base,light and dark variants. Should work exactly as before.
This commit is contained in:
		
							
								
								
									
										50
									
								
								web_src/less/chroma/base.less
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								web_src/less/chroma/base.less
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,50 @@ | ||||
| .chroma { | ||||
|   background-color: var(--color-code-bg); | ||||
| } | ||||
|  | ||||
| /* LineTableTD */ | ||||
| .chroma .lntd { | ||||
|   vertical-align: top; | ||||
|   padding: 0; | ||||
|   margin: 0; | ||||
|   border: 0; | ||||
| } | ||||
|  | ||||
| /* LineTable */ | ||||
| .chroma .lntable { | ||||
|   border-spacing: 0; | ||||
|   padding: 0; | ||||
|   margin: 0; | ||||
|   border: 0; | ||||
|   width: auto; | ||||
|   overflow: auto; | ||||
|   display: block; | ||||
| } | ||||
|  | ||||
| /* LineHighlight */ | ||||
| .chroma .hl { | ||||
|   display: block; | ||||
|   width: 100%; | ||||
| } | ||||
|  | ||||
| /* LineNumbersTable */ | ||||
| .chroma .lnt { | ||||
|   margin-right: .4em; | ||||
|   padding: 0 .4em; | ||||
| } | ||||
|  | ||||
| /* LineNumbers */ | ||||
| .chroma .ln { | ||||
|   margin-right: .4em; | ||||
|   padding: 0 .4em; | ||||
| } | ||||
|  | ||||
| /* GenericStrong */ | ||||
| .chroma .gs { | ||||
|   font-weight: 600; | ||||
| } | ||||
|  | ||||
| /* GenericUnderline */ | ||||
| .chroma .gl { | ||||
|   text-decoration: underline; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user