mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix various CSS issues (#13769)
- Fix black text being white on base theme - Fix file/blame button group - Fix label margin in dropdown (regression from graph pr) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		@@ -32,15 +32,15 @@
 | 
				
			|||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		{{if not .ReadmeInList}}
 | 
							{{if not .ReadmeInList}}
 | 
				
			||||||
		<div class="file-header-right file-actions df ac">
 | 
							<div class="file-header-right file-actions df ac">
 | 
				
			||||||
			<div class="ui buttons">
 | 
								<div class="ui buttons mr-2">
 | 
				
			||||||
				<a class="ui tiny button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>
 | 
									<a class="ui mini basic button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>
 | 
				
			||||||
				{{if not .IsViewCommit}}
 | 
									{{if not .IsViewCommit}}
 | 
				
			||||||
					<a class="ui tiny button" href="{{.RepoLink}}/src/commit/{{.CommitID}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_permalink"}}</a>
 | 
										<a class="ui mini basic button" href="{{.RepoLink}}/src/commit/{{.CommitID}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_permalink"}}</a>
 | 
				
			||||||
				{{end}}
 | 
									{{end}}
 | 
				
			||||||
				{{if .IsTextFile}}
 | 
									{{if .IsTextFile}}
 | 
				
			||||||
					<a class="ui tiny button" href="{{.RepoLink}}/blame/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.blame"}}</a>
 | 
										<a class="ui mini basic button" href="{{.RepoLink}}/blame/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.blame"}}</a>
 | 
				
			||||||
				{{end}}
 | 
									{{end}}
 | 
				
			||||||
				<a class="ui tiny button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a>
 | 
									<a class="ui mini basic button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
			{{if .Repository.CanEnableEditor}}
 | 
								{{if .Repository.CanEnableEditor}}
 | 
				
			||||||
				{{if .CanEditFile}}
 | 
									{{if .CanEditFile}}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -628,7 +628,7 @@ a.muted:hover,
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    &.black {
 | 
					    &.black {
 | 
				
			||||||
      color: var(--color-body);
 | 
					      color: var(--color-text);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      &:hover {
 | 
					      &:hover {
 | 
				
			||||||
        color: #000000;
 | 
					        color: #000000;
 | 
				
			||||||
@@ -1433,6 +1433,19 @@ a.ui.label:hover {
 | 
				
			|||||||
  color: var(--color-text);
 | 
					  color: var(--color-text);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.ui.button:hover {
 | 
				
			||||||
 | 
					  background: var(--color-hover);
 | 
				
			||||||
 | 
					  color: var(--color-text);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.ui.buttons .button:first-child {
 | 
				
			||||||
 | 
					  border-left: 1px solid var(--color-secondary);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.ui.buttons .button + .button {
 | 
				
			||||||
 | 
					  border-left: none;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.ui.blue.button,
 | 
					.ui.blue.button,
 | 
				
			||||||
.ui.blue.buttons .button,
 | 
					.ui.blue.buttons .button,
 | 
				
			||||||
.ui.primary.button,
 | 
					.ui.primary.button,
 | 
				
			||||||
@@ -1617,10 +1630,6 @@ table th[data-sortt-desc] {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.dropdown .ui.label {
 | 
					 | 
				
			||||||
  margin-left: 0 !important;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.ui.dropdown .menu .item {
 | 
					.ui.dropdown .menu .item {
 | 
				
			||||||
  border-radius: 0;
 | 
					  border-radius: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user