同步皮肤
This commit is contained in:
parent
dd0447d5c3
commit
be610b521e
@ -33,7 +33,9 @@
|
|||||||
| ${viewsLabel} ${article.articleViewCount}°C
|
| ${viewsLabel} ${article.articleViewCount}°C
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
<div class="article-body">
|
||||||
${article.articleAbstract}
|
${article.articleAbstract}
|
||||||
|
</div>
|
||||||
<div class="post-more-link">
|
<div class="post-more-link">
|
||||||
<a href="${servePath}${article.articlePermalink}#more" rel="contents">
|
<a href="${servePath}${article.articlePermalink}#more" rel="contents">
|
||||||
${readLabel} »
|
${readLabel} »
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* skin next style
|
* skin next style
|
||||||
*
|
*
|
||||||
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
|
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
|
||||||
* @version 0.1.1.1, Aug 23, 2016
|
* @version 0.2.2.1, Sep 6, 2016
|
||||||
*/
|
*/
|
||||||
/* start reset */
|
/* start reset */
|
||||||
html {
|
html {
|
||||||
@ -250,8 +250,10 @@ img {
|
|||||||
|
|
||||||
/* start framework */
|
/* start framework */
|
||||||
.wrapper {
|
.wrapper {
|
||||||
width: 700px;
|
max-width: 700px;
|
||||||
|
min-width: 600px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
@ -263,12 +265,11 @@ img {
|
|||||||
.header {
|
.header {
|
||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
margin-bottom: 80px;
|
margin-bottom: 80px;
|
||||||
padding: 40px 45px;
|
padding: 40px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo-wrap {
|
.logo-wrap {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: -20px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
top: 0;
|
top: 0;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@ -386,6 +387,10 @@ img {
|
|||||||
-webkit-transform: translateZ(0);
|
-webkit-transform: translateZ(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-toggle.has-toc .sidebar-toggle-line{
|
||||||
|
background: #87daff;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar-toggle-line {
|
.sidebar-toggle-line {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -570,6 +575,34 @@ img {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 2;
|
line-height: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar section {
|
||||||
|
opacity: 0;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar > ul > li {
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar > ul > li:hover {
|
||||||
|
color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar > ul > li.current {
|
||||||
|
color: #87daff;
|
||||||
|
border-bottom-color: #87daff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar > ul > li:last-child {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* end side */
|
/* end side */
|
||||||
|
|
||||||
/* start list*/
|
/* start list*/
|
||||||
@ -711,6 +744,15 @@ img {
|
|||||||
#externalRelevantArticles ul {
|
#externalRelevantArticles ul {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.article-body {
|
||||||
|
overflow: auto;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-body p {
|
||||||
|
margin: 0 0 25px 0;
|
||||||
|
}
|
||||||
/* end article */
|
/* end article */
|
||||||
|
|
||||||
/* start comments */
|
/* start comments */
|
||||||
@ -936,13 +978,18 @@ ul.comments .comment-meta time {
|
|||||||
/* end archives */
|
/* end archives */
|
||||||
|
|
||||||
/* start responsive */
|
/* start responsive */
|
||||||
|
@media (max-width: 1000px) {
|
||||||
@media (max-width: 700px) {
|
.sidebar-toggle,
|
||||||
.b3-solo-list {
|
.sidebar {
|
||||||
margin: 0;
|
display: none;
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
padding-right: 0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) {
|
||||||
.page-archive .posts-collapse .archive-move-on {
|
.page-archive .posts-collapse .archive-move-on {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
@ -950,9 +997,6 @@ ul.comments .comment-meta time {
|
|||||||
.posts-collapse {
|
.posts-collapse {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 500px) {
|
|
||||||
pre {
|
pre {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
@ -972,7 +1016,6 @@ ul.comments .comment-meta time {
|
|||||||
.logo-line-after,
|
.logo-line-after,
|
||||||
.menu,
|
.menu,
|
||||||
.site-search,
|
.site-search,
|
||||||
.sidebar-toggle,
|
|
||||||
.back-to-top {
|
.back-to-top {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -991,17 +1034,8 @@ ul.comments .comment-meta time {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .wrapper {
|
|
||||||
padding: 0 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-wrap .site-title {
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
width: auto;
|
min-width: inherit;
|
||||||
margin: 0 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-bar {
|
.btn-bar {
|
||||||
@ -1028,6 +1062,12 @@ ul.comments .comment-meta time {
|
|||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .fn-right {
|
||||||
|
float: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* end responsive */
|
/* end responsive */
|
@ -1,5 +1,5 @@
|
|||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="wrapper">
|
<div class="wrapper fn-clear">
|
||||||
<a href="${servePath}">${blogTitle}</a> •
|
<a href="${servePath}">${blogTitle}</a> •
|
||||||
${onlineVisitor1Label}${onlineVisitorCnt} <br/>
|
${onlineVisitor1Label}${onlineVisitorCnt} <br/>
|
||||||
© ${year}
|
© ${year}
|
||||||
@ -39,7 +39,9 @@
|
|||||||
"em11Label": "${em11Label}",
|
"em11Label": "${em11Label}",
|
||||||
"em12Label": "${em12Label}",
|
"em12Label": "${em12Label}",
|
||||||
"em13Label": "${em13Label}",
|
"em13Label": "${em13Label}",
|
||||||
"em14Label": "${em14Label}"
|
"em14Label": "${em14Label}",
|
||||||
|
"tocLabel": "${tocLabel}",
|
||||||
|
"siteViewLabel": "${siteViewLabel}"
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
${plugins}
|
${plugins}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
* @fileoverview util and every page should be used.
|
* @fileoverview util and every page should be used.
|
||||||
*
|
*
|
||||||
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
|
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
|
||||||
* @version 0.1.1.0, Jul 30, 2016
|
* @version 0.2.1.0, Sep 6, 2016
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -37,6 +37,7 @@ var NexT = {
|
|||||||
$sidebar.animate({
|
$sidebar.animate({
|
||||||
right: -320
|
right: -320
|
||||||
});
|
});
|
||||||
|
$sidebar.find('section').css('opacity', 0);
|
||||||
} else {
|
} else {
|
||||||
$(this).addClass('sidebar-active');
|
$(this).addClass('sidebar-active');
|
||||||
$('body').animate({
|
$('body').animate({
|
||||||
@ -44,6 +45,10 @@ var NexT = {
|
|||||||
});
|
});
|
||||||
$sidebar.animate({
|
$sidebar.animate({
|
||||||
right: 0
|
right: 0
|
||||||
|
}, function () {
|
||||||
|
$sidebar.find('section:first').animate({
|
||||||
|
'opacity': 1
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -54,6 +59,7 @@ var NexT = {
|
|||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
// logo animate
|
||||||
$('.logo-wrap').css('opacity', 1);
|
$('.logo-wrap').css('opacity', 1);
|
||||||
$('.logo-line-before i').animate({
|
$('.logo-line-before i').animate({
|
||||||
'left': '0'
|
'left': '0'
|
||||||
@ -66,6 +72,11 @@ var NexT = {
|
|||||||
});
|
});
|
||||||
$('.main').css('opacity', 1).animate({
|
$('.main').css('opacity', 1).animate({
|
||||||
'top': '0'
|
'top': '0'
|
||||||
|
}, function () {
|
||||||
|
// 当有文章页面有目录时,回调不放这里,侧边栏就会一片空白
|
||||||
|
if ($('.b3-solo-list li').length > 0 && $(window).width() > 1000) {
|
||||||
|
$('.sidebar-toggle').click();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -79,9 +90,44 @@ var NexT = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
initArticle: function () {
|
initArticle: function () {
|
||||||
if ($('.b3-solo-list li').length > 0 && $(window).width() > 700) {
|
if ($('.b3-solo-list li').length > 0 && $(window).width() > 1000) {
|
||||||
$('.sidebar').html($('.b3-solo-list'));
|
// add color to sidebar menu
|
||||||
$('.sidebar-toggle').click();
|
$('.sidebar-toggle').addClass('has-toc');
|
||||||
|
|
||||||
|
// append toc to sidebar menu
|
||||||
|
var articleTocHTML = '<ul><li class="current" data-tab="toc">' + Label.tocLabel + '</li><li data-tab="site">' + Label.siteViewLabel + '</li></ul><section></section>';
|
||||||
|
$('.sidebar').prepend(articleTocHTML);
|
||||||
|
var $sectionF = $('.sidebar section:first').html($('.b3-solo-list')),
|
||||||
|
$sectionL = $('.sidebar section:last');
|
||||||
|
|
||||||
|
// 切换 tab
|
||||||
|
$('.sidebar > ul > li').click(function () {
|
||||||
|
if ($(this).data('tab') === 'toc') {
|
||||||
|
$sectionL.animate({
|
||||||
|
"opacity": '0',
|
||||||
|
"top": '-50px'
|
||||||
|
}, 300, function () {
|
||||||
|
$sectionF.show().css('top', '-50px');
|
||||||
|
$sectionF.animate({
|
||||||
|
"opacity": '1',
|
||||||
|
"top": '0'
|
||||||
|
}, 300);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
$sectionF.animate({
|
||||||
|
"opacity": '0',
|
||||||
|
"top": '-50px'
|
||||||
|
}, 300, function () {
|
||||||
|
$sectionF.hide().css('top', '-50px');
|
||||||
|
$sectionL.animate({
|
||||||
|
"opacity": '1',
|
||||||
|
"top": '0'
|
||||||
|
}, 300);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
$('.sidebar > ul > li').removeClass('current');
|
||||||
|
$(this).addClass('current');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -16,16 +16,20 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Description: B3log Solo language configurations(en_US).
|
# Description: B3log Solo language configurations(en_US).
|
||||||
# Version: 1.0.0.2, Jun 30, 2015
|
# Version: 1.1.1.2, Sep 6, 2016
|
||||||
# Author: Liyuan Li
|
# Author: Liyuan Li
|
||||||
|
# Author: Liang Ding
|
||||||
#
|
#
|
||||||
|
|
||||||
|
tocLabel=\u6587\u7ae0\u76ee\u5f55
|
||||||
|
siteViewLabel=\u7ad9\u70b9\u6982\u89c8
|
||||||
viewsLabel=Heat
|
viewsLabel=Heat
|
||||||
cmtLabel\uff1d
|
cmtLabel=Comments
|
||||||
postTimeLabel=Post At
|
postTimeLabel=Post At
|
||||||
readLabel=Read More
|
readLabel=Read More
|
||||||
fightLabel=articles, fighting!
|
fightLabel=articles, fighting!
|
||||||
ohLabel=Oh
|
ohLabel=Oh
|
||||||
|
searchLabel=Search
|
||||||
subscribeLabel=Subscribe
|
subscribeLabel=Subscribe
|
||||||
dynamicLabel=Dynamic
|
dynamicLabel=Dynamic
|
||||||
adminConsoleLabel=Admin
|
adminConsoleLabel=Admin
|
||||||
|
@ -16,10 +16,12 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Description: B3log Solo default language configurations(zh_CN).
|
# Description: B3log Solo default language configurations(zh_CN).
|
||||||
# Version: 1.0.0.1, Jul 30, 2016
|
# Version: 1.1.1.2, Sep 6, 2016
|
||||||
# Author: Liyuan Li
|
# Author: Liyuan Li
|
||||||
#
|
#
|
||||||
|
|
||||||
|
tocLabel=\u6587\u7ae0\u76ee\u5f55
|
||||||
|
siteViewLabel=\u7ad9\u70b9\u6982\u89c8
|
||||||
viewsLabel=\u70ed\u5ea6
|
viewsLabel=\u70ed\u5ea6
|
||||||
cmtLabel=\u6761\u8bc4\u8bba
|
cmtLabel=\u6761\u8bc4\u8bba
|
||||||
postTimeLabel=\u53d1\u8868\u4e8e
|
postTimeLabel=\u53d1\u8868\u4e8e
|
||||||
|
@ -32,7 +32,7 @@ html {
|
|||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
font-family: "Merriweather", "Microsoft Yahei", 'Helvetica';
|
font-family: "Microsoft Yahei", 'Helvetica';
|
||||||
letter-spacing: 0.01rem;
|
letter-spacing: 0.01rem;
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
line-height: 1.75em;
|
line-height: 1.75em;
|
||||||
@ -306,7 +306,7 @@ pre code, pre tt {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
outline: none;
|
outline: none;
|
||||||
font-family: "Merriweather", "Microsoft Yahei", 'Helvetica';
|
font-family: "Microsoft Yahei", 'Helvetica';
|
||||||
}
|
}
|
||||||
|
|
||||||
.form button {
|
.form button {
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
<meta name="revised" content="${blogTitle?html}, ${year}" />
|
<meta name="revised" content="${blogTitle?html}, ${year}" />
|
||||||
<meta name="copyright" content="B3log" />
|
<meta name="copyright" content="B3log" />
|
||||||
<meta http-equiv="Window-target" content="_top" />
|
<meta http-equiv="Window-target" content="_top" />
|
||||||
<link rel="stylesheet" type="text/css" href="//fonts.useso.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400" />
|
|
||||||
<link type="text/css" rel="stylesheet" href="${staticServePath}/skins/${skinDirName}/css/${skinDirName}${miniPostfix}.css?${staticResourceVersion}" charset="utf-8" />
|
<link type="text/css" rel="stylesheet" href="${staticServePath}/skins/${skinDirName}/css/${skinDirName}${miniPostfix}.css?${staticResourceVersion}" charset="utf-8" />
|
||||||
<link href="${servePath}/blog-articles-rss.do" title="RSS" type="application/rss+xml" rel="alternate" />
|
<link href="${servePath}/blog-articles-rss.do" title="RSS" type="application/rss+xml" rel="alternate" />
|
||||||
<link rel="icon" type="image/png" href="${servePath}/favicon.png" />
|
<link rel="icon" type="image/png" href="${servePath}/favicon.png" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user