登录页细化

This commit is contained in:
Liang Ding 2014-10-10 22:12:56 +08:00
parent 3b7413a680
commit 0d74c6487b
2 changed files with 15 additions and 4 deletions

View File

@ -8,7 +8,7 @@
}
.header {
margin: 20px 0;
margin: 8px 0;
}
.header li {
@ -21,6 +21,7 @@
padding: 4px 8px;
color: #333;
line-height: 30px;
text-decoration: none;
}
.header a:hover {
@ -36,6 +37,7 @@
.content h2 {
color: #FFF;
font-size: 70px;
margin: 0 0 60px;
}
.content h3 {
@ -45,7 +47,7 @@
.content .form {
width: 320px;
margin-top: 76px;
margin-top: 28px;
position: relative;
}
@ -83,4 +85,13 @@
color: #777;
font-size: 12px;
text-align: center;
}
.footer a {
text-decoration: none;
color: #4183c4;
}
.footer a:hover {
text-decoration: underline;
}

View File

@ -9,7 +9,7 @@
<body>
<div class="header">
<div class="wrapper fn-clear">
<h1 class="fn-left">Wide</h1>
<h1 class="fn-left"><a href="/login">Wide</a></h1>
<ul class="fn-right">
<li><a href="https://github.com/b3log/wide" target="_blank">GitHub</a></li>
<li><a href="https://www.gitbook.io/book/88250/wide-user-guide" target="_blank">{{.i18n.help}}</a></li>
@ -39,7 +39,7 @@
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
(function () {
var contentH = $(window).height() - $(".footer").height() - $(".header").height() - 42;
var contentH = $(window).height() - $(".footer").height() - $(".header").height() - 18;
$(".content").height(contentH)
.css("padding-top", (contentH - $(".content .fn-left").height()) / 2 + "px");