Browse Source

pull request ui review, change sidebar

pull/500/merge
fuxiaohei 10 years ago
parent
commit
b3f0d25ce5
  1. 16
      public/ng/css/gogs.css
  2. 16
      public/ng/less/gogs/repository.less
  3. 2
      templates/repo/sidebar_mini.tmpl

16
public/ng/css/gogs.css

@ -1088,6 +1088,9 @@ The register and sign-in page style
} }
#repo-sidebar-mini li > a { #repo-sidebar-mini li > a {
position: relative; position: relative;
padding-left: 12px;
width: 24px;
text-align: center;
} }
#repo-sidebar-mini li > a > i.octicon { #repo-sidebar-mini li > a > i.octicon {
font-size: 21px; font-size: 21px;
@ -1096,16 +1099,15 @@ The register and sign-in page style
position: absolute; position: absolute;
font-size: 12px; font-size: 12px;
top: 0; top: 0;
left: 40px; left: 36px;
width: 20px; padding: 0 2px;
height: 20px; min-width: 16px;
padding-left: 0; height: 16px;
padding-right: 0;
text-align: center; text-align: center;
line-height: 20px; line-height: 16px;
border-radius: 4px; border-radius: 4px;
opacity: 0.7; opacity: 0.7;
-webkit-transform: scale(0.85); -webkit-transform: scale(0.9);
font-weight: bold; font-weight: bold;
} }
#repo-file-nav { #repo-file-nav {

16
public/ng/less/gogs/repository.less

@ -134,6 +134,9 @@
} }
li > a { li > a {
position: relative; position: relative;
padding-left: 12px;
width: 24px;
text-align: center;
> i.octicon{ > i.octicon{
font-size: 21px; font-size: 21px;
} }
@ -142,16 +145,15 @@
position: absolute; position: absolute;
font-size: 12px; font-size: 12px;
top:0; top:0;
left: 40px; left: 36px;
width: 20px; padding: 0 2px;
height: 20px; min-width: 16px;
padding-left: 0; height: 16px;
padding-right: 0;
text-align: center; text-align: center;
line-height: 20px; line-height: 16px;
border-radius: 4px; border-radius: 4px;
opacity: 0.7; opacity: 0.7;
-webkit-transform: scale(0.85); -webkit-transform: scale(0.9);
font-weight: bold; font-weight: bold;
} }
} }

2
templates/repo/sidebar_mini.tmpl

@ -2,7 +2,7 @@
<li><a href="#" class="btn-right-radius"><i class="octicon octicon-code"></i></a></li> <li><a href="#" class="btn-right-radius"><i class="octicon octicon-code"></i></a></li>
<li class="border-bottom"></li> <li class="border-bottom"></li>
<li><a href="#" class="btn-right-radius"><i class="octicon octicon-issue-opened"></i> <li><a href="#" class="btn-right-radius"><i class="octicon octicon-issue-opened"></i>
<span class="num label label-blue">6</span> <span class="num label label-blue">999</span>
</a></li> </a></li>
<li class="current"><a href="#" class="btn-right-radius"><i class="octicon octicon-git-pull-request"></i> <li class="current"><a href="#" class="btn-right-radius"><i class="octicon octicon-git-pull-request"></i>
<span class="num label label-black">12</span> <span class="num label label-black">12</span>

Loading…
Cancel
Save