Skip to content

Commit 0d35ef5

Browse files
silverwindlunny6543techknowlogick
authored
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 <[email protected]> Co-authored-by: 6543 <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent 47e4d1a commit 0d35ef5

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

templates/repo/view_file.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
</div>
3333
{{if not .ReadmeInList}}
3434
<div class="file-header-right file-actions df ac">
35-
<div class="ui buttons">
36-
<a class="ui tiny button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>
35+
<div class="ui buttons mr-2">
36+
<a class="ui mini basic button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>
3737
{{if not .IsViewCommit}}
38-
<a class="ui tiny button" href="{{.RepoLink}}/src/commit/{{.CommitID}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_permalink"}}</a>
38+
<a class="ui mini basic button" href="{{.RepoLink}}/src/commit/{{.CommitID}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_permalink"}}</a>
3939
{{end}}
4040
{{if .IsTextFile}}
41-
<a class="ui tiny button" href="{{.RepoLink}}/blame/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.blame"}}</a>
41+
<a class="ui mini basic button" href="{{.RepoLink}}/blame/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.blame"}}</a>
4242
{{end}}
43-
<a class="ui tiny button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a>
43+
<a class="ui mini basic button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a>
4444
</div>
4545
{{if .Repository.CanEnableEditor}}
4646
{{if .CanEditFile}}

web_src/less/_base.less

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ a.muted:hover,
628628
}
629629

630630
&.black {
631-
color: var(--color-body);
631+
color: var(--color-text);
632632

633633
&:hover {
634634
color: #000000;
@@ -1433,6 +1433,19 @@ a.ui.label:hover {
14331433
color: var(--color-text);
14341434
}
14351435

1436+
.ui.button:hover {
1437+
background: var(--color-hover);
1438+
color: var(--color-text);
1439+
}
1440+
1441+
.ui.buttons .button:first-child {
1442+
border-left: 1px solid var(--color-secondary);
1443+
}
1444+
1445+
.ui.buttons .button + .button {
1446+
border-left: none;
1447+
}
1448+
14361449
.ui.blue.button,
14371450
.ui.blue.buttons .button,
14381451
.ui.primary.button,
@@ -1617,10 +1630,6 @@ table th[data-sortt-desc] {
16171630
}
16181631
}
16191632

1620-
.dropdown .ui.label {
1621-
margin-left: 0 !important;
1622-
}
1623-
16241633
.ui.dropdown .menu .item {
16251634
border-radius: 0;
16261635
}

0 commit comments

Comments
 (0)