Browse Source

adjust icon css

pull/1609/head
Unknwon 9 years ago
parent
commit
af324a6165
  1. 2
      public/css/gogs.min.css
  2. 3
      public/less/_base.less
  3. 14
      public/less/_dashboard.less
  4. 6
      templates/user/dashboard/navbar.tmpl

2
public/css/gogs.min.css vendored

File diff suppressed because one or more lines are too long

3
public/less/_base.less

@ -84,9 +84,6 @@ pre {
} }
} }
} }
i.icon {
margin-right: 0!important;
}
.ui { .ui {
&.left { &.left {
float: left; float: left;

14
public/less/_dashboard.less

@ -14,9 +14,14 @@
.filter.menu { .filter.menu {
.item { .item {
text-align: left; text-align: left;
.text {
height: 16px;
vertical-align: middle;
}
.floating.label { .floating.label {
top: 7px; top: 7px;
left: 95%; left: 90%;
width: 15%;
} }
} }
.item.active { .item.active {
@ -24,7 +29,7 @@
color: #FFF; color: #FFF;
} }
.item .text { .item .text {
width: 90%; width: 85%;
} }
} }
.ui.right .head.menu { .ui.right .head.menu {
@ -33,5 +38,10 @@
color: #d9453d; color: #d9453d;
} }
} }
.head.menu {
.octicon {
margin-right: 5px;
}
}
} }
} }

6
templates/user/dashboard/navbar.tmpl

@ -31,13 +31,13 @@
<div class="ui right"> <div class="ui right">
<div class="ui secondary head menu"> <div class="ui secondary head menu">
<a class="{{if .PageIsNews}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/dashboard"> <a class="{{if .PageIsNews}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/dashboard">
<i class="icon octicon octicon-rss"></i>&nbsp;{{.i18n.Tr "news_feed"}} <i class="octicon octicon-rss"></i>&nbsp;{{.i18n.Tr "news_feed"}}
</a> </a>
<a class="{{if .PageIsIssues}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/issues"> <a class="{{if .PageIsIssues}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/issues">
<i class="icon octicon octicon-issue-opened"></i>&nbsp;{{.i18n.Tr "issues"}} <i class="octicon octicon-issue-opened"></i>&nbsp;{{.i18n.Tr "issues"}}
</a> </a>
<a class="{{if .PageIsPulls}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/pulls"> <a class="{{if .PageIsPulls}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/pulls">
<i class="icon octicon octicon-git-pull-request"></i>&nbsp;{{.i18n.Tr "pull_requests"}} <i class="octicon octicon-git-pull-request"></i>&nbsp;{{.i18n.Tr "pull_requests"}}
</a> </a>
<div class="right menu"> <div class="right menu">
<div class="item"> <div class="item">

Loading…
Cancel
Save