]> source.dussan.org Git - gitea.git/commitdiff
template and ui fix
authorfuxiaohei <fuxiaohei@vip.qq.com>
Sat, 27 Sep 2014 09:08:57 +0000 (17:08 +0800)
committerfuxiaohei <fuxiaohei@vip.qq.com>
Sat, 27 Sep 2014 09:08:57 +0000 (17:08 +0800)
public/ng/css/gogs.css
public/ng/less/gogs/dashboard.less
public/ng/less/gogs/repository.less
templates/repo/home.tmpl
templates/repo/sidebar.tmpl
templates/repo/view_file.tmpl

index dbaa3db1c944d0f19f8f9d47ce8dd8b4433ca91b..7116afc0cdd4318fa6a04ec2f8aa9c1a46b5b81a 100644 (file)
@@ -709,6 +709,7 @@ ol.linenums {
 #dashboard-header {
   border-bottom: 1px solid #d6d6d6;
   height: 69px;
+  background-color: #FFF;
 }
 #dashboard-header > .menu-line > li {
   padding: 12px 6px;
@@ -824,6 +825,11 @@ ol.linenums {
 #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;
@@ -1244,7 +1250,8 @@ The register and sign-in page style
   font-weight: normal;
   color: #888;
 }
-#repo-readme {
+#repo-readme,
+#repo-read-file {
   margin-bottom: 80px;
 }
 #repo-bare-start {
index 24c433a31a7d3c2b8ca35c4f57c0a7f2372e58bd..cf1b87cc6fbcc06ae45cffcc7e8e78969a7ce341 100644 (file)
@@ -12,6 +12,7 @@
 #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 {
index 7d6cdd0a5d8f8bcd68c731ca45281441e1a344d0..236271d47c67094d5a82510e1e32bd88064638d1 100644 (file)
     }
   }
 }
-#repo-readme {
+#repo-readme,
+#repo-read-file{
   margin-bottom: 80px;
 }
 #repo-bare-start {
index 32fbf582261a917070d8f37fcd7efecc0d63c48f..a9d7f3040365cd9078ae28ba1508066080ea6194 100644 (file)
@@ -3,7 +3,7 @@
 <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>
index a4fa17b757ed60d73824769c077a49e73dea7a62..d43e36063d824670ef4430d43b14e5a59fab37ca 100644 (file)
@@ -1,4 +1,4 @@
-<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>
index 96efcdac5476a345cc6fea68834895d9f2f28788..228d10cd99d0756e21bdbd196920abce08c39d66 100644 (file)
@@ -1,4 +1,4 @@
-<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>
@@ -12,7 +12,7 @@
         <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}}