mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Add mermaid JS renderer (#12334)
* Add mermaid JS renderer For feature parity with GitLab. Tested in files, issues, wiki, editor. arc-green only does an inversion because the renderer seems to like to render white backgrounds on boxes. Ref: https://github.com/go-gitea/gitea/issues/3340 Fixes: https://github.com/go-gitea/gitea/issues/12307 * add feature entry, switch to neutral theme, remove border * add bindFunctions support * remove unnecessary border-radius Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		| @@ -494,3 +494,11 @@ | ||||
|         user-select: none; | ||||
|     } | ||||
| } | ||||
|  | ||||
| .mermaid-chart { | ||||
|     display: flex; | ||||
|     justify-content: center; | ||||
|     align-items: center; | ||||
|     padding: 1rem; | ||||
|     margin: 1rem 0; | ||||
| } | ||||
|   | ||||
| @@ -1898,3 +1898,7 @@ footer .container .links > * { | ||||
| .repository .repo-header .ui.huge.breadcrumb.repo-title .repo-header-icon .avatar { | ||||
|     color: #2a2e3a; | ||||
| } | ||||
|  | ||||
| .mermaid-chart { | ||||
|     filter: invert(84%) hue-rotate(180deg); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user