Skip to content

Commit 1ed7f18

Browse files
silverwindappleboy
authored andcommitted
Rework button styles on repo and commit page (#3104)
1 parent 54907df commit 1ed7f18

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

public/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/less/_base.less

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,13 @@ pre, code {
152152
box-shadow: none;
153153
}
154154

155-
/* overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
156-
.menu:not(.vertical) .item .button {
157-
padding-bottom: .78571429em;
158-
padding-top: .78571429em;
159-
font-size: 1em;
155+
/* Overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
156+
/* This fixes the commit graph button on the commits page */
157+
.menu:not(.vertical) .item > .button.compact {
158+
padding: .58928571em 1.125em;
159+
}
160+
.menu:not(.vertical) .item > .button.small {
161+
font-size: .92857143rem;
160162
}
161163

162164
.text {

templates/repo/commits.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="ui secondary menu">
77
{{template "repo/branch_dropdown" .}}
88
<div class="fitted item">
9-
<a href="{{.RepoLink}}/graph" class="ui basic small button">
9+
<a href="{{.RepoLink}}/graph" class="ui basic small compact button">
1010
<span class="text">
1111
<i class="octicon octicon-git-branch"></i>
1212
</span>

0 commit comments

Comments
 (0)