dashboard ui

tokarchuk/v1.17
FuXiaoHei 11 years ago
parent b5cc4078a9
commit 4f4ec9321f
  1. 48
      public/css/gogs.css
  2. 6
      templates/user/dashboard.tmpl

@ -36,7 +36,7 @@ body {
cursor: pointer; cursor: pointer;
} }
.panel-default .panel-heading{ .panel-default .panel-heading {
background-color: #FAFAFA; background-color: #FAFAFA;
border-bottom: 1px solid #DDD; border-bottom: 1px solid #DDD;
font-weight: bold; font-weight: bold;
@ -137,7 +137,7 @@ body {
margin-top: 50px; margin-top: 50px;
} }
#gogs-body-nav{ #gogs-body-nav {
margin-top: 52px; margin-top: 52px;
margin-bottom: -50px; margin-bottom: -50px;
background-color: #FFF; background-color: #FFF;
@ -145,23 +145,23 @@ body {
height: 66px height: 66px
} }
#gogs-body-nav .nav{ #gogs-body-nav .nav {
font-size: 14px; font-size: 14px;
margin-top: 12px; margin-top: 12px;
} }
#gogs-body-nav .nav-pills li a{ #gogs-body-nav .nav-pills li a {
color: #444; color: #444;
} }
#gogs-body-nav .nav-pills li.active a{ #gogs-body-nav .nav-pills li.active a {
font-weight: bold; font-weight: bold;
border-bottom: 2px solid #d26911; border-bottom: 2px solid #d26911;
background-color: transparent; background-color: transparent;
color: #444; color: #444;
} }
#gogs-body-nav .nav-pills li:hover a{ #gogs-body-nav .nav-pills li:hover a {
background-color: transparent; background-color: transparent;
text-decoration: underline; text-decoration: underline;
} }
@ -336,12 +336,44 @@ body {
#gogs-ssh-form textarea { #gogs-ssh-form textarea {
height: 16em; height: 16em;
} }
/* #gogs-feed */ /* #gogs-feed */
#gogs-feed-left{ #gogs-feed-left {
padding-left: 0; padding-left: 0;
} }
#gogs-feed-right .repo-panel .panel-heading .btn{ #gogs-feed-right .repo-panel .panel-heading .btn {
margin-top: -4px; margin-top: -4px;
}
#gogs-feed-right .repo-panel .panel-body {
padding: 0;
}
#gogs-feed-right .repo-panel .list-group {
margin-bottom: 0;
}
#gogs-feed-right .repo-panel .list-group-item a {
display: inline-block;
margin-left: 0;
background-color: transparent;
padding-left: 0;
font-weight: bold;
}
#gogs-feed-right .repo-panel .list-group-item .fa {
color: #666;
}
#gogs-feed-right .repo-panel .list-group-item {
font-size: 14px;
line-height: 32px;
border-bottom: 1px solid #DDD;
padding-left: 15px;
}
#gogs-feed-right .repo-panel .list-group-item:hover {
background-color: rgba(65, 131, 196, 0.1);
} }

@ -21,10 +21,8 @@
<a class="btn btn-success pull-right btn-sm" href="/repo/create/"><i class="fa fa-plus-square"></i>New Repo</a> <a class="btn btn-success pull-right btn-sm" href="/repo/create/"><i class="fa fa-plus-square"></i>New Repo</a>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<ul> <ul class="list-group">{{range .MyRepos}}
{{range .MyRepos}} <li class="list-group-item"><i class="fa fa-book"></i><a href="/{{$.SignedUserName}}/{{.Name}}/">{{.Name}}</a></li>{{end}}
<li><a href="#">{{.Name}}</a></li>
{{end}}
</ul> </ul>
</div> </div>
</div> </div>

Loading…
Cancel
Save