update tmpl

release/v1.15
slene 2014-03-15 20:40:26 +08:00
parent a33d03f008
commit 0791d01513
5 changed files with 42 additions and 4 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ gogs
*.log *.log
custom/ custom/
.vendor/ .vendor/
repo/

View File

@ -8,6 +8,10 @@ body {
background: #F6F6F6; background: #F6F6F6;
} }
html, body {
height: 100%;
}
/* override bs3 */ /* override bs3 */
.tooltip-inner { .tooltip-inner {
@ -47,6 +51,7 @@ body {
background-color: #428bca; background-color: #428bca;
box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .1); box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .1);
padding: 0 16px; padding: 0 16px;
margin: 0;
} }
/* gogits nav item link */ /* gogits nav item link */
@ -143,10 +148,9 @@ body {
} }
#gogs-body-nav { #gogs-body-nav {
margin-top: 52px;
margin-bottom: -50px; margin-bottom: -50px;
background-color: #FFF; background-color: #FFF;
border-bottom: 1px solid #BBB; border-bottom: 1px solid #DDD;
height: 66px height: 66px
} }
@ -445,7 +449,7 @@ body {
#gogs-repo-toolbar { #gogs-repo-toolbar {
margin-top: 51px; margin-top: 51px;
margin-bottom: -50px; margin-bottom: -50px;
border-bottom: 1px solid #BBB; border-bottom: 1px solid #DDD;
background-color: #FFF; background-color: #FFF;
height: 40px; height: 40px;
font-size: 14px; font-size: 14px;
@ -551,3 +555,25 @@ body {
border-top: none; border-top: none;
} }
#wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -100px;
padding: 0 0 100px;
}
#footer {
background: #fff;
-webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);;
height: 100px;
}
#footer .footer-wrap {
padding: 20px 0;
}
#footer a {
color: #000;
}

View File

@ -5,5 +5,15 @@
initUserSetting();{{end}} initUserSetting();{{end}}
}); });
</script> </script>
<div class="wrapper-push"></div>
</div>
<footer id="footer">
<div class="container footer-wrap">
<p>
© 2014 Gogs. ver {{AppVer}}. <a target="_blank" href="https://github.com/gogits/gogs">GitHub</a>
</p>
<p class="desc"></p>
</div>
</footer>
</body> </body>
</html> </html>

View File

@ -19,4 +19,5 @@
<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title> <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
</head> </head>
<body> <body>
<div id="wrapper">
<noscript>Please enable JavaScript in your browser!</noscript> <noscript>Please enable JavaScript in your browser!</noscript>

View File

@ -1,4 +1,4 @@
<div class="gogs-masthead navbar navbar-fixed-top" id="masthead"> <div class="gogs-masthead navbar" id="masthead">
<div class="container"> <div class="container">
<nav class="gogs-nav"> <nav class="gogs-nav">
<a id="gogs-nav-logo" class="gogs-nav-item{{if .PageIsHome}} active{{end}}" href="/"><img src="/img/favicon.png" alt="Gogs Logo" id="gogs-logo"></a> <a id="gogs-nav-logo" class="gogs-nav-item{{if .PageIsHome}} active{{end}}" href="/"><img src="/img/favicon.png" alt="Gogs Logo" id="gogs-logo"></a>