Rework button styles on repo and commit page (#3104)

release/v1.15
silverwind 2017-12-07 02:26:12 +01:00 committed by Bo-Yi Wu
parent 54907dfbd1
commit 1ed7f18815
3 changed files with 9 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -152,11 +152,13 @@ pre, code {
box-shadow: none; box-shadow: none;
} }
/* overide semantic selector '.ui.menu:not(.vertical) .item > .button' */ /* Overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
.menu:not(.vertical) .item .button { /* This fixes the commit graph button on the commits page */
padding-bottom: .78571429em; .menu:not(.vertical) .item > .button.compact {
padding-top: .78571429em; padding: .58928571em 1.125em;
font-size: 1em; }
.menu:not(.vertical) .item > .button.small {
font-size: .92857143rem;
} }
.text { .text {

View File

@ -6,7 +6,7 @@
<div class="ui secondary menu"> <div class="ui secondary menu">
{{template "repo/branch_dropdown" .}} {{template "repo/branch_dropdown" .}}
<div class="fitted item"> <div class="fitted item">
<a href="{{.RepoLink}}/graph" class="ui basic small button"> <a href="{{.RepoLink}}/graph" class="ui basic small compact button">
<span class="text"> <span class="text">
<i class="octicon octicon-git-branch"></i> <i class="octicon octicon-git-branch"></i>
</span> </span>