#dashboard-header {
border-bottom: 1px solid #d6d6d6;
height: 69px;
+ background-color: #FFF;
}
#dashboard-header > .menu-line > li {
padding: 12px 6px;
#dashboard-my-repo .repo-contrib-header {
border-top: 1px solid #d6d6d6;
}
+#dashboard-my-mirror .panel-header,
+#dashboard-my-org .panel-header,
+#dashboard-my-repo .panel-header {
+ font-size: 14px;
+}
#dashboard-my-repo .panel-header .octicon {
margin-right: 6px;
font-size: 12px;
font-weight: normal;
color: #888;
}
-#repo-readme {
+#repo-readme,
+#repo-read-file {
margin-bottom: 80px;
}
#repo-bare-start {
#dashboard-header {
border-bottom: 1px solid @dashboardHeaderBorderColor;
height: 69px;
+ background-color: #FFF;
> .menu-line {
> li {
padding: 12px 6px;
.repo-contrib-header {
border-top: 1px solid #d6d6d6;
}
+ .panel-header{
+ font-size: 14px;
+ }
}
#dashboard-my-repo {
.panel-header {
}
}
}
-#repo-readme {
+#repo-readme,
+#repo-read-file{
margin-bottom: 80px;
}
#repo-bare-start {
<div id="repo-wrapper">
{{template "repo/header" .}}
<div id="repo-content" class="clear container">
- <div id="repo-main" class="left grid-4-5">
+ <div id="repo-main" class="left grid-5-6">
<p id="repo-desc">
<span class="description">{{.Repository.DescriptionHtml}}</span>
<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
-<div id="repo-sidebar" class="right grid-1-5">
+<div id="repo-sidebar" class="right grid-1-6">
<ul class="menu menu-vertical" id="repo-sidebar-nav">
<li>
<a class="radius" href="{{.RepoLink}}/issues"><i class="octicon octicon-issue-opened"></i>{{.i18n.Tr "repo.issues"}}<span class="num right label label-blue label-radius">{{.Repository.NumOpenIssues}}</span></a>
-<div class="panel panel-radius" id="repo-readme">
+<div class="panel panel-radius" id="{{if .ReadmeExist}}repo-readme{{else}}repo-read-file{{end}}">
<p class="panel-header">
{{if .ReadmeExist}}
<i class="icon fa fa-book fa-lg"></i>
<strong class="file-name">{{.FileName}}</strong><span class="file-size">{{FileSize .FileSize}}</span>
{{end}}
</p>
- <div class="{{if .ReadmeExist}}panel-content markdown{{end}} code-view">
+ <div class="{{if .ReadmeExist}}panel-content markdown{{end}} code-view" id="repo-code-view">
{{if .ReadmeExist}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsFileText}}