Commit 907c9a70 authored by Van's avatar Van

article menu

parent 85a476cb
...@@ -1035,40 +1035,25 @@ body { ...@@ -1035,40 +1035,25 @@ body {
.sidebar-panel-active { .sidebar-panel-active {
display: block; display: block;
} }
.post-toc { ul.b3-solo-list {
overflow: hidden;
position: relative;
}
.post-toc-empty {
font-size: 14px;
color: #666;
}
.post-toc ol {
overflow: auto; overflow: auto;
margin: 0; margin: 20px 0;
padding: 0 10px 10px; padding: 0 10px 10px;
text-align: left; text-align: left;
list-style: none; list-style: none;
font-size: 14px; font-size: 14px;
text-align: left;
} }
.post-toc ol a {
.b3-solo-list li {
list-style: none;
}
.b3-solo-list ul a {
color: #999; color: #999;
} }
.post-toc ol a:hover { .b3-solo-list ul a:hover {
color: #ccc; color: #ccc;
} }
.post-toc .nav .nav-child {
display: none;
}
.post-toc .nav .active > .nav-child {
display: block;
}
.post-toc .nav .active-current > .nav-child {
display: block;
}
.post-toc .nav .active-current > .nav-child > .nav-item {
display: block;
}
.post-toc .nav .active > a { .post-toc .nav .active > a {
color: #ccc; color: #ccc;
} }
...@@ -1078,20 +1063,6 @@ body { ...@@ -1078,20 +1063,6 @@ body {
.post-toc .nav .active-current > a:hover { .post-toc .nav .active-current > a:hover {
color: #87daff; color: #87daff;
} }
.post-toc-indicator {
height: 20px;
text-align: center;
color: #fff;
font-size: 14px;
}
.post-toc-indicator-top {
opacity: 0;
margin-top: 10px;
}
.post-toc-indicator-bottom {
position: absolute;
width: 100%;
}
.footer { .footer {
font-size: 14px; font-size: 14px;
color: #999; color: #999;
...@@ -2292,6 +2263,16 @@ ul li { ...@@ -2292,6 +2263,16 @@ ul li {
.site-search input:focus { .site-search input:focus {
opacity: 1; opacity: 1;
} }
.page-post-detail .post-title,
.page-post-detail .post-meta {
text-align: center;
}
.page-post-detail .post-title:before {
display: none;
}
.page-post-detail .post-meta {
margin-bottom: 60px;
}
.pagination { .pagination {
margin: 120px 0 0; margin: 120px 0 0;
text-align: left; text-align: left;
......
...@@ -89,8 +89,8 @@ ul.comments { ...@@ -89,8 +89,8 @@ ul.comments {
left: 69px; left: 69px;
} }
.comments .post-meta { #comments.comments .post-meta {
margin-top: 0; margin: 0;
} }
#captcha, #captcha,
...@@ -99,21 +99,27 @@ ul.comments { ...@@ -99,21 +99,27 @@ ul.comments {
display: inline-block; display: inline-block;
vertical-align: inherit; vertical-align: inherit;
} }
.post-meta {
#commentValidate,
#commentValidateReply {
vertical-align: middle;
}
#comments .post-meta {
font-family: "Open Sans","Microsoft Yahei",Helvetica; font-family: "Open Sans","Microsoft Yahei",Helvetica;
color: #9eabb3; color: #9eabb3;
} }
.post-meta a { #comments .post-meta a {
color: #9EABB3; color: #9EABB3;
text-decoration: none; text-decoration: none;
border-bottom-width: 0; border-bottom-width: 0;
} }
.post-meta a:hover { #comments .post-meta a:hover {
text-decoration: underline; text-decoration: underline;
} }
.post-meta time { #comments .post-meta time {
border-left: 1px solid #d5dbde; border-left: 1px solid #d5dbde;
display: inline-block; display: inline-block;
font-size: 13px; font-size: 13px;
...@@ -123,7 +129,7 @@ ul.comments { ...@@ -123,7 +129,7 @@ ul.comments {
white-space: nowrap; white-space: nowrap;
} }
.post-author { #comments .post-author {
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
position: absolute; position: absolute;
...@@ -140,7 +146,7 @@ ul.comments { ...@@ -140,7 +146,7 @@ ul.comments {
box-shadow: #E7EEF2 0 0 0 1px; box-shadow: #E7EEF2 0 0 0 1px;
} }
.post-author a { #comments .post-author a {
background-size: cover; background-size: cover;
background-position: center center; background-position: center center;
width: 68px; width: 68px;
......
...@@ -24,28 +24,36 @@ ...@@ -24,28 +24,36 @@
* @description next 皮肤脚本 * @description next 皮肤脚本
* @static * @static
*/ */
$('.sidebar-toggle').click(function () { var NexT = {
var $sidebar = $('#sidebar'); init: function () {
if ($(this).hasClass('sidebar-active')) { $('.sidebar-toggle').click(function () {
$(this).removeClass('sidebar-active'); var $sidebar = $('#sidebar');
if ($(this).hasClass('sidebar-active')) {
$('body').animate({ $(this).removeClass('sidebar-active');
'padding-right': 0
});
$sidebar.animate({
width: 0
}, function () {
$sidebar.hide();
});
} else { $('body').animate({
$(this).addClass('sidebar-active'); 'padding-right': 0
$sidebar.show(); });
$('body').animate({ $sidebar.animate({
'padding-right': 320 width: 0
}); }, function () {
$sidebar.animate({ $sidebar.hide();
width: 320 });
} else {
$(this).addClass('sidebar-active');
$sidebar.show();
$('body').animate({
'padding-right': 320
});
$sidebar.animate({
width: 320
});
}
}); });
},
initArticle: function () {
$('.sidebar-inner').html($('.b3-solo-list'));
} }
}); };
\ No newline at end of file NexT.init();
\ No newline at end of file
...@@ -145,6 +145,7 @@ ...@@ -145,6 +145,7 @@
}; };
(function () { (function () {
page.load(); page.load();
NexT.initArticle();
// emotions // emotions
page.replaceCommentsEm("#comments .comment-content"); page.replaceCommentsEm("#comments .comment-content");
<#nested> <#nested>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment