调整部分样式
diff --git a/themes/bootstrap-blog/layout/_partial/header.ejs b/themes/bootstrap-blog/layout/_partial/header.ejs
index 7d44c5b..32762c2 100644
--- a/themes/bootstrap-blog/layout/_partial/header.ejs
+++ b/themes/bootstrap-blog/layout/_partial/header.ejs
@@ -1,5 +1,9 @@
<div class="blog-header">
+ <% if (!is_post()) {%>
<h1 class="blog-title"><%= config.title %></h1>
+ <% } else {%>
+ <div class="blog_title"> </div>
+ <% } %>
<% if (theme.subtitle){ %>
<p class="lead blog-description"><%= theme.subtitle %></p>
<% } %>
diff --git a/themes/bootstrap-blog/layout/_partial/sidebar.ejs b/themes/bootstrap-blog/layout/_partial/sidebar.ejs
index 2ad43f4..04387e0 100644
--- a/themes/bootstrap-blog/layout/_partial/sidebar.ejs
+++ b/themes/bootstrap-blog/layout/_partial/sidebar.ejs
@@ -1,3 +1,4 @@
+<div> </div>
<% theme.widgets.forEach(function(widget){ %>
<%- partial('_widget/' + widget) %>
<% }) %>
diff --git a/themes/bootstrap-blog/layout/_widget/toc.ejs b/themes/bootstrap-blog/layout/_widget/toc.ejs
index dd91fa9..68d476d 100644
--- a/themes/bootstrap-blog/layout/_widget/toc.ejs
+++ b/themes/bootstrap-blog/layout/_widget/toc.ejs
@@ -1,5 +1,3 @@
<%if (is_post()) { %>
-<div>
<%- toc(page.content, {list_number:false}) %>
-</div>
<% } %>
diff --git a/themes/bootstrap-blog/source/css/custom.css b/themes/bootstrap-blog/source/css/custom.css
index 63a6b2f..9036094 100644
--- a/themes/bootstrap-blog/source/css/custom.css
+++ b/themes/bootstrap-blog/source/css/custom.css
@@ -13,6 +13,7 @@
body {
font-family: Georgia, "Times New Roman", Times, serif;
color: #555;
+ font-size: 16px;
}
h1, .h1,
@@ -30,6 +31,7 @@
p {
margin: 0 0 15px;
+ font-size: 16px;
}
code {
@@ -64,6 +66,11 @@
.navbar {
background-color: #428bca;
+ position: fixed;
+ width: 100%;
+ top: 0;
+ z-index: 0;
+ overflow: hidden;
-webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
}
@@ -115,7 +122,7 @@
/** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
.navbar-inverse .navbar-nav>li>a.active:after {
- position: absolute;
+ /*position: absolute;*/
bottom: 0;
left: 50%;
width: 0;
@@ -137,9 +144,9 @@
padding-bottom: 20px;
}
.blog-title {
- margin-top: 30px;
+ margin-top: 82px;
margin-bottom: 0;
- font-size: 60px;
+ font-size: 48px;
font-weight: normal;
}
.blog-description {
@@ -152,13 +159,14 @@
*/
.blog-main {
- font-size: 18px;
+ font-size: 16px;
line-height: 1.5;
}
.blog-main > article:last-of-type {
margin-bottom: 30px;
}
+
/* Sidebar modules for boxing content */
.sidebar-module {
padding: 15px;
@@ -193,7 +201,9 @@
*/
.article {
+ margin-top: 50px;
margin-bottom: 60px;
+ font-size: 16px;
}
.article-header h1 {
@@ -317,6 +327,7 @@
table {
border-collapse:collapse;
border-radius:3px;
+ font-size: 16px;
}
table th {