34 Commits

Author SHA1 Message Date
Liang Ding
571c8f37e4 发布 v3.2.0 2019-03-05 08:34:21 +08:00
Van
0d85dfbfd1 fix https://github.com/b3log/solo/issues/12695 2019-03-04 17:25:36 +08:00
Van
a08a2f385b fix https://github.com/b3log/solo/issues/12689 2019-03-04 15:09:53 +08:00
Liang Ding
38f6da79d5 多语言 2019-03-04 11:36:02 +08:00
Liang Ding
3991aa6921 🎨 移除邮件相关功能 https://github.com/b3log/solo/issues/12690 2019-03-03 22:39:37 +08:00
Van
e4e32efbc5 💄 code style 2019-03-02 13:47:32 +08:00
Liang Ding
19bd1af82d Merge branch 'master' of https://github.com/b3log/solo-skins 2019-03-01 22:40:51 +08:00
Liang Ding
54c590391a 📝 更新 README 2019-03-01 22:40:48 +08:00
Van
1728d5c729 Merge branch 'master' of https://github.com/b3log/solo-skins 2019-03-01 17:32:06 +08:00
Van
f91ee8bfa8 fix https://github.com/b3log/solo/issues/12687 2019-03-01 17:31:55 +08:00
Liang Ding
9f23c6aa97 📝 更新 README 2019-03-01 17:27:03 +08:00
Van
646d541ea6 fix https://github.com/b3log/solo/issues/12686 2019-03-01 16:52:21 +08:00
Van
6e6507a0fb Merge branch 'master' of https://github.com/b3log/solo-skins 2019-03-01 16:49:39 +08:00
Van
ccf5e0f5bd Andrea https://github.com/b3log/solo/issues/12686 2019-03-01 16:49:37 +08:00
Van
5059125e3b metro-hot https://github.com/b3log/solo/issues/12686 2019-03-01 16:38:17 +08:00
Van
f2ff53a992 Community https://github.com/b3log/solo/issues/12686 2019-03-01 16:36:13 +08:00
Liang Ding
2f11317a5c Merge remote-tracking branch 'origin/master' 2019-03-01 16:25:52 +08:00
Liang Ding
246b8f6c04 📝 更新 README 2019-03-01 16:22:32 +08:00
Van
ce871510a4 Medium https://github.com/b3log/solo/issues/12686 2019-03-01 16:16:27 +08:00
Van
c7fd894208 tree-house https://github.com/b3log/solo/issues/12686 2019-03-01 16:12:48 +08:00
Van
8cfb727723 classic https://github.com/b3log/solo/issues/12686 2019-03-01 16:08:52 +08:00
Van
b91e25561e yilia https://github.com/b3log/solo/issues/12686 2019-03-01 15:57:28 +08:00
Van
a6b4d4a097 i-nove https://github.com/b3log/solo/issues/12686 2019-03-01 15:47:32 +08:00
Van
e84f72ea94 9IPHP https://github.com/b3log/solo/issues/12686 2019-03-01 15:41:17 +08:00
Van
71666d764f favourite https://github.com/b3log/solo/issues/12686 2019-03-01 15:30:14 +08:00
Van
e9919264dc favourite https://github.com/b3log/solo/issues/12686 2019-03-01 15:28:03 +08:00
Van
42d5306618 mobile https://github.com/b3log/solo/issues/12686 2019-03-01 13:20:06 +08:00
Van
b1a6c42c0d owmx-3.0 https://github.com/b3log/solo/issues/12686 2019-03-01 13:19:43 +08:00
Van
df3df935dd ease article https://github.com/b3log/solo/issues/12686 2019-03-01 11:24:45 +08:00
Van
2d05eb06f2 next header https://github.com/b3log/solo/issues/12686 2019-03-01 11:13:49 +08:00
Van
dd80fbf987 fix https://github.com/b3log/solo/issues/12684 2019-03-01 11:00:25 +08:00
Van
83d0ca8332 📦 2019-02-28 17:26:13 +08:00
Van
fe48ef2cf5 Merge branch 'master' of https://github.com/b3log/solo-skins 2019-02-28 16:51:25 +08:00
Van
6ce4586997 🐛 fix https://github.com/b3log/solo/issues/12679 2019-02-28 16:47:15 +08:00
122 changed files with 1196 additions and 1736 deletions

View File

@@ -158,7 +158,7 @@
<#if 0 != relevantArticlesDisplayCount>
page.loadRelevantArticles('${article.oId}', '<h4>${relevantArticlesLabel}</h4>');
</#if>
Skin.initArticle()
Skin.initArticle('${tocLabel}', '${siteViewLabel}')
</@comment_script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@@ -47,5 +47,6 @@
Util.initSW();
Util.parseMarkdown();
Util.killIE(10)
Util.previewImg()
</script>
${plugins}

View File

@@ -28,10 +28,6 @@
*/
var Skin = {
_initCommon: function ($goTop) {
$('body').on('click', '.content-reset img', function () {
window.open(this.src);
});
var $banner = $('header .banner'),
$navbar = $('header .navbar');

View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var Skin={_initCommon:function(i){$("body").on("click",".content-reset img",function(){window.open(this.src)});var t=$("header .banner"),n=$("header .navbar");$(window).scroll(function(){if(125<$(window).scrollTop()?i.show():i.hide(),$(window).width()<701)return!1;$(window).scrollTop()>t.height()?(n.addClass("pin"),$(".main-wrap").parent().css("margin-top","86px")):(n.removeClass("pin"),$(".main-wrap").parent().css("margin-top","0"))})},init:function(){this._initCommon($(".icon-up")),$(".navbar nav a").each(function(){this.href===location.href&&(this.className="current")}),$(".responsive .list a").each(function(){this.href===location.href&&$(this).parent().addClass("current")}),$(".responsive .icon-list").click(function(){$(".responsive .list").slideToggle()})},_initArticleCommon:function(i,t){if(0<$(".b3-solo-list li").length&&1e3<$(window).width()){$("aside").addClass("has-toc");var n='<ul class="fn-clear"><li class="current" data-tab="toc">'+i+'</li><li data-tab="site">'+t+"</li></ul><section></section>";$("aside").prepend(n);var o=$("aside section:first").html($(".b3-solo-list")),s=$("aside section:last");o.height($(window).height()-154).css({overflow:"auto",width:$("aside").width()+"px"}),s.hide(),$("aside > ul > li").click(function(){"toc"===$(this).data("tab")?s.animate({opacity:"0",top:"-50px"},300,function(){o.show().css("top","-50px"),o.animate({opacity:"1",top:"0"},300).show()}):o.animate({opacity:"0",top:"-50px"},300,function(){o.hide().css("top","-50px"),s.animate({opacity:"1",top:"0"},300).show()}).hide(),$("aside > ul > li").removeClass("current"),$(this).addClass("current")}),$(window).scroll(function(){125<$(window).scrollTop()?$("aside section:eq(0)").css({position:"fixed",top:"51px",backgroundColor:"#fff"}):$("aside section:eq(0)").css({position:"inherit",borderLeft:0})})}},initArticle:function(i,t){this._initArticleCommon(i,t)}};Skin.init();
var Skin={_initCommon:function(i){var t=$("header .banner"),n=$("header .navbar");$(window).scroll(function(){if(125<$(window).scrollTop()?i.show():i.hide(),$(window).width()<701)return!1;$(window).scrollTop()>t.height()?(n.addClass("pin"),$(".main-wrap").parent().css("margin-top","86px")):(n.removeClass("pin"),$(".main-wrap").parent().css("margin-top","0"))})},init:function(){this._initCommon($(".icon-up")),$(".navbar nav a").each(function(){this.href===location.href&&(this.className="current")}),$(".responsive .list a").each(function(){this.href===location.href&&$(this).parent().addClass("current")}),$(".responsive .icon-list").click(function(){$(".responsive .list").slideToggle()})},_initArticleCommon:function(i,t){if(0<$(".b3-solo-list li").length&&1e3<$(window).width()){$("aside").addClass("has-toc");var n='<ul class="fn-clear"><li class="current" data-tab="toc">'+i+'</li><li data-tab="site">'+t+"</li></ul><section></section>";$("aside").prepend(n);var o=$("aside section:first").html($(".b3-solo-list")),s=$("aside section:last");o.height($(window).height()-154).css({overflow:"auto",width:$("aside").width()+"px"}),s.hide(),$("aside > ul > li").click(function(){"toc"===$(this).data("tab")?s.animate({opacity:"0",top:"-50px"},300,function(){o.show().css("top","-50px"),o.animate({opacity:"1",top:"0"},300).show()}):o.animate({opacity:"0",top:"-50px"},300,function(){o.hide().css("top","-50px"),s.animate({opacity:"1",top:"0"},300).show()}).hide(),$("aside > ul > li").removeClass("current"),$(this).addClass("current")}),$(window).scroll(function(){125<$(window).scrollTop()?$("aside section:eq(0)").css({position:"fixed",top:"51px",backgroundColor:"#fff"}):$("aside section:eq(0)").css({position:"inherit",borderLeft:0})})}},initArticle:function(i,t){this._initArticleCommon(i,t)}};Skin.init();

File diff suppressed because one or more lines are too long

View File

@@ -114,7 +114,7 @@
</a>
</div>
<div class="clear"></div>
<div>
<div class="marginTop12">
<#if nextArticlePermalink??>
<a href="${servePath}${nextArticlePermalink}">${nextArticle1Label}${nextArticleTitle}</a>
<br>

File diff suppressed because one or more lines are too long

View File

@@ -19,7 +19,7 @@
* skin andrea style
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 2.0.0.0, Feb 21, 2019
* @version 2.1.0.0, Mar 1, 2019
*/
@import "../../../scss/reset-content";
@import "vditor/src/assets/scss/classic";
@@ -43,6 +43,23 @@
.none {
display: none;
}
.marginLeft12 {
margin-left: 12px;
}
.marginTop12 {
margin-top: 12px;
}
.margin5 {
margin: 5px;
}
.b3-solo-list {
display: none;
}
body, dd, div, dl, h1, h2, h3, h4, h5, h6, html, img, li, ol, p, ul {
padding: 0;
margin: 0;

View File

@@ -32,7 +32,6 @@ commentEmotions1Label=Emotions:
commentEmotionsLabel=Emotions
commentName1Label=Name:
commentNameLabel=Name
commentEmail1Label=Email:
commentURL1Label=URL:
commentURLLabel=URL
commentContent1Label=Content:

View File

@@ -33,7 +33,6 @@ commentEmotions1Label=\u8868\u60C5\uFF1A
commentEmotionsLabel=\u8868\u60C5
commentName1Label=\u59D3\u540D\uFF1A
commentNameLabel=\u59D3\u540D
commentEmail1Label=\u90AE\u7BB1\uFF1A
commentURL1Label=URL\uFF1A
commentURLLabel=URL
commentContent1Label=\u8BC4\u8BBA\u5185\u5BB9\uFF1A

View File

@@ -140,6 +140,7 @@
<h4>${archiveLabel}</h4>
<ul>
<#list archiveDates as archiveDate>
<#if archiveDate_index < 10>
<li>
<#if "en" == localeString?substring(0, 2)>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
@@ -151,6 +152,7 @@
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel} (${archiveDate.archiveDatePublishedArticleCount})</a>
</#if>
</li>
</#if>
</#list>
</ul>
</dd>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -32,7 +32,6 @@ commentEmotions1Label=Emotions:
commentEmotionsLabel=Emotions
commentName1Label=Name:
commentNameLabel=Name
commentEmail1Label=Email:
commentURL1Label=URL:
commentURLLabel=URL
commentContent1Label=Content:

View File

@@ -33,7 +33,6 @@ commentEmotions1Label=\u8868\u60C5\uFF1A
commentEmotionsLabel=\u8868\u60C5
commentName1Label=\u59D3\u540D\uFF1A
commentNameLabel=\u59D3\u540D
commentEmail1Label=\u90AE\u7BB1\uFF1A
commentURL1Label=URL\uFF1A
commentURLLabel=URL
commentContent1Label=\u8BC4\u8BBA\u5185\u5BB9\uFF1A

View File

@@ -33,7 +33,7 @@
<#if 0 != mostViewCountArticles?size>
<h4>${mostViewCountArticlesLabel}</h4>
<div class="arrow-right"></div>
<div class="most-view-count-articles">
<div class="most-view-count-articles article-footer">
<ul>
<#list mostViewCountArticles as article>
<li>
@@ -44,6 +44,23 @@
</#list>
</ul>
</div>
<#if 0 != mostCommentArticles?size>
<div class="clear"></div>
<div class="hr"></div>
<h4>${mostCommentArticlesLabel}</h4>
<div class="arrow-right"></div>
<div class="most-view-count-articles article-footer">
<ul>
<#list mostCommentArticles as article>
<li>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<sup>[${article.articleCommentCount}]</sup>${article.articleTitle}
</a>
</li>
</#list>
</ul>
</div>
</#if>
<div class="clear"></div>
<#if 0 != recentComments?size>
<div class="hr"></div>
@@ -72,22 +89,6 @@
</div>
<div class="footer-widgets">
<div class="content">
<#if 0 != mostCommentArticles?size>
<div class="left footer-block">
<h4>${mostCommentArticlesLabel}</h4>
<ul>
<#list mostCommentArticles as article>
<li>
<sup>[${article.articleCommentCount}]</sup>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>
</li>
</#list>
</ul>
</div>
</#if>
<#if 0 != mostUsedCategories?size>
<div class="left footer-block">
<h4><span class="left">${categoryLabel}</span></h4>

File diff suppressed because one or more lines are too long

View File

@@ -21,7 +21,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.1.0.0, Feb 27, 2019
* @version 2.2.0.0, Mar 4, 2019
*/
@import "../../../scss/reset-content";
@import "vditor/src/assets/scss/classic";
@@ -732,9 +732,7 @@ pre code, pre tt {
}
body.nav-closed .nav {
-webkit-transform: translate3D(97px, 0, 0);
-ms-transform: translate3D(97px, 0, 0);
transform: translate3D(97px, 0, 0);
transform: translate3D(240px, 0, 0);
}
body.nav-opened .nav {
@@ -897,7 +895,7 @@ article.post:after {
-webkit-animation: upbounce 4s 2s infinite;
animation: upbounce 4s 2s infinite;
text-decoration: none;
z-index: 10;
z-index: 12;
}
.icon-gotop:hover {
@@ -1336,6 +1334,14 @@ ul.comments {
right: 0;
}
.nav-opened .site-wrapper {
margin-right: 0;
}
.nav {
z-index: 11;
}
.nav-closed .menu-button:hover {
color: #FFF;
background-color: transparent;

View File

@@ -45,5 +45,6 @@
Util.initSW();
Util.parseMarkdown();
Util.killIE(8)
Util.previewImg()
</script>
${plugins}

View File

@@ -74,7 +74,9 @@ var Finding = {
}
$('.nav ul:first').after($('.b3-solo-list'));
$("body").toggleClass("nav-opened nav-closed");
if ($(window).width() > 500) {
$("body").toggleClass("nav-opened nav-closed");
}
$('.nav .icon-list').show();
Finding.tabNav('toc')

View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var Finding={init:function(){Util.killIE(),this._initToc(),this.share(),$(".scroll-down").click(function(t){t.preventDefault();var n=$(this),o=$("html, body"),i=!!n.attr("data-offset")&&n.attr("data-offset"),a=parseInt(i);o.stop(!0,!1).animate({scrollTop:$(this.hash).offset().top+a},500)}),$("body").append('<a class="icon-gotop fn-none" href="javascript:Util.goTop()"></a><span class="menu-button icon-menu"><span class="word">Menu</span></span>'),$(".menu-button").click(function(t){t.stopPropagation(),$("body").toggleClass("nav-opened nav-closed")}),$(window).scroll(function(){$(window).scrollTop()>$(".main-header").height()?$(".icon-gotop").show():$(".icon-gotop").hide()})},_initToc:function(){if(0===$(".b3-solo-list li").length)return $(".nav .icon-list").hide(),void $(".nav .icon-sitemap").click();$(".nav ul:first").after($(".b3-solo-list")),$("body").toggleClass("nav-opened nav-closed"),$(".nav .icon-list").show(),Finding.tabNav("toc");var s=$(".content-reset [id^=b3_solo_h]"),l=$(".b3-solo-list");$(window).scroll(function(t){if(0===$(".b3-solo-list li").length)return!1;var n=[];s.each(function(t){n.push({id:this.id,offsetTop:this.offsetTop})});for(var o=$(window).scrollTop(),i=0,a=n.length;i<a;i++)if(o<n[i].offsetTop+280){l.find("li").removeClass("current");var e=0<i?i-1:0;l.find('a[href="#'+n[e].id+'"]').parent().addClass("current");break}o>=n[n.length-1].offsetTop+280&&(l.find("li").removeClass("current"),l.find("li:last").addClass("current"))}),$(window).scroll()},tabNav:function(t){$(".nav .current").removeClass("current"),"toc"===t?($(".nav ul:first, .nav .count").hide(),$(".nav ul:last").show(),$(".icon-list").addClass("current")):($(".nav ul:first, .nav .count").show(),$(".nav ul:last").hide(),$(".icon-sitemap").addClass("current"))},share:function(){var t=$(".share"),n=t.find(".icon-wechat"),o=n.data("url"),i=n.data("avatar"),a=encodeURIComponent(n.data("title")+" - "+n.data("blogtitle")),e=encodeURIComponent(o),s={};s.weibo="http://v.t.sina.com.cn/share/share.php?title="+a+"&url="+e+"&pic="+i,s.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+e+"&sharesource=qzone&title="+a+"&pics="+i,s.twitter="https://twitter.com/intent/tweet?status="+a+" "+e,t.find("span").click(function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===n.find("canvas").length?$.ajax({method:"GET",url:latkeConfig.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){n.qrcode({width:128,height:128,text:o})}}):n.find("canvas").slideToggle(),!1):void window.open(s[t],"_blank","top=100,left=200,width=648,height=618")})}};Finding.init();
var Finding={init:function(){Util.killIE(),this._initToc(),this.share(),$(".scroll-down").click(function(t){t.preventDefault();var n=$(this),o=$("html, body"),i=!!n.attr("data-offset")&&n.attr("data-offset"),a=parseInt(i);o.stop(!0,!1).animate({scrollTop:$(this.hash).offset().top+a},500)}),$("body").append('<a class="icon-gotop fn-none" href="javascript:Util.goTop()"></a><span class="menu-button icon-menu"><span class="word">Menu</span></span>'),$(".menu-button").click(function(t){t.stopPropagation(),$("body").toggleClass("nav-opened nav-closed")}),$(window).scroll(function(){$(window).scrollTop()>$(".main-header").height()?$(".icon-gotop").show():$(".icon-gotop").hide()})},_initToc:function(){if(0===$(".b3-solo-list li").length)return $(".nav .icon-list").hide(),void $(".nav .icon-sitemap").click();$(".nav ul:first").after($(".b3-solo-list")),500<$(window).width()&&$("body").toggleClass("nav-opened nav-closed"),$(".nav .icon-list").show(),Finding.tabNav("toc");var s=$(".content-reset [id^=b3_solo_h]"),l=$(".b3-solo-list");$(window).scroll(function(t){if(0===$(".b3-solo-list li").length)return!1;var n=[];s.each(function(t){n.push({id:this.id,offsetTop:this.offsetTop})});for(var o=$(window).scrollTop(),i=0,a=n.length;i<a;i++)if(o<n[i].offsetTop+280){l.find("li").removeClass("current");var e=0<i?i-1:0;l.find('a[href="#'+n[e].id+'"]').parent().addClass("current");break}o>=n[n.length-1].offsetTop+280&&(l.find("li").removeClass("current"),l.find("li:last").addClass("current"))}),$(window).scroll()},tabNav:function(t){$(".nav .current").removeClass("current"),"toc"===t?($(".nav ul:first, .nav .count").hide(),$(".nav ul:last").show(),$(".icon-list").addClass("current")):($(".nav ul:first, .nav .count").show(),$(".nav ul:last").hide(),$(".icon-sitemap").addClass("current"))},share:function(){var t=$(".share"),n=t.find(".icon-wechat"),o=n.data("url"),i=n.data("avatar"),a=encodeURIComponent(n.data("title")+" - "+n.data("blogtitle")),e=encodeURIComponent(o),s={};s.weibo="http://v.t.sina.com.cn/share/share.php?title="+a+"&url="+e+"&pic="+i,s.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+e+"&sharesource=qzone&title="+a+"&pics="+i,s.twitter="https://twitter.com/intent/tweet?status="+a+" "+e,t.find("span").click(function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===n.find("canvas").length?$.ajax({method:"GET",url:latkeConfig.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){n.qrcode({width:128,height:128,text:o})}}):n.find("canvas").slideToggle(),!1):void window.open(s[t],"_blank","top=100,left=200,width=648,height=618")})}};Finding.init();

View File

@@ -32,7 +32,6 @@ commentEmotions1Label=Emotions:
commentEmotionsLabel=Emotions
commentName1Label=Name:
commentNameLabel=Name
commentEmail1Label=Email:
commentURL1Label=URL:
commentURLLabel=URL
commentContent1Label=Content:

View File

@@ -34,7 +34,6 @@ commentEmotions1Label=\u8868\u60C5\uFF1A
commentEmotionsLabel=\u8868\u60C5
commentName1Label=\u59D3\u540D\uFF1A
commentNameLabel=\u59D3\u540D
commentEmail1Label=\u90AE\u7BB1\uFF1A
commentURL1Label=URL\uFF1A
commentURLLabel=URL
commentContent1Label=\u8BC4\u8BBA\u5185\u5BB9\uFF1A

File diff suppressed because one or more lines are too long

View File

@@ -28,7 +28,9 @@
Powered by <a href="https://b3log.org" target="_blank">B3log</a> 开源
<div class="fn__none"></div>
&nbsp; &heartsuit; &nbsp;
Theme <a rel="friend" href="https://github.com/b3log/solo-skins" target="_blank">Jane</a> by <a href="http://vanessa.b3log.org" target="_blank">Vanessa</a>
Theme <a rel="friend" href="https://github.com/b3log/solo-skins" target="_blank">Jane</a>
<sup>[<a href="https://github.com/hejianxian/hexo-theme-jane" target="_blank">ref</a>]</sup>
by <a href="http://vanessa.b3log.org" target="_blank">Vanessa</a>
</div>
</footer>
<div class="icon-up" onclick="Util.goTop()"></div>
@@ -52,5 +54,6 @@
Util.initSW();
Util.parseMarkdown();
Util.killIE(8)
Util.previewImg()
</script>
${plugins}

View File

@@ -64,10 +64,6 @@ var Skin = {
$('.header a').removeClass('current')
this.className = 'current tooltipped tooltipped__w'
})
$('body').on('click', '.content-reset img', function () {
window.open(this.src)
})
},
}
Skin.init()

19
Jane/js/common.min.js vendored
View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var Skin={initToc:function(){0<$(".b3-solo-list li").length&&768<$(window).width()?($(".b3-solo-list").css({right:"50px","border-right":"1px solid #fff",opacity:1}),$("#pjax.wrapper").css({"max-width":"968px","padding-right":"270px"})):$("#pjax.wrapper").removeAttr("style")},init:function(){Skin.initToc(),Util.initPjax(function(){$(".header a").each(function(){this.href===location.href?this.className="current tooltipped tooltipped__w":this.className="tooltipped tooltipped__w"}),Skin.initToc()}),$(".header a").each(function(){this.href===location.href&&(this.className="current tooltipped tooltipped__w")}).click(function(){$(".header a").removeClass("current"),this.className="current tooltipped tooltipped__w"}),$("body").on("click",".content-reset img",function(){window.open(this.src)})}};Skin.init();
var Skin={initToc:function(){0<$(".b3-solo-list li").length&&768<$(window).width()?($(".b3-solo-list").css({right:"50px","border-right":"1px solid #fff",opacity:1}),$("#pjax.wrapper").css({"max-width":"968px","padding-right":"270px"})):$("#pjax.wrapper").removeAttr("style")},init:function(){Skin.initToc(),Util.initPjax(function(){$(".header a").each(function(){this.href===location.href?this.className="current tooltipped tooltipped__w":this.className="tooltipped tooltipped__w"}),Skin.initToc()}),$(".header a").each(function(){this.href===location.href&&(this.className="current tooltipped tooltipped__w")}).click(function(){$(".header a").removeClass("current"),this.className="current tooltipped tooltipped__w"})}};Skin.init();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -19,7 +19,7 @@
* skin style
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 2.0.0.0, Feb 21, 2019
* @version 2.0.0.1, Mar 1, 2019
*/
@import "../../../scss/reset-content";
@import "../../../scss/reset";
@@ -823,10 +823,10 @@
.article__next {
border-left: 1px solid rgba(0, 0, 0, 0.38);
line-height: 14px;
line-height: 15px;
margin-top: 7px;
color: rgba(0, 0, 0, 0.84);
font-size: 18px;
font-size: 14px;
display: inline-block;
padding-left: 20px;
margin-left: 20px;

View File

@@ -60,5 +60,6 @@
Util.initSW();
Util.killIE(8)
Util.parseMarkdown();
Util.previewImg()
</script>
${plugins}

View File

@@ -28,10 +28,6 @@
*/
var Skin = {
init: function () {
$('body').on('click', '.content-reset img', function () {
window.open(this.src);
});
$(window).scroll(function () {
if ($('#headerNav').length === 0) {
return

View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var Skin={init:function(){$("body").on("click",".content-reset img",function(){window.open(this.src)}),$(window).scroll(function(){0!==$("#headerNav").length&&(64<$(window).scrollTop()?($("#headerNav").addClass("header__nav--fixed"),$(".main").css("margin-top","100px")):($("#headerNav").removeClass("header__nav--fixed"),$(".main").css("margin-top","50px")))}),$(window).scroll(),Util.initPjax(function(){Util.parseMarkdown(),Util.isArticlePage(location.href)&&($("#articleSideShare .article__code").qrcode||$.ajax({method:"GET",url:latkeConfig.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0}))})},initTags:function(){for(var t=$("#tags"),e=t.find(".tag"),i=parseInt(e.first().data("count")),a=Math.ceil(i/5),o=0;o<e.length;o++)for(var n=parseInt($(e[o]).data("count")),s=0;s<5;s++)if(s*a<n&&n<=(s+1)*a){e[o].className="tag tag__level"+s;break}t.html(e.get().sort(function(t,e){var i=$(t).text().toLowerCase(),a=$(e).text().toLowerCase();return i.localeCompare(a)}))},initArticle:function(){if(0!==$("#articleShare").length){Skin._share("#articleShare"),Skin._share("#articleSideShare"),Skin._share("#articleBottomShare");var i=$(".post__side");$(window).height()>=$(".post").height()&&i.css("opacity",1),i.css("left",($(".post").offset().left-20)/2-27+"px");var a=($(window).height()-249)/2+125,o=$(window).scrollTop();$(window).scroll(function(){if(0!==$("#articleShare").length){var t=$(window).scrollTop(),e=$(".article__bottom").offset().top;65<t?(i.css("opacity",1),0<o-t?($(".header").addClass("header--fixed").css({top:"0"}),$(".main").css("padding-top","64px"),$(window).height()<=$(".post").height()&&t<e-$(window).height()&&$(".article__toolbar").css({bottom:0,opacity:1})):o-t<0&&($(".header").css({top:"-64px"}).removeClass("header--fixed"),$(".main").css("padding-top","0"),$(".article__toolbar").css({bottom:"-44px",opacity:0}))):($(window).height()<=$(".post").height()&&i.css("opacity",0),$(".header").removeClass("header--fixed").css("top","-64px"),$(".main").css("padding-top","0")),t>e-$(window).height()?e<$(window).height()?i.css({position:"absolute",top:e-125+"px"}):i.css({position:"absolute",top:e-a+"px"}):i.css({position:"fixed",top:"50%"}),o=t}}),$(window).scroll()}},_share:function(t){var e=$(t),i=e.find(".article__code"),a=i.data("url"),o=i.data("avatar"),n=encodeURIComponent(i.data("title")+" - "+i.data("blogtitle")),s=encodeURIComponent(a),r={};r.tencent="http://share.v.t.qq.com/index.php?c=share&a=index&title="+n+"&url="+s+"&pic="+o,r.weibo="http://v.t.sina.com.cn/share/share.php?title="+n+"&url="+s+"&pic="+o,r.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+s+"&sharesource=qzone&title="+n+"&pics="+o,r.twitter="https://twitter.com/intent/tweet?status="+n+" "+s,e.find("span").click(function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===i.find("canvas").length?i.qrcode({width:128,height:128,text:a}):i.slideToggle(),!1):void window.open(r[t],"_blank","top=100,left=200,width=648,height=618")})}};Skin.init();
var Skin={init:function(){$(window).scroll(function(){0!==$("#headerNav").length&&(64<$(window).scrollTop()?($("#headerNav").addClass("header__nav--fixed"),$(".main").css("margin-top","100px")):($("#headerNav").removeClass("header__nav--fixed"),$(".main").css("margin-top","50px")))}),$(window).scroll(),Util.initPjax(function(){Util.parseMarkdown(),Util.isArticlePage(location.href)&&($("#articleSideShare .article__code").qrcode||$.ajax({method:"GET",url:latkeConfig.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0}))})},initTags:function(){for(var t=$("#tags"),e=t.find(".tag"),i=parseInt(e.first().data("count")),a=Math.ceil(i/5),o=0;o<e.length;o++)for(var s=parseInt($(e[o]).data("count")),n=0;n<5;n++)if(n*a<s&&s<=(n+1)*a){e[o].className="tag tag__level"+n;break}t.html(e.get().sort(function(t,e){var i=$(t).text().toLowerCase(),a=$(e).text().toLowerCase();return i.localeCompare(a)}))},initArticle:function(){if(0!==$("#articleShare").length){Skin._share("#articleShare"),Skin._share("#articleSideShare"),Skin._share("#articleBottomShare");var i=$(".post__side");$(window).height()>=$(".post").height()&&i.css("opacity",1),i.css("left",($(".post").offset().left-20)/2-27+"px");var a=($(window).height()-249)/2+125,o=$(window).scrollTop();$(window).scroll(function(){if(0!==$("#articleShare").length){var t=$(window).scrollTop(),e=$(".article__bottom").offset().top;65<t?(i.css("opacity",1),0<o-t?($(".header").addClass("header--fixed").css({top:"0"}),$(".main").css("padding-top","64px"),$(window).height()<=$(".post").height()&&t<e-$(window).height()&&$(".article__toolbar").css({bottom:0,opacity:1})):o-t<0&&($(".header").css({top:"-64px"}).removeClass("header--fixed"),$(".main").css("padding-top","0"),$(".article__toolbar").css({bottom:"-44px",opacity:0}))):($(window).height()<=$(".post").height()&&i.css("opacity",0),$(".header").removeClass("header--fixed").css("top","-64px"),$(".main").css("padding-top","0")),t>e-$(window).height()?e<$(window).height()?i.css({position:"absolute",top:e-125+"px"}):i.css({position:"absolute",top:e-a+"px"}):i.css({position:"fixed",top:"50%"}),o=t}}),$(window).scroll()}},_share:function(t){var e=$(t),i=e.find(".article__code"),a=i.data("url"),o=i.data("avatar"),s=encodeURIComponent(i.data("title")+" - "+i.data("blogtitle")),n=encodeURIComponent(a),r={};r.tencent="http://share.v.t.qq.com/index.php?c=share&a=index&title="+s+"&url="+n+"&pic="+o,r.weibo="http://v.t.sina.com.cn/share/share.php?title="+s+"&url="+n+"&pic="+o,r.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+n+"&sharesource=qzone&title="+s+"&pics="+o,r.twitter="https://twitter.com/intent/tweet?status="+s+" "+n,e.find("span").click(function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===i.find("canvas").length?i.qrcode({width:128,height:128,text:a}):i.slideToggle(),!1):void window.open(r[t],"_blank","top=100,left=200,width=648,height=618")})}};Skin.init();

File diff suppressed because one or more lines are too long

View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var goTop=function(e){e=e||.1;var a=$(window).scrollTop(),t=1+e;if(window.scrollTo(0,Math.floor(a/t)),0<a){var n="goTop("+e+")";window.setTimeout(n,16)}},collapseArchive=function(e,a){var t=!0;"collapse-ico"===e.className?(e.className="expand-ico",t=!1):e.className="collapse-ico",$("#archiveSide li").each(function(){$(this).data("year")===a&&(t?$(this).show():$(this).hide())})},getArticle=function(t,e){var n=$("#abstract"+e),i=$("#content"+e);return""===i.html()?$.ajax({url:"/get-article-content?id="+e,type:"GET",dataType:"html",beforeSend:function(){n.css("background","url(/skins/neoease/images/ajax-loader.gif) no-repeat scroll center center transparent")},success:function(e,a){t.className="collapse-ico",i.html(e),n.hide().css("background","none"),i.fadeIn("slow")}}):"expand-ico"===t.className?(n.hide(),i.fadeIn(),t.className="collapse-ico"):(i.hide(),n.fadeIn(),t.className="expand-ico"),!1},goTranslate=function(){window.open("http://translate.google.com/translate?sl=auto&tl=auto&u="+location.href)};!function(){$(window).scroll(function(){var e=$(window).scrollTop();if(182<e){var a=$(window).height(),t=e+a-21;$("body").height()-58<=e+a&&(t=$(".footer").offset().top-21),$("#goTop").fadeIn("slow").css("top",t)}else $("#goTop").hide()});var t=(new Date).getFullYear(),n=t;$("#archiveSide li").each(function(e){var a=$(this);a.data("year")!==t&&$(this).hide(),n!==a.data("year")&&(n=a.data("year"),a.before("<li class='archive-year'><div onclick='collapseArchive(this, "+n+")' class='expand-ico'>"+n+"&nbsp;年</div></li>"))}),$(".recent-comments .expand-ico").click(function(){"expand-ico"===this.className?($(this).parent().next().css({height:"auto","white-space":"normal"}),this.className="collapse-ico"):($(this).parent().next().animate({height:"18px"},function(){$(this).css("white-space","nowrap")}),this.className="expand-ico")}),$(".nav ul li").each(function(){$(this).find("a").attr("href")===latkeConfig.servePath+location.pathname?$(this).addClass("current"):/\/[0-9]+$/.test(location.pathname)&&($(".nav ul li")[0].className="current")}),Util.init(),Util.replaceSideEm($(".recent-comments-content")),Util.buildTags("tagsSide"),$(".recent-comments .recent-comments-main").each(function(){$(this).find(".recent-comments-content>a").height()<30?$(this).find(".expand-ico").remove():$(this).find(".expand-ico").parent().next().css({"white-space":"nowrap"})})}();

View File

@@ -30,10 +30,7 @@ replyLabel=Reply
commentNameLabel=Name
commentURLLabel=URL
nameTooLongLabel=Sorry, your username must be between 2 and 20 characters long!
mailCannotEmptyLabel=Mail is empty!
mailInvalidLabel=Mail is invalid!
commentContentCannotEmptyLabel=Sorry, your content must be between 2 and 500 characters long!
captchaCannotEmptyLabel=Captcha is empty!
loadingLabel=loading....
externalRelevantArticlesLabel=External Relevant Articles:
b3logLabel=<span style="color: orange;">B</span><span style="color: blue;"><sup>3</sup></span><span style="color: green;">L</span><span style="color: red;">O</span><span style="color: blue;">G</span>

View File

@@ -30,7 +30,7 @@
</head>
<body class="body--gray">
<#include "header.ftl">
<main id="pjax">
<main id="pjax" class="fn__flex-1">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<div class="wrapper wrapper--min">
<div class="page__title">

View File

@@ -28,7 +28,7 @@
</head>
<body class="body--gray">
<#include "header.ftl">
<main id="pjax">
<main id="pjax" class="fn__flex-1">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<div class="wrapper wrapper--min">
<div class="page__title">

View File

@@ -23,27 +23,27 @@
<div class="item__container">
<div class="item__cover" style="background-image: url(${article.articleImg1URL})"></div>
<div rel="bookmark" class="item__abstract">
<div>
<a pjax-title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
${article.articleAbstractText}
</div>
</a>
</div>
<div class="item__slant"></div>
<div class="item__slant item__slant--white"></div>
<div class="item__main">
<h2 class="item__title">
<a rel="bookmark" href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>
<#if article.articlePutTop>
<sup>
<sup class="ft__red">
${topArticleLabel}
</sup>
</#if>
<#if article.hasUpdated>
<sup>
<sup class="ft__red">
${updatedLabel}
</sup>
</#if>
<h2 class="item__title">
<a rel="bookmark" href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>
</h2>
<#list article.articleTags?split(",") as articleTag>
<#if articleTag_index == 0>

View File

@@ -50,7 +50,7 @@
</head>
<body>
<#include "header.ftl">
<main id="pjax">
<main id="pjax" class="fn__flex-1">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<div class="post wrapper wrapper--miner">
<h2 class="item__title">

View File

@@ -29,7 +29,7 @@
</head>
<body class="body--gray">
<#include "header.ftl">
<main id="pjax">
<main id="pjax" class="fn__flex-1">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<div class="wrapper wrapper--min">
<div class="page__title">

File diff suppressed because one or more lines are too long

View File

@@ -19,7 +19,7 @@
* skin style
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 0.1.0.1, Feb 28, 2019
* @version 0.1.0.2, Mar 1, 2019
*/
@import "../../../scss/reset";
@import "../../../scss/reset-content";
@@ -37,6 +37,12 @@ $gray: #5f5f5f !default;
$gray-lighter: #e0e0e0 !default;
$gray-lightest: #f7f7f7 !default;
body {
display: flex;
flex-direction: column;
min-height: 100%;
}
.body--gray {
background-color: $gray-lightest;
}
@@ -319,7 +325,9 @@ a:active, a:focus, a:hover {
word-break: break-all;
box-sizing: border-box;
transition: all .5s;
& > div {
& > a {
color: #fff;
display: block;
opacity: 0;
overflow: hidden;
-webkit-line-clamp: 7;
@@ -343,13 +351,6 @@ a:active, a:focus, a:hover {
-webkit-box-orient: vertical;
display: -webkit-box;
}
sup {
font-weight: normal;
font-size: 12px;
float: left;
top: -33px;
color: $red;
}
}
&__tag {
@@ -367,7 +368,7 @@ a:active, a:focus, a:hover {
}
&__abstract {
background-color: rgba(0, 0, 0, .5);
& > div {
& > a {
animation: fade-in;
animation-duration: .5s;
opacity: 1;

View File

@@ -69,7 +69,7 @@
Powered by <a class="ft__link" href="https://b3log.org" target="_blank">B3log</a> 开源
<br>
Theme <a class="ft__link" rel="friend" href="https://github.com/b3log/solo-skins" target="_blank">Pinghsu</a>
<sup>[<a class="ft__link" target="_blank" href="https://github.com/chakhsu/pinghsu">Ref</a>]</sup>
<sup>[<a class="ft__link" target="_blank" href="https://github.com/chakhsu/pinghsu">ref</a>]</sup>
by <a class="ft__link" href="http://vanessa.b3log.org" target="_blank">Vanessa</a>
</div>
</div>
@@ -98,5 +98,6 @@
Util.initSW()
Util.parseMarkdown()
Util.killIE()
Util.previewImg()
</script>
${plugins}

View File

@@ -32,7 +32,7 @@
</head>
<body class="body--gray">
<#include "header.ftl">
<main id="pjax">
<main id="pjax" class="fn__flex-1">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<div class="wrapper wrapper--min">
<#include "article-list.ftl">

View File

@@ -57,10 +57,6 @@ var Skin = {
})
})
$('body').on('click', '.content-reset img', function () {
window.open(this.src)
})
$('.header__nav a').each(function () {
if (this.href === location.href) {
this.className = 'current'

View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var Skin={init:function(){new Headroom($("header")[0],{tolerance:0,offset:70,classes:{initial:"header",pinned:"header--down",unpinned:"header--up",top:"header",notTop:"header",bottom:"header",notBottom:"header"}}).init(),Util.initPjax(function(){0===$(".post__fix").length?$("body").addClass("body--gray"):$("body").removeClass("body--gray"),$(".header__nav a").each(function(){$(".header__nav a").removeClass("current"),this.href===location.href&&(this.className="current")})}),$("body").on("click",".content-reset img",function(){window.open(this.src)}),$(".header__nav a").each(function(){this.href===location.href&&(this.className="current")}).click(function(){$(".header__nav a").removeClass("current"),this.href===location.href&&(this.className="current")})},_initToc:function(){0===$(".content-reset .b3-solo-list li").length||$(window).width()<746?$(".post__toc .b3-solo-list").remove():($(".post__toc").html($(".b3-solo-list")).css("left",$(".post").offset().left+$(".post").outerWidth()),$(window).scroll(function(){72<$(window).scrollTop()?$(".post__toc").show():$(".post__toc").hide()}))},_initShare:function(){var t=$(".post__share"),e=t.find(".post__code"),o=e.data("url"),n=e.data("avatar"),i=encodeURIComponent(e.data("title")+" - "+e.data("blogtitle")),a=encodeURIComponent(o),s={};s.weibo="http://v.t.sina.com.cn/share/share.php?title="+i+"&url="+a+"&pic="+n,s.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+a+"&sharesource=qzone&title="+i+"&pics="+n,s.twitter="https://twitter.com/intent/tweet?status="+i+" "+a,t.find("span").click(function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===e.find("canvas").length?$.ajax({method:"GET",url:latkeConfig.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){e.qrcode({width:128,height:128,text:o})}}):e.find("canvas").slideToggle(),!1):void window.open(s[t],"_blank","top=100,left=200,width=648,height=618")})},initArticle:function(){new Headroom($(".post__fix")[0],{tolerance:0,offset:48,classes:{initial:"post__fix",pinned:"post__fix--pinned",unpinned:"post__fix--unpinned",top:"post__fix",notTop:"post__fix",bottom:"post__fix",notBottom:"post__fix"}}).init(),Skin._initShare(),Skin._initToc()}};Skin.init();
var Skin={init:function(){new Headroom($("header")[0],{tolerance:0,offset:70,classes:{initial:"header",pinned:"header--down",unpinned:"header--up",top:"header",notTop:"header",bottom:"header",notBottom:"header"}}).init(),Util.initPjax(function(){0===$(".post__fix").length?$("body").addClass("body--gray"):$("body").removeClass("body--gray"),$(".header__nav a").each(function(){$(".header__nav a").removeClass("current"),this.href===location.href&&(this.className="current")})}),$(".header__nav a").each(function(){this.href===location.href&&(this.className="current")}).click(function(){$(".header__nav a").removeClass("current"),this.href===location.href&&(this.className="current")})},_initToc:function(){0===$(".content-reset .b3-solo-list li").length||$(window).width()<746?$(".post__toc .b3-solo-list").remove():($(".post__toc").html($(".b3-solo-list")).css("left",$(".post").offset().left+$(".post").outerWidth()),$(window).scroll(function(){72<$(window).scrollTop()?$(".post__toc").show():$(".post__toc").hide()}))},_initShare:function(){var t=$(".post__share"),e=t.find(".post__code"),o=e.data("url"),i=e.data("avatar"),n=encodeURIComponent(e.data("title")+" - "+e.data("blogtitle")),a=encodeURIComponent(o),s={};s.weibo="http://v.t.sina.com.cn/share/share.php?title="+n+"&url="+a+"&pic="+i,s.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+a+"&sharesource=qzone&title="+n+"&pics="+i,s.twitter="https://twitter.com/intent/tweet?status="+n+" "+a,t.find("span").click(function(){var t=$(this).data("type");if(t)return"wechat"===t?(0===e.find("canvas").length?$.ajax({method:"GET",url:latkeConfig.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){e.qrcode({width:128,height:128,text:o})}}):e.find("canvas").slideToggle(),!1):void window.open(s[t],"_blank","top=100,left=200,width=648,height=618")})},initArticle:function(){new Headroom($(".post__fix")[0],{tolerance:0,offset:48,classes:{initial:"post__fix",pinned:"post__fix--pinned",unpinned:"post__fix--unpinned",top:"post__fix",notTop:"post__fix",bottom:"post__fix",notBottom:"post__fix"}}).init(),Skin._initShare(),Skin._initToc()}};Skin.init();

File diff suppressed because one or more lines are too long

View File

@@ -28,7 +28,7 @@
</head>
<body class="body--gray">
<#include "header.ftl">
<main id="pjax">
<main id="pjax" class="fn__flex-1">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<div class="wrapper--min wrapper">
<div class="page__title">

View File

@@ -30,7 +30,7 @@
</head>
<body>
<#include "header.ftl">
<main id="pjax">
<main id="pjax" class="fn__flex-1">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<div class="post wrapper wrapper--miner">
<div class="content-reset">

View File

@@ -29,7 +29,7 @@
</head>
<body class="body--gray">
<#include "header.ftl">
<main id="pjax">
<main id="pjax" class="fn__flex-1">
<#if pjax><!---- pjax {#pjax} start ----></#if>
<div class="wrapper wrapper--min">
<div class="page__title">

View File

@@ -26,7 +26,7 @@
<meta name="description" content="<#list tags as tag>${tag.tagTitle}<#if tag_has_next>,</#if></#list>"/>
</@head>
</head>
<body class="body--gray">
<body class="body--gray" class="fn__flex-1">
<#include "header.ftl">
<main id="pjax">
<#if pjax><!---- pjax {#pjax} start ----></#if>

View File

@@ -1,36 +1,25 @@
# Solo 官方皮肤
🎸 A small and beautiful blogging system written in Java. 一款小而美的 Java 博客系统。 https://solo.b3log.org
## 简介
[Solo](https://github.com/b3log/solo) 是**一个命令**就能搭建好的 Java 开源博客系统,并内置了 18+ 套精心制作的皮肤。除此之外Solo 还有着非常活跃的[社区](https://hacpai.com),文章分享到社区后可以让很多人看到,产生丰富的交流互动
这里是 [Solo](https://github.com/b3log/solo) 开源博客系统的官方皮肤仓库
**如果你不想自己维护服务器,可以购买我们运维的 Solo 直接使用,细节请联系 QQ845765。**
Solo 官方皮肤中有很大一部分是其他博客系统皮肤的仿款,为充分尊重原作者的劳动成果:
* 仿款皮肤完全遵循原作皮肤开源协议
* 只要能找到原作地址的,页脚处都会标明,如果有遗漏或不当之处请联系我们
* 如果作者不愿意授权,也欢迎联系我们,我们会及时下架调整
最后,衷心感谢所有原创作者们!
## 皮肤
预览及下载可参见 [Solo 主题](https://solo.b3log.org/#themes)。
## 文档
* [《提问的智慧》精读注解版](https://hacpai.com/article/1536377163156)
* [用户指南](https://hacpai.com/article/1492881378588)
* [开发指南](https://hacpai.com/article/1493822943172)
* [Solo 从设计到实现](https://hacpai.com/article/1537690756242)
* [皮肤开发](https://hacpai.com/article/1493814851007)
* [插件开发](https://docs.google.com/document/pub?id=15H7Q3EBo-44v61Xp_epiYY7vK_gPJLkQaT7T1gkE64w&pli=1)
## 社区
* [讨论区](https://hacpai.com/tag/solo)
* [报告问题](https://github.com/b3log/solo/issues/new/choose)
## 皮肤
预览及下载可参见 [Solo 主题](https://solo.b3log.org/#themes)
----
<p align = "center">
<strong>小而美博客系统</strong>
<br><br>
<img src="https://cloud.githubusercontent.com/assets/873584/26024667/c031e40a-3808-11e7-9176-f2c9af01bd64.png">
</p>

File diff suppressed because one or more lines are too long

View File

@@ -21,286 +21,349 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.0.0.0, Feb 21, 2019
* @version 2.0.0.1, Mar 1, 2019
*/
@import "../../../scss/reset";
@import "../../../scss/reset-content";
@import "vditor/src/assets/scss/classic";
.left {
float: left;
float: left;
}
.right {
float: right;
float: right;
}
.clear:before,
.clear:after {
display: table;
content: "";
display: table;
content: "";
}
.clear:after {
clear: both;
clear: both;
}
.none {
display: none;
display: none;
}
a, a:link {
color: #0000CC;
color: #0000CC;
}
a:active {
color: red;
color: red;
}
a:visited {
color: #551A8B;
color: #551A8B;
}
h5 {
font-size: 12px;
font-size: 12px;
}
.content {
margin: 0 auto;
max-width: 1250px;
padding: 0 12px;
margin: 0 auto;
max-width: 1250px;
padding: 0 12px;
}
.header {
height: 108px;
margin-bottom: 10px;
height: 108px;
margin-bottom: 10px;
}
.header .page-icon {
height: 14px;
width: 14px;
margin: -1px 3px 0 0;
height: 14px;
width: 14px;
margin: -1px 3px 0 0;
}
.sub-title {
font-size: 14px;
font-weight: normal;
font-size: 14px;
font-weight: normal;
}
.side {
border-left: 2px solid #E5ECF9;
padding-left: 12px;
width: 280px;
border-left: 2px solid #E5ECF9;
padding-left: 12px;
width: 280px;
}
.main {
margin-right: -294px;
width: 100%;
margin-right: -294px;
width: 100%;
}
.main>div {
min-width: 280px;
padding-right: 318px;
.main > div {
min-width: 280px;
padding-right: 318px;
}
#logoTitle {
font-family: "Microsoft YaHei";
font-size: 32px;
line-height: 64px;
text-decoration: none;
font-family: "Microsoft YaHei";
font-size: 32px;
line-height: 64px;
text-decoration: none;
}
#statistic span {
font-size: 11px;
font-size: 11px;
}
.article, .comments {
padding-bottom: 24px;
padding-bottom: 24px;
}
.article-title {
background-color: #E3E3FF;
border-top: 1px solid #3366CC;
margin-left: 91px;
padding: 3px 0 6px 12px;
background-color: #E3E3FF;
border-top: 1px solid #3366CC;
margin-left: 91px;
padding: 3px 0 6px 12px;
}
.article-title sup {
font-size: 12px;
font-size: 12px;
}
.article-date {
background-color: #E3E3FF;
border: 1px solid #BBCCFF;
float: left;
margin: 0 12px 12px 0;
border-radius: 5px;
padding: 7px 3px;
width: 70px;
text-align: center;
word-break: break-all;
background-color: #E3E3FF;
border: 1px solid #BBCCFF;
float: left;
margin: 0 12px 12px 0;
border-radius: 5px;
padding: 7px 3px;
width: 70px;
text-align: center;
word-break: break-all;
}
.article-abstract {
word-wrap: break-word;
word-wrap: break-word;
}
.content-reset {
margin-left: 12px;
line-height: 145%;
margin-left: 12px;
line-height: 145%;
}
.article-footer {
margin-right: 12px;
margin-right: 12px;
}
.article-footer a, .article-details-footer a {
text-decoration: none;
text-decoration: none;
}
.article-details-footer {
margin: 36px 12px 0 0;
margin: 36px 12px 0 0;
}
.article-relative {
line-height: 22px;
margin-top: 24px;
line-height: 22px;
margin-top: 24px;
ul {
list-style: none;
}
}
.comments {
position: relative;
position: relative;
}
.comment-title {
background-color: #E3E3FF;
border-top: 1px solid #3366CC;
padding: 3px 12px 3px 12px;
background-color: #E3E3FF;
border-top: 1px solid #3366CC;
padding: 3px 12px 3px 12px;
}
.comment-body-ref {
background-color: #FFFFFF;
border: 1px solid #E3E3FF;
filter: alpha(opacity=90);
left: 88px;
opacity: 0.9;
position: absolute;
top: 27px;
width: 87%;
z-index: 10;
background-color: #FFFFFF;
border: 1px solid #E3E3FF;
filter: alpha(opacity=90);
left: 88px;
opacity: 0.9;
position: absolute;
top: 27px;
width: 87%;
z-index: 10;
}
.comment-body-ref .comment-title {
border-top: 0px;
border-top: 0px;
}
.comment-body {
padding: 9px 12px 12px;
word-wrap: break-word;
overflow: hidden;
padding: 9px 12px 12px;
word-wrap: break-word;
overflow: hidden;
}
.comment-picture {
margin-right: 12px;
margin-right: 12px;
}
.comment-picture img {
height: 60px;
width: 60px;
height: 60px;
width: 60px;
}
.comment-reply {
margin: 0 auto 24px auto;
margin: 0 auto 24px auto;
}
.comment-content {
float: left;
width: 88%;
float: left;
width: 88%;
}
#commentURL:focus, #commentURLReply:focus {
box-shadow: -3px 1px 2px rgba(0, 0, 0, 0.3) inset;
box-shadow: -3px 1px 2px rgba(0, 0, 0, 0.3) inset;
}
.error-msg {
color: #3366CC;
color: #3366CC;
}
.error-footer {
bottom: 0px;
position: fixed;
width: 82%;
bottom: 0px;
position: fixed;
width: 82%;
}
#sideNavi a.selected {
color: #000000;
text-decoration: none;
color: #000000;
text-decoration: none;
}
.side-navi ul {
list-style: none;
list-style: none;
}
#sideNavi li {
line-height: 22px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
line-height: 22px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
}
#sideNavi li.aboutMe, #sideNavi li.side-navi-notice {
white-space: normal;
white-space: normal;
}
#sideNavi sup {
margin-right: 3px;
color: green;
margin-right: 3px;
color: green;
}
.side-comment {
text-decoration: none;
text-decoration: none;
}
#recentComments p {
display: inline;
}
#recentComments div, #recentComments br {
display: inline;
img {
display: none;
}
}
#recentComments div, #recentComments br {
display: none;
}
.line {
border-top: thin dotted #BBBBBB;
margin-top: 12px;
padding-top: 12px;
border-top: thin dotted #BBBBBB;
margin-top: 12px;
padding-top: 12px;
}
.pagination {
margin: 16px;
text-align: center;
margin: 16px;
text-align: center;
}
.pagination a, .pagination a:visited {
color: #4272DB;
padding: 0 3px;
text-decoration: none;
color: #4272DB;
padding: 0 3px;
text-decoration: none;
}
.pagination a.selected {
color: #000000;
font-weight: bold;
color: #000000;
font-weight: bold;
}
#tagsPanel .tagPanel {
border: 2px solid;
cursor: pointer;
float: left;
margin: 3px;
border-radius: 6px;
border: 2px solid;
cursor: pointer;
float: left;
margin: 3px;
border-radius: 6px;
}
#tagsPanel .tagPanel:hover {
background-color: #EEEEEE;
border: 2px dashed;
background-color: #EEEEEE;
border: 2px dashed;
}
#tagsPanel .tagPanel {
text-decoration: none;
text-decoration: none;
}
.error-title {
border-top: 1px solid #3366CC;
background-color: #E5ECF9;
margin-left: 12px;
padding: 6px 12px;
.error-title {
border-top: 1px solid #3366CC;
background-color: #E5ECF9;
margin-left: 12px;
padding: 6px 12px;
}
.error-panel {
margin-left: 12px;
padding: 24px;
margin-left: 12px;
padding: 24px;
}
.commentIcon, .browserIcon {
background-image: url("../../../images/icon.png");
cursor: pointer;
height: 16px;
margin-right: 3px;
width: 16px;
background-image: url("../../../images/icon.png");
cursor: pointer;
height: 16px;
margin-right: 3px;
width: 16px;
}
.commentIcon {
background-position: -32px -16px;
background-position: -32px -16px;
}
.browserIcon {
background-position: -128px -16px;
background-position: -128px -16px;
}
.goTopIcon {
background-position: -128px -32px;
background-position: -128px -32px;
}
.goBottomIcon {
background-position: -144px -32px;
background-position: -144px -32px;
}
.footer {
text-align: center;
margin: 30px 0 30px 0;
text-align: center;
margin: 30px 0 30px 0;
}
.has-toc > ul > li {
list-style: none;
float: left;
width: 50%;
text-align: center;
margin: 15px 0;
cursor: pointer;
list-style: none;
float: left;
width: 50%;
text-align: center;
margin: 15px 0;
cursor: pointer;
}
.has-toc > ul > li.current {
color: #3366CC;
color: #3366CC;
}

View File

@@ -33,7 +33,6 @@ commentEmotions1Label=Emotions:
commentEmotionsLabel=Emotions
commentName1Label=Name:
commentNameLabel=Name
commentEmail1Label=Email:
commentURL1Label=URL:
commentURLLabel=URL
commentContent1Label=Content:

View File

@@ -34,7 +34,6 @@ commentEmotions1Label=\u8868\u60C5\uFF1A
commentEmotionsLabel=\u8868\u60C5
commentName1Label=\u59D3\u540D\uFF1A
commentNameLabel=\u59D3\u540D
commentEmail1Label=\u90AE\u7BB1\uFF1A
commentURL1Label=URL\uFF1A
commentURLLabel=URL
commentContent1Label=\u8BC4\u8BBA\u5185\u5BB9\uFF1A

View File

@@ -141,7 +141,8 @@
page.loadRelevantArticles('${article.oId}', '<h4 class="ft-gray">${relevantArticlesLabel}</h4>');
</#if>
<#if 0 != externalRelevantArticlesDisplayCount>
page.loadExternalRelevantArticles("<#list article.articleTags?split(",") as articleTag>${articleTag}<#if articleTag_has_next>,</#if></#list>");
page.loadExternalRelevantArticles("<#list article.articleTags?split(",") as articleTag>${articleTag}<#if articleTag_has_next>,</#if></#list>",
'<h4 class="ft-gray">${externalRelevantArticlesLabel}</h4>');
</#if>
</@comment_script>
</body>

File diff suppressed because one or more lines are too long

View File

@@ -19,7 +19,7 @@
* Skin ease style.
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 2.0.0.0, Feb 21, 2019
* @version 2.1.0.0, Mar 1, 2019
*/
@import "../../../scss/reset-content";
@@ -374,6 +374,7 @@ sup {
margin: 10px 0;
padding: 0 20px 10px;
width: 382px;
min-height: 134px;
}
.article-relative:hover {
@@ -390,7 +391,6 @@ sup {
}
#externalRelevantArticles {
width: 357px;
margin-top: 0;
}
/* end article*/
@@ -483,7 +483,7 @@ sup {
}
.form textarea {
height: 120px;
height: 146px;
overflow: auto;
width: 426px;
line-height: 16px;

17
ease/js/ease.min.js vendored
View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var goTranslate=function(){window.open("http://translate.google.com/translate?sl=auto&tl=auto&u="+location.href)},getNextPage=function(){var c=$(".article-next");currentPage+=1;var e="/articles";if(1===$("#tag").length)e="/articles/tags/"+(t=location.pathname.split("/"))[t.length-1]+"/";else if(1===$("#archive").length){e="/articles/archives/"+(t=location.pathname.split("/"))[t.length-2]+"/"+t[t.length-1]+"/"}else if(1===$("#author").length){var t;e="/articles/authors/"+(t=location.pathname.split("/"))[t.length-1]+"/"}$.ajax({url:latkeConfig.servePath+e+"?p="+currentPage,type:"GET",beforeSend:function(){c.css("background","url("+latkeConfig.staticServePath+"/skins/ease/images/ajax-loader.gif) no-repeat scroll center center #fefefe")},success:function(e,t){if(e.sc){for(var a="",i=e.rslts.pagination,r=0;r<e.rslts.articles.length;r++){var n=e.rslts.articles[r],l="";e.rslts.articles.length-1===r&&(l=" article-last"),a+='<li class="article'+l+'"><div class="article-title"><h2><a rel="bookmark" class="ft-gray" href="'+latkeConfig.servePath+n.articlePermalink+'">'+n.articleTitle+"</a>",n.hasUpdated&&(a+="<sup>"+Label.updatedLabel+"</sup>"),n.articlePutTop&&(a+="<sup>"+Label.topArticleLabel+"</sup>"),a+='</h2><div class="right"><a rel="nofollow" class="ft-gray" href="'+latkeConfig.servePath+n.articlePermalink+'#comments">'+ +n.articleCommentCount+"&nbsp;&nbsp;"+Label.commentLabel+'</a>&nbsp;&nbsp;<a rel="nofollow" class="ft-gray" href="'+latkeConfig.servePath+n.articlePermalink+'">'+n.articleViewCount+"&nbsp;&nbsp;"+Label.viewLabel+'</a></div><div class="clear"></div></div><div class="content-reset"><div id="abstract'+n.oId+'">'+n.articleAbstract+'</div><div id="content'+n.oId+'" class="none"></div></div><div class="right ft-gray">',n.hasUpdated?a+=Util.toDate(n.articleUpdateTime,"yy-MM-dd HH:mm"):a+=Util.toDate(n.articleCreateTime,"yy-MM-dd HH:mm"),a+=' <a href="'+latkeConfig.servePath+"/authors/"+n.authorId+'">'+n.authorName+'</a></div><div class="left ft-gray">'+Label.tag1Label+" ";for(var s=n.articleTags.split(","),o=0;o<s.length;o++)a+='<a rel="tag" href="'+latkeConfig.servePath+"/tags/"+encodeURIComponent(s[o])+'">'+s[o]+"</a>",o<s.length-1&&(a+=", ");a+='</div><div class="clear"></div></li>'}$(".article-last").removeClass("article-last"),$(".main>.wrapper>ul").append(a),i.paginationPageCount===currentPage?c.remove():c.css("background","none")}}})},ease={$header:$(".header"),headerH:103,$body:$(".main > .wrapper"),$nav:$(".nav"),getCurrentPage:function(){var e=$(".article-next");0<e.length&&(window.currentPage=e.data("page"))},setNavCurrent:function(){$(".nav ul a").each(function(){var e=$(this);e.attr("href")===location.href?e.addClass("current"):/\/[0-9]+$/.test(location.pathname)&&($(".nav ul li")[0].className="current")})},initCommon:function(){Util.init(),Util.replaceSideEm($(".recent-comments-content")),Util.buildTags("tagsSide")},initArchives:function(){var e=$(".archives");if(!(e.length<1)){$(".footer").css("marginTop","30px");for(var i=[],t=e.find("span").each(function(){for(var e=$(this).data("year"),t=!0,a=0;a<i.length;a++)if(e===i[a]){t=!1;break}t&&i.push(e)}),a="",r=0;r<i.length;r++){for(var n="",l=0;l<t.length;l++){var s=$(t[l]);s.data("year")===i[r]&&(n+=s.html())}a+="<div><h3 class='ft-gray'>"+i[r]+"</h3>"+n+"</div>"}e.html(a);for(var o=$(".archives>div"),c=0,h=0,g=[],d=0;d<o.length;d++){for(var f=0;f<3&&!(d>=o.length);f++)o[d].style.left=310*f+"px",g[f]=0<c?(""!==o[d-3].style.top&&(h=parseInt(o[d-3].style.top)),o[d].style.top=$(o[d-3]).height()+60+h+"px",parseInt(o[d].style.top)+$(o[d]).height()+60):$(o[d]).height()+60,f<2&&(d+=1);c+=1}e.height(g.sort()[g.length-1])}},scrollEvent:function(){var i=this;$(window).scroll(function(){var e=$(window).scrollTop();if(e>i.headerH){var t=$(window).height(),a=e+t-21;$("body").height()-58<=e+t&&(a=$(".footer").offset().top-21),$("#goTop").fadeIn("slow").css("top",a)}else $("#goTop").hide()})},setDynamic:function(){var e=$(".dynamic");if(!($(".dynamic").length<1)){var t=e.find(".side-categories"),a=e.find(".side-tags"),i=e.find(".side-most-comment"),r=e.find(".side-most-view");t.height()>a.height()?a.height(t.height()):t.height(a.height()),i.height()>r.height()?r.height(i.height()):i.height(r.height()),$(".content-reset").each(function(){this.innerHTML=Util.replaceEmString($(this).html())})}}};ease.getCurrentPage(),ease.initCommon(),ease.scrollEvent(),ease.setNavCurrent(),ease.initArchives(),ease.setDynamic();

View File

@@ -32,10 +32,7 @@ replyLabel=Reply
commentNameLabel=Name
commentURLLabel=URL
nameTooLongLabel=Sorry, your username must be between 2 and 20 characters long!
mailCannotEmptyLabel=Mail is empty!
mailInvalidLabel=Mail is invalid!
commentContentCannotEmptyLabel=Sorry, your content must be between 2 and 500 characters long!
captchaCannotEmptyLabel=Captcha is empty!
loadingLabel=loading....
externalRelevantArticlesLabel=External Relevant Articles:
b3logLabel=<span style="color: orange;">B</span><span style="color: blue;"><sup>3</sup></span><span style="color: green;">L</span><span style="color: red;">O</span><span style="color: blue;">G</span>

View File

@@ -50,10 +50,10 @@
</#if>
</div>
</div>
<div class="article-abstract content-reset">
<div class="article-abstract">
<div class="note">
<div class="corner"></div>
<div class="substance">
<div class="substance content-reset">
${article.articleAbstract}
<div class="clear"></div>
</div>

View File

@@ -130,7 +130,7 @@
<div class="clear"></div>
</div>
<div>
<div class="margin25">
<#if nextArticlePermalink??>
<div class="right">
<a href="${servePath}${nextArticlePermalink}">${nextArticle1Label}${nextArticleTitle}</a>

File diff suppressed because one or more lines are too long

View File

@@ -20,7 +20,7 @@
* skin favoutite style
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 2.1.0.0, Feb 28, 2019
* @version 2.1.0.1, Mar 1, 2019
*/
@import "../../../scss/reset";
@@ -462,11 +462,7 @@ img {
}
.side-navi .navi-comments .side-comment img {
border: 0px;
height: 16px;
margin-right: 0px;
padding: 0px;
width: 16px;
display: none;
}
.side-navi .navi-comments li {
@@ -803,10 +799,9 @@ img {
.note {
background: none repeat scroll 0 0 #E7F5F7;
margin: 40px 0 0 -49px;
padding: 10px 10px 10px 85px;
padding: 10px 10px 10px 50px;
position: relative;
width: 574px;
z-index: 50;
width: 609px;
}
.corner {

View File

@@ -32,7 +32,6 @@ commentEmotions1Label=Emotions:
commentEmotionsLabel=Emotions
commentName1Label=Name:
commentNameLabel=Name
commentEmail1Label=Email:
commentURL1Label=URL:
commentURLLabel=URL
commentContent1Label=Content:

View File

@@ -33,7 +33,6 @@ commentEmotions1Label=\u8868\u60C5\uFF1A
commentEmotionsLabel=\u8868\u60C5
commentName1Label=\u59D3\u540D\uFF1A
commentNameLabel=\u59D3\u540D
commentEmail1Label=\u90AE\u7BB1\uFF1A
commentURL1Label=URL\uFF1A
commentURLLabel=URL
commentContent1Label=\u8BC4\u8BBA\u5185\u5BB9\uFF1A

View File

@@ -162,17 +162,19 @@
</div>
<ul id="save">
<#list archiveDates as archiveDate>
<li>
<#if "en" == localeString?substring(0, 2)>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title="${archiveDate.monthName} ${archiveDate.archiveDateYear}(${archiveDate.archiveDatePublishedArticleCount})">
${archiveDate.monthName} ${archiveDate.archiveDateYear}</a>(${archiveDate.archiveDatePublishedArticleCount})
<#else>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title="${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})">
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}</a>(${archiveDate.archiveDatePublishedArticleCount})
<#if archiveDate_index < 10>
<li>
<#if "en" == localeString?substring(0, 2)>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title="${archiveDate.monthName} ${archiveDate.archiveDateYear}(${archiveDate.archiveDatePublishedArticleCount})">
${archiveDate.monthName} ${archiveDate.archiveDateYear}</a>(${archiveDate.archiveDatePublishedArticleCount})
<#else>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
title="${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})">
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}</a>(${archiveDate.archiveDatePublishedArticleCount})
</#if>
</li>
</#if>
</li>
</#list>
</ul>
</div>

File diff suppressed because one or more lines are too long

View File

@@ -20,499 +20,594 @@
* skin i-nove style
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 2.0.0.0, Feb 21, 2019
* @version 2.0.0.1, Mar 1, 2019
*/
@import "../../../scss/reset-content";
@import "../../../scss/reset";
@import "vditor/src/assets/scss/classic";
.left {
float: left;
float: left;
}
.right {
float: right;
float: right;
}
.clear:before,
.clear:after {
display: table;
content: "";
display: table;
content: "";
}
.clear:after {
clear: both;
clear: both;
}
.none {
display: none;
display: none;
}
.marginLeft12 {
margin-left: 12px;
}
.marginTop12 {
margin-top: 12px;
}
.margin5 {
margin: 5px;
}
img {
max-width: 100%;
height: auto;
max-width: 100%;
height: auto;
}
.bg {
background: url("../images/bg.jpg") repeat-x scroll 0 0 #BEC3C6;
color: #555555;
background: url("../images/bg.jpg") repeat-x scroll 0 0 #BEC3C6;
color: #555555;
}
a, a:link, a:active, a:visited {
color: #2970A6;
text-decoration: none;
color: #2970A6;
text-decoration: none;
}
a:hover {
text-decoration: underline;
text-decoration: underline;
}
h1 {
font-size: 200%;
font-size: 200%;
}
h4 {
font-size: 160%;
font-size: 160%;
}
h5 {
font-size: 12px;
font-size: 12px;
}
.margin5R {
margin-right: 5px;
margin-right: 5px;
}
.margin5 {
margin: 5px;
margin: 5px;
}
.wrapper {
background: url("../images/light.gif") no-repeat scroll 50% 0 transparent;
padding: 20px 0;
background: url("../images/light.gif") no-repeat scroll 50% 0 transparent;
padding: 20px 0;
}
.content {
margin: 0 auto;
width: 936px;
margin: 0 auto;
width: 936px;
}
.header {
background: url("../images/header.jpg") no-repeat scroll 0 0 transparent;
border-bottom: 1px solid #A6A6A6;
height: 65px;
padding: 25px 30px 0;
background: url("../images/header.jpg") no-repeat scroll 0 0 transparent;
border-bottom: 1px solid #A6A6A6;
height: 65px;
padding: 25px 30px 0;
}
.body {
background: url("../images/sidesep.gif") repeat-y scroll right center #FFFFFF;
min-height: 400px;
background: url("../images/sidesep.gif") repeat-y scroll right center #FFFFFF;
min-height: 400px;
}
.side-navi {
background: url("../images/sidebar_shadow.gif") repeat-x scroll 50% 0 #F7F7F7;
font-size: 95%;
line-height: 145%;
padding-top: 8px;
width: 300px;
background: url("../images/sidebar_shadow.gif") repeat-x scroll 50% 0 #F7F7F7;
font-size: 95%;
line-height: 145%;
padding-top: 8px;
width: 300px;
}
.main {
background: url("../images/main_shadow.gif") repeat-x scroll center top #FFFFFF;
padding: 13px 15px 15px;
width: 605px;
background: url("../images/main_shadow.gif") repeat-x scroll center top #FFFFFF;
padding: 13px 15px 15px;
width: 605px;
}
.footer {
background: url("../images/footer.jpg") no-repeat scroll 0 0 transparent;
border-top: 1px solid #CCCCCC;
font-size: 11px;
height: 88px;
line-height: 145%;
padding: 0;
background: url("../images/footer.jpg") no-repeat scroll 0 0 transparent;
border-top: 1px solid #CCCCCC;
font-size: 11px;
height: 88px;
line-height: 145%;
padding: 0;
}
#logoTitle {
color: #FFFFFF;
display: block;
font-family: "Trajan Pro";
height: 30px;
outline: none;
text-decoration: none;
color: #FFFFFF;
display: block;
font-family: "Trajan Pro";
height: 30px;
outline: none;
text-decoration: none;
}
.sub-title {
border-top: 1px solid #FFFFFF;
color: #FFFFFF;
font-size: 10px;
padding: 0 3px;
border-top: 1px solid #FFFFFF;
color: #FFFFFF;
font-size: 10px;
padding: 0 3px;
}
#header-navi {
background: none repeat scroll 0 0 #FFFFFF;
border-bottom: 1px solid #A6A6A6;
ul {
margin: 0;
}
background: none repeat scroll 0 0 #FFFFFF;
border-bottom: 1px solid #A6A6A6;
ul {
margin: 0;
}
}
#header-navi li {
float: left;
list-style: none;
margin-left: 0px;
float: left;
list-style: none;
margin-left: 0px;
}
#header-navi li a {
background: url("../images/menu.gif") no-repeat scroll 0 0 transparent;
color: #382E1F;
display: block;
font-size: 11px;
height: 31px;
line-height: 31px;
margin-left: -10px;
outline: none;
padding: 0 20px;
text-decoration: none;
background: url("../images/menu.gif") no-repeat scroll 0 0 transparent;
color: #382E1F;
display: block;
font-size: 11px;
height: 31px;
line-height: 31px;
margin-left: -10px;
outline: none;
padding: 0 18px;
text-decoration: none;
}
#header-navi li a:hover {
background-position: 0 -31px;
background-position: 0 -31px;
}
#header-navi li a.home {
background-position: 0 -93px;
margin-left: 0;
padding: 0;
text-indent: -999em;
width: 45px;
background-position: 0 -93px;
margin-left: 0;
padding: 0;
text-indent: -999em;
width: 45px;
}
#header-navi li a.home:hover {
background-position: 0 -124px;
background-position: 0 -124px;
}
#header-navi li a.lastNavi:hover {
background-position: 0 0;
background-position: 0 0;
}
#header-navi li.selected a {
background-position: 0 -62px;
background-position: 0 -62px;
}
#header-navi li.selected a.home {
background-position: 0 -155px;
background-position: 0 -155px;
}
#header-navi .page-icon {
float: left;
height: 14px;
width: 14px;
margin: 8px 3px 0 0;
float: left;
height: 14px;
width: 14px;
margin: 8px 3px 0 0;
}
#statistic {
font-size: 11px;
line-height: 31px;
margin-right: 15px;
font-size: 11px;
line-height: 31px;
margin-right: 15px;
}
.footer .copyright {
padding: 12px;
width: 857px;
padding: 12px;
width: 857px;
}
.footer .copyright span {
margin: 0px;
margin: 0px;
}
.footer .goTop {
background: url("../images/icons.gif") no-repeat scroll 0 -304px transparent;
color: #2A2A2A;
cursor: pointer;
line-height: 18px;
margin: 5px 17px 0 0;
padding-left: 16px;
width: 22px;
white-space: nowrap;
background: url("../images/icons.gif") no-repeat scroll 0 -304px transparent;
color: #2A2A2A;
cursor: pointer;
line-height: 18px;
margin: 5px 17px 0 0;
padding-left: 16px;
width: 22px;
white-space: nowrap;
}
.article {
padding-bottom: 15px;
overflow: hidden;
padding-bottom: 15px;
overflow: hidden;
}
.article-title {
border-bottom: 1px solid #CCCCCC;
font-size: 16px;
margin-top: 10px;
padding: 0 5px 3px;
border-bottom: 1px solid #CCCCCC;
font-size: 16px;
margin-top: 10px;
padding: 0 5px 3px;
}
.article-title sup {
font-size: 12px;
font-size: 12px;
}
.article-title a {
color: #4C4C4C;
text-decoration: none;
color: #4C4C4C;
text-decoration: none;
}
.article-title a:hover {
color: #2970A6;
color: #2970A6;
}
.article-abstract {
line-height: 145%;
margin: 10px 0 10px 5px;
word-wrap: break-word;
line-height: 145%;
margin: 10px 0 10px 5px;
word-wrap: break-word;
}
.tagsIcon, .articles-commentIcon, .dateIcon, .article-browserIcon, .authorIcon {
background: url("../images/icons.gif") no-repeat scroll 0 -400px transparent;
float: left;
height: 16px;
margin-right: 6px;
width: 16px;
background: url("../images/icons.gif") no-repeat scroll 0 -400px transparent;
float: left;
height: 16px;
margin-right: 6px;
width: 16px;
}
.tagsIcon {
background-position: 0 -400px;
margin-left: 15px;
background-position: 0 -400px;
margin-left: 15px;
}
.dateIcon {
background-position: 0 -48px;
margin-left: 15px;
background-position: 0 -48px;
margin-left: 15px;
}
.authorIcon {
background-position: 0 0;
background-position: 0 0;
}
.articles-commentIcon {
background-position: 0 -96px;
background-position: 0 -96px;
}
.article-browserIcon {
background-position: 0 -480px;
background-position: 0 -480px;
}
.content-reset {
line-height: 145%;
padding: 5px 0 0 5px;
line-height: 145%;
padding: 5px 0 0 5px;
}
.article-footer {
margin: 0 5px 10px 5px;
margin: 0 5px 10px 5px;
}
.article-relative {
line-height: 22px;
margin-top: 24px;
line-height: 22px;
margin-top: 24px;
}
.article-relative h4 {
font-size: 12px;
font-size: 12px;
}
.comments {
background: none repeat scroll 0 0 #FCFCFC;
border-bottom: 1px solid #CCCCCC;
border-top: 1px solid #CCCCCC;
margin: 15px -15px;
padding: 0 15px 15px;
position: relative;
background: none repeat scroll 0 0 #FCFCFC;
border-bottom: 1px solid #CCCCCC;
border-top: 1px solid #CCCCCC;
margin: 15px -15px;
padding: 0 15px 15px;
position: relative;
}
.comment-title {
background-color: #E3E9FF;
border-top: 1px solid #3366CC;
padding: 3px 12px 3px 12px;
position: relative;
background-color: #E3E9FF;
border-top: 1px solid #3366CC;
padding: 3px 12px 3px 12px;
position: relative;
}
.comment-body-ref {
background-color: #FFFFFF;
filter: alpha(opacity=90);
left: 217px;
opacity: 0.9;
padding: 6px;
position: absolute;
width: 605px;
z-index: 10;
background-color: #FFFFFF;
filter: alpha(opacity=90);
left: 217px;
opacity: 0.9;
padding: 6px;
position: absolute;
width: 605px;
z-index: 10;
}
.comment-body {
margin-top: 15px;
margin-top: 15px;
}
.comment-author {
float: left;
text-align: center;
width: 81px;
float: left;
text-align: center;
width: 81px;
}
.comment-author div {
background: url("../images/commentpoint.png") no-repeat scroll 100% 33% transparent;
margin-top: 10px;
padding-right: 14px;
background: url("../images/commentpoint.png") no-repeat scroll 100% 33% transparent;
margin-top: 10px;
padding-right: 14px;
}
.comment-author img {
border: 1px solid #999999;
height: 32px;
padding: 1px;
width: 32px;
border: 1px solid #999999;
height: 32px;
padding: 1px;
width: 32px;
}
.comment-author a {
font-weight: bold;
white-space: nowrap;
margin-right: 14px;
font-weight: bold;
white-space: nowrap;
margin-right: 14px;
}
.comment-info {
background: url("../images/comment.gif") no-repeat scroll 0 0 #EDEFF0;
font-size: 12px;
padding: 10px 15px 0;
width: 494px;
background: url("../images/comment.gif") no-repeat scroll 0 0 #EDEFF0;
font-size: 12px;
padding: 10px 15px 0;
width: 494px;
}
.comment-content {
background: url("../images/comment.gif") no-repeat scroll 100% 100% transparent;
font-size: 12px;
line-height: 145%;
margin: 0 -15px;
overflow: hidden;
padding: 9px 15px 10px;
word-wrap: break-word;
background: url("../images/comment.gif") no-repeat scroll 100% 100% transparent;
font-size: 12px;
line-height: 145%;
margin: 0 -15px;
overflow: hidden;
padding: 9px 15px 10px;
word-wrap: break-word;
}
.comment-form img {
cursor: pointer;
cursor: pointer;
}
.comment-form input, .comment-form textarea {
background: url("../images/textfield.gif") repeat-x scroll 50% 0 #FFFFFF;
border: 1px solid #A6A6A6;
color: #555555;
font-family: Helvetica,Arial,sans-serif;
height: 16px;
outline: none;
padding: 2px 1px;
width: 200px;
background: url("../images/textfield.gif") repeat-x scroll 50% 0 #FFFFFF;
border: 1px solid #A6A6A6;
color: #555555;
font-family: Helvetica, Arial, sans-serif;
height: 16px;
outline: none;
padding: 2px 1px;
width: 200px;
}
.comment-form textarea {
font-size: 12px;
height: auto;
width: 601px;
font-size: 12px;
height: auto;
width: 601px;
}
.comment-form button {
background: none repeat scroll 0 0 #B4D666;
border-color: #B4D666 #81B840 #81B840 #B4D666;
border-radius: 0px;
border-style: solid;
border-width: 1px;
color: #2970A6;
font-size: 12px;
height: 24px;
line-height: 24px;
padding: 0px 6px;
background: none repeat scroll 0 0 #B4D666;
border-color: #B4D666 #81B840 #81B840 #B4D666;
border-radius: 0px;
border-style: solid;
border-width: 1px;
color: #2970A6;
font-size: 12px;
height: 24px;
line-height: 24px;
padding: 0px 6px;
}
.comment-form button:hover {
background: none repeat scroll 0 0 #98C64C;
border-color: #76B33A #98C64C #98C64C #76B33A;
color: #074A7E;
background: none repeat scroll 0 0 #98C64C;
border-color: #76B33A #98C64C #98C64C #76B33A;
color: #074A7E;
}
.error-msg {
color: #3366CC;
color: #3366CC;
}
.side-navi ul {
list-style: none;
margin-top: 10px;
list-style: none;
margin-top: 10px;
}
.side-navi .item {
padding: 15px;
padding: 15px;
}
.side-navi sup {
margin-right: 3px;
color: #555;
margin-right: 3px;
color: #555;
}
.side-navi .navi-comments li > img {
border: 1px solid #999999;
height: 32px;
margin-right: 7px;
padding: 1px;
width: 32px;
border: 1px solid #999999;
height: 32px;
margin-right: 7px;
padding: 1px;
width: 32px;
}
.side-navi .navi-comments a {
font-weight: bold;
font-weight: bold;
}
.side-navi .navi-comments .side-comment {
color: #555555;
font-weight: normal;
height: 18px;
color: #555555;
font-weight: normal;
height: 18px;
}
.side-navi .navi-comments div.left>div>div {
display: none;
.side-navi .navi-comments div.left > div > div {
display: none;
}
.side-navi .navi-comments .side-comment img {
border: 0px;
height: 16px;
margin-right: 0px;
padding: 0px;
width: 16px;
border: 0px;
height: 16px;
margin-right: 0px;
padding: 0px;
width: 16px;
}
.side-navi .navi-comments li {
padding: 2px 0;
padding: 2px 0;
}
.side-navi .navi-comments li div {
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
width: 227px;
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
width: 227px;
}
.side-navi a.selected {
color: #555555;
text-decoration: none;
color: #555555;
text-decoration: none;
}
.side-navi ul.navi-tags li, .side-navi .navi-comments li {
background-image: none;
padding-left: 0px;
background-image: none;
padding-left: 0px;
}
.side-navi ul.navi-tags li img {
height: 16px;
padding-right: 6px;
width: 16px;
height: 16px;
padding-right: 6px;
width: 16px;
}
.side-navi li {
background: url("../images/icons.gif") no-repeat scroll 0 -623px transparent;
margin: 5px 0 0 0;
overflow: hidden;
padding-left: 20px;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
white-space: nowrap;
background: url("../images/icons.gif") no-repeat scroll 0 -623px transparent;
margin: 5px 0 0 0;
overflow: hidden;
padding-left: 20px;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
white-space: nowrap;
}
.side-navi li.aboutMe {
white-space: normal;
white-space: normal;
}
.side-navi .line {
background: url("../images/widgetsep.png") no-repeat scroll center bottom transparent;
height: 6px;
width: 300px;
background: url("../images/widgetsep.png") no-repeat scroll center bottom transparent;
height: 6px;
width: 300px;
}
.pagination {
margin: 16px;
text-align: center;
margin: 16px;
text-align: center;
}
.pagination a, .pagination a:visited {
color: #4272DB;
padding: 0 3px;
color: #4272DB;
padding: 0 3px;
}
.pagination a.selected {
color: #000000;
font-weight: bold;
color: #000000;
font-weight: bold;
}
#tagsPanel .tagPanel {
border: 2px solid;
border-radius: 6px;
cursor: pointer;
float: left;
margin: 3px;
border: 2px solid;
border-radius: 6px;
cursor: pointer;
float: left;
margin: 3px;
}
#tagsPanel .tagPanel:hover {
background-color: #EEEEEE;
border: 2px dashed;
background-color: #EEEEEE;
border: 2px dashed;
}
#tagsPanel .tagPanel {
text-decoration: none;
text-decoration: none;
}
.error-body {
background: url("../images/main_shadow.gif") repeat-x scroll center top #FFFFFF;
height: 400px;
padding: 12px;
background: url("../images/main_shadow.gif") repeat-x scroll center top #FFFFFF;
height: 400px;
padding: 12px;
}
.error-title {
line-height: 72px;
line-height: 72px;
}
.error-panel {
margin-left: 35px;
width: 201px;
margin-left: 35px;
width: 201px;
}
.error-panel a {
background-color: #9CD941;
border-color: #D0F29D #398A38 #398A38 #D0F29D;
border-style: solid;
border-width: 1px;
color: #000000;
font-size: 14px;
font-weight: bold;
margin-right: 3px;
padding: 10px 15px;
text-decoration: none;
background-color: #9CD941;
border-color: #D0F29D #398A38 #398A38 #D0F29D;
border-style: solid;
border-width: 1px;
color: #000000;
font-size: 14px;
font-weight: bold;
margin-right: 3px;
padding: 10px 15px;
text-decoration: none;
}
.error-panel a:hover {
background-color: #ADEb51;
background-color: #ADEb51;
}
.kind-panel {
background: url("../images/box.gif") no-repeat scroll 100% 100% #F4F5F7;
margin-bottom: 10px;
padding: 8px 12px;
background: url("../images/box.gif") no-repeat scroll 100% 100% #F4F5F7;
margin-bottom: 10px;
padding: 8px 12px;
}
.kind-title {
background: url("../images/box.gif") no-repeat scroll 0 0 #E3E4E6;
border-bottom: 1px solid #CCCCCC;
font-weight: bold;
padding: 6px 12px;
background: url("../images/box.gif") no-repeat scroll 0 0 #E3E4E6;
border-bottom: 1px solid #CCCCCC;
font-weight: bold;
padding: 6px 12px;
}

View File

@@ -32,7 +32,6 @@ commentEmotions1Label=Emotions:
commentEmotionsLabel=Emotions
commentName1Label=Name:
commentNameLabel=Name
commentEmail1Label=Email:
commentURL1Label=URL:
commentURLLabel=URL
commentContent1Label=Content:

View File

@@ -33,7 +33,6 @@ commentEmotions1Label=\u8868\u60C5\uFF1A
commentEmotionsLabel=\u8868\u60C5
commentName1Label=\u59D3\u540D\uFF1A
commentNameLabel=\u59D3\u540D
commentEmail1Label=\u90AE\u7BB1\uFF1A
commentURL1Label=URL\uFF1A
commentURLLabel=URL
commentContent1Label=\u8BC4\u8BBA\u5185\u5BB9\uFF1A

View File

@@ -141,6 +141,7 @@
<h4>${archiveLabel}</h4>
<ul>
<#list archiveDates as archiveDate>
<#if archiveDate_index < 10>
<li>
<#if "en" == localeString?substring(0, 2)>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
@@ -152,6 +153,7 @@
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}</a>(${archiveDate.archiveDatePublishedArticleCount})
</#if>
</li>
</#if>
</#list>
</ul>
</div>

File diff suppressed because one or more lines are too long

View File

@@ -44,5 +44,6 @@
<script>
Util.initSW();
Util.parseMarkdown();
Util.previewImg()
</script>
${plugins}

View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var MetroHot={headerH:$("#header").height()+30+($("#header > div").get(1)?30:0),responsiveType:"large",goTranslate:function(){window.open("http://translate.google.com/translate?sl=auto&tl=auto&u="+location.href)},init:function(){var e="";$("#admin a").each(function(){-1<$(this).attr("href").indexOf("/logout")&&(e=$(this).attr("href"))}),$("#logout, .logout").attr("href",e),$(".header .title, .navigation").mouseover(function(){$(".navigation").show()}).mouseout(function(){$(".navigation").hide()}),$(".header .title").click(function(){window.location.href=latkeConfig.servePath});var t=$("#top > span").first().text();$(".online-count .text").append(t.substr(1,t.length));var i=$("#admin").data("login");if(i?($(".user .text").html($("#admin > span").text()),$(".login, .register, #login, #register, .logout, .settings").hide()):$(".login, .register, .user, .clear, .logout, .settings, #logout, #settings").hide(),1===$("#dynamic").length)return $(window).scroll(function(){$(window).scrollTop()>MetroHot.headerH?$("#goTop").fadeIn("slow"):$("#goTop").hide()}).click(function(e){"title"!==e.target.className&&"title"!==e.target.parentElement.className&&$(".navigation").slideUp()}),void $("body").css("min-height","inherit");$("#login, .login").attr("href",$("#admin > a").first().attr("href")),$(window).scroll(function(){var e=$(window).scrollTop();e>MetroHot.headerH?i?$(".logout, .settings").show():$(".login, .register").show():i?$(".logout, .settings").hide():$(".login, .register").hide(),e>MetroHot.headerH?$("#goTop").fadeIn("slow"):$("#goTop").hide(),$(".side > div").height()<620?e>MetroHot.headerH?$(".side > div").css({position:"fixed",top:"0px",width:"240px"}):$(".side > div").css("position","static"):e+$(window).height()>$(".side > div").height()+MetroHot.headerH?$(".side > div").css({position:"fixed",top:"auto",bottom:"10px",width:"240px"}):$(".side > div").css("position","static")}).click(function(e){"title"!==e.target.className&&"title"!==e.target.parentElement.className&&$(".navigation").slideUp()}).resize(function(){var e=window.innerWidth,t="large";460<e&&e<=860?t="mid":window<460&&(t="small"),MetroHot.responsiveType!==t&&($(window).scroll(),MetroHot.responsiveType)}),$(window).scroll()},loadImg:function(e){e.style.marginTop=(220-e.height)/2+"px"},share:function(){var e=$(".share .text"),t=e.find(".icon-wechat"),i=t.data("url"),o=t.data("avatar"),a=encodeURIComponent(t.data("title")+" - "+t.data("blogtitle")),n=encodeURIComponent(i),r={};r.weibo="http://v.t.sina.com.cn/share/share.php?title="+a+"&url="+n+"&pic="+o,r.qqz="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+n+"&sharesource=qzone&title="+a+"&pics="+o,r.twitter="https://twitter.com/intent/tweet?status="+a+" "+n,e.find("span").click(function(){var e=$(this).data("type");if(e)return"wechat"===e?(0===t.find("canvas").length?$.ajax({method:"GET",url:latkeConfig.staticServePath+"/js/lib/jquery.qrcode.min.js",dataType:"script",cache:!0,success:function(){t.qrcode({width:111,height:111,text:i})}}):t.find("canvas").slideToggle(),!1):void window.open(r[e],"_blank","top=100,left=200,width=648,height=618")})},loadRandomArticles:function(){$.ajax({url:latkeConfig.servePath+"/articles/random",type:"POST",success:function(e,t){var i=e.randomArticles;if(i&&0!==i.length){for(var o="",a=0;a<i.length&&a<5;a++){var n=i[a],r=n.articleTitle;o+="<li><a rel='nofollow' title='"+r+"' href='"+latkeConfig.servePath+n.articlePermalink+"'>"+r+"</a></li>"}var l="<ul>"+o+"</ul>";$("#randomArticles .text").append(l)}else $("#randomArticles").remove()}})},loadRelevantArticles:function(e){$.ajax({url:latkeConfig.servePath+"/article/id/"+e+"/relevant/articles",type:"GET",success:function(e,t){var i=e.relevantArticles;if(i&&0!==i.length){for(var o="",a=0;a<i.length&&a<5;a++){var n=i[a],r=n.articleTitle;o+="<li><a rel='nofollow' title='"+r+"' href='"+latkeConfig.servePath+n.articlePermalink+"'>"+r+"</a></li>"}var l="<ul>"+o+"</ul>";$("#relevantArticles .text").append(l)}else $("#relevantArticles").remove()},error:function(){$("#relevantArticles").remove()}})},loadExternalRelevantArticles:function(e){var t=this.tips;try{$.ajax({url:"http://rhythm.b3log.org:80/get-articles-by-tags.do?tags="+e+"&blogHost="+t.blogHost+"&paginationPageSize="+t.externalRelevantArticlesDisplayCount,type:"GET",cache:!0,dataType:"jsonp",error:function(){$("#externalRelevantArticles").remove()},success:function(e,t){var i=e.articles;if(i&&0!==i.length){for(var o="",a=0;a<i.length&&a<5;a++){var n=i[a],r=n.articleTitle;o+="<li><a rel='nofollow' title='"+r+"' target='_blank' href='"+n.articlePermalink+"'>"+r+"</a></li>"}var l="<ul>"+o+"</ul>";$("#externalRelevantArticles .text").append(l)}else $("#externalRelevantArticles").remove()}})}catch(e){$("#externalRelevantArticles").remove()}},goCmt:function(){$("html, body").animate({scrollTop:$(".comment-disabled").get(0).offsetTop})}};MetroHot.init(),Util.killIE(),0<$(".article-header").length&&MetroHot.share();

View File

@@ -42,10 +42,7 @@ replyLabel=Reply
commentURLLabel=URL
nameTooLongLabel=Sorry, your username must be between 2 and 20 characters long!
mailCannotEmptyLabel=Mail is empty!
mailInvalidLabel=Mail is invalid!
commentContentCannotEmptyLabel=Sorry, your content must be between 2 and 500 characters long!
captchaCannotEmptyLabel=Captcha is empty!
loadingLabel=loading....
externalRelevantArticlesLabel=External Relevant Articles:
b3logLabel=<span style="color: orange;">B</span><span style="color: blue;"><sup>3</sup></span><span style="color: green;">L</span><span style="color: red;">O</span><span style="color: blue;">G</span>

View File

@@ -21,8 +21,8 @@
<#if article.commentable>
<div class="comment-disabled">
<h3>${postCommentsLabel}</h3>
<textarea rows="3" style="margin-bottom: 20px;width: 100%;box-sizing: border-box" placeholder="${postCommentsLabel}" id="comment"></textarea>
</div>
<textarea rows="3" style="margin-bottom: 20px;width: 80%" placeholder="${postCommentsLabel}" id="comment"></textarea>
<#else>
<div class="comment-disabled">
<h3>${notAllowCommentLabel}</h3>

File diff suppressed because one or more lines are too long

17
mobile/js/l10n.min.js vendored
View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
function convertEntities(t){var e,n;if(e=function(t){if(/&[^;]+;/.test(t)){var e=document.createElement("div");return e.innerHTML=t,e.firstChild?e.firstChild.nodeValue:t}return t},"string"==typeof t)return e(t);if("object"==typeof t)for(n in t)"string"==typeof t[n]&&(t[n]=e(t[n]));return t}

View File

@@ -31,7 +31,6 @@ commentEmotions1Label=Emotions:
commentEmotionsLabel=Emotions
commentName1Label=Name:
commentNameLabel=Name
commentEmail1Label=Email:
commentURL1Label=URL:
commentURLLabel=URL
commentContent1Label=Content:

View File

@@ -33,7 +33,6 @@ commentEmotions1Label=\u8868\u60C5\uFF1A
commentEmotionsLabel=\u8868\u60C5
commentName1Label=\u59D3\u540D\uFF1A
commentNameLabel=\u59D3\u540D
commentEmail1Label=\u90AE\u7BB1\uFF1A
commentURL1Label=URL\uFF1A
commentURLLabel=URL
commentContent1Label=\u8BC4\u8BBA\u5185\u5BB9\uFF1A

View File

@@ -32,7 +32,7 @@
</#list>
</ol>
<#if article.commentable>
<div id="textinputwrap" style="margin-left: 10px">
<div id="textinputwrap" style="margin: 0 10px">
<div id="refresher" style="display:none;">
<img src="${staticServePath}/skins/${skinDirName}/images/good.png" alt="checkmark" />
<h3>${commentSuccess}</h3>

View File

@@ -54,7 +54,6 @@ a {
input, textarea {
font: 12px Helvetica;
max-width: 96%;
}
img {
@@ -1851,7 +1850,8 @@ textarea#comment, textarea#commentReply {
font-size: 13px;
color: #444;
height: 110px;
width: 98%;
box-sizing: border-box;
width: 100%;
padding: 3px;
box-shadow: rgba(255,255,255,.8) 0px 1px 0px;
}
@@ -2369,16 +2369,6 @@ p.thdrpy, p.thdmang {
/* @end */
/* @group Comment Reply Notification */
#commentForm input#comment_mail_notify {
margin-right: 5px;
margin-top: 15px;
margin-bottom: 5px;
}
/* @end */
/* @group Share and Follow */
.footer #follow.right {

File diff suppressed because one or more lines are too long

View File

@@ -26,8 +26,11 @@
Powered by <a href="https://b3log.org" target="_blank">B3log 开源</a> •
<a href="https://solo.b3log.org" target="_blank">Solo</a> ${version}
<div class="fn-right">Theme <a rel="friend" href="https://github.com/b3log/solo-skins" target="_blank">next</a>
by <a href="http://iissnan.com/" target="_blank">IIssNan</a> & <a href="http://vanessa.b3log.org" target="_blank">Vanessa</a>.</div>
<div class="fn-right">
Theme <a rel="friend" href="https://github.com/b3log/solo-skins" target="_blank">next</a>
<sup>[<a href="https://github.com/iissnan/hexo-theme-next" target="_blank">ref</a>]</sup>
by <a href="http://iissnan.com/" target="_blank">IIssNan</a> & <a href="http://vanessa.b3log.org" target="_blank">Vanessa</a>
</div>
</div>
</footer>
<div class="back-to-top" onclick="Util.goTop()"></div>
@@ -52,5 +55,6 @@
Util.initSW();
Util.parseMarkdown();
Util.killIE(8);
Util.previewImg()
</script>
${plugins}

View File

@@ -38,32 +38,11 @@
<ul class="menu">
<#list pageNavigations as page>
<li class="menu-item">
<#if page.pageIcon != ''><img class="page-icon" src="${page.pageIcon}"></#if>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}" rel="section">
${page.pageTitle}
</a>
</li>
</#list>
<li class="menu-item">
<a href="${servePath}/dynamic.html" rel="section">
${dynamicLabel}
</a>
</li>
<li class="menu-item">
<a href="${servePath}/tags.html" rel="section">
${allTagsLabel}
</a>
</li>
<li class="menu-item">
<a href="${servePath}/archives.html">
${archiveLabel}
</a>
</li>
<li class="menu-item">
<a rel="alternate" href="${servePath}/rss.xml" rel="section">
RSS
</a>
</li>
</#list>
</ul>
<div class="site-search">

View File

@@ -89,10 +89,6 @@ var NexT = {
'right': '0'
});
}, 500);
$('body').on('click', '.content-reset img', function () {
window.open(this.src);
});
});
},
initArticle: function () {

19
next/js/next.min.js vendored
View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var NexT={init:function(){$(".sidebar-toggle").click(function(){var i=$(".sidebar");$(this).hasClass("sidebar-active")?($(this).removeClass("sidebar-active"),$("body").animate({"padding-right":0}),i.animate({right:-320}),i.find("section").css("opacity",0)):($(this).addClass("sidebar-active"),$("body").animate({"padding-right":320}),i.animate({right:0},function(){i.find("section:first").animate({opacity:1})}))}),$(".site-nav-toggle").click(function(){$(".site-nav").slideToggle()}),$(document).ready(function(){setTimeout(function(){$(".logo-wrap").css("opacity",1),$(".logo-line-before i").animate({left:"0"},function(){$(".site-title").css("opacity",1).animate({top:0},function(){$(".menu").css("opacity",1).animate({"margin-top":"15px"}),$(".main").css("opacity",1).animate({top:"0"},function(){0<$(".b3-solo-list li").length&&1e3<$(window).width()&&$(".sidebar-toggle").click()})})}),$(".logo-line-after i").animate({right:"0"})},500),$("body").on("click",".content-reset img",function(){window.open(this.src)})})},initArticle:function(){if(0<$(".b3-solo-list li").length&&1e3<$(window).width()){$(".sidebar-toggle").addClass("has-toc");var i='<ul><li class="current" data-tab="toc">'+Label.tocLabel+'</li><li data-tab="site">'+Label.siteViewLabel+"</li></ul><section></section>";$(".sidebar").prepend(i);var t=$(".sidebar section:first").html($(".b3-solo-list")),e=$(".sidebar section:last");t.height($(window).height()-90),$(".sidebar > ul > li").click(function(){"toc"===$(this).data("tab")?e.animate({opacity:"0",top:"-50px"},300,function(){t.show().css("top","-50px"),t.animate({opacity:"1",top:"0"},300)}):t.animate({opacity:"0",top:"-50px"},300,function(){t.hide().css("top","-50px"),e.animate({opacity:"1",top:"0"},300)}),$(".sidebar > ul > li").removeClass("current"),$(this).addClass("current")}),this.initToc()}},initToc:function(){var s=$(".content-reset [id^=b3_solo_h]"),c=$(".b3-solo-list");$(window).scroll(function(i){if(0===$(".b3-solo-list li").length)return!1;var t=[];s.each(function(i){t.push({id:this.id,offsetTop:this.offsetTop})});for(var e=$(window).scrollTop(),a=0,o=t.length;a<o;a++)if(e<t[a].offsetTop+200){c.find("li").removeClass("current");var n=0<a?a-1:0;c.find('a[href="#'+t[n].id+'"]').parent().addClass("current");break}e>=t[t.length-1].offsetTop+200&&(c.find("li").removeClass("current"),c.find("li:last").addClass("current"))}),$(window).scroll()}};NexT.init();
var NexT={init:function(){$(".sidebar-toggle").click(function(){var i=$(".sidebar");$(this).hasClass("sidebar-active")?($(this).removeClass("sidebar-active"),$("body").animate({"padding-right":0}),i.animate({right:-320}),i.find("section").css("opacity",0)):($(this).addClass("sidebar-active"),$("body").animate({"padding-right":320}),i.animate({right:0},function(){i.find("section:first").animate({opacity:1})}))}),$(".site-nav-toggle").click(function(){$(".site-nav").slideToggle()}),$(document).ready(function(){setTimeout(function(){$(".logo-wrap").css("opacity",1),$(".logo-line-before i").animate({left:"0"},function(){$(".site-title").css("opacity",1).animate({top:0},function(){$(".menu").css("opacity",1).animate({"margin-top":"15px"}),$(".main").css("opacity",1).animate({top:"0"},function(){0<$(".b3-solo-list li").length&&1e3<$(window).width()&&$(".sidebar-toggle").click()})})}),$(".logo-line-after i").animate({right:"0"})},500)})},initArticle:function(){if(0<$(".b3-solo-list li").length&&1e3<$(window).width()){$(".sidebar-toggle").addClass("has-toc");var i='<ul><li class="current" data-tab="toc">'+Label.tocLabel+'</li><li data-tab="site">'+Label.siteViewLabel+"</li></ul><section></section>";$(".sidebar").prepend(i);var t=$(".sidebar section:first").html($(".b3-solo-list")),a=$(".sidebar section:last");t.height($(window).height()-90),$(".sidebar > ul > li").click(function(){"toc"===$(this).data("tab")?a.animate({opacity:"0",top:"-50px"},300,function(){t.show().css("top","-50px"),t.animate({opacity:"1",top:"0"},300)}):t.animate({opacity:"0",top:"-50px"},300,function(){t.hide().css("top","-50px"),a.animate({opacity:"1",top:"0"},300)}),$(".sidebar > ul > li").removeClass("current"),$(this).addClass("current")}),this.initToc()}},initToc:function(){var s=$(".content-reset [id^=b3_solo_h]"),l=$(".b3-solo-list");$(window).scroll(function(i){if(0===$(".b3-solo-list li").length)return!1;var t=[];s.each(function(i){t.push({id:this.id,offsetTop:this.offsetTop})});for(var a=$(window).scrollTop(),e=0,o=t.length;e<o;e++)if(a<t[e].offsetTop+200){l.find("li").removeClass("current");var n=0<e?e-1:0;l.find('a[href="#'+t[n].id+'"]').parent().addClass("current");break}a>=t[t.length-1].offsetTop+200&&(l.find("li").removeClass("current"),l.find("li:last").addClass("current"))}),$(window).scroll()}};NexT.init();

View File

@@ -39,7 +39,6 @@ commentEmotions1Label=Emotions:
commentEmotionsLabel=Emotions
commentName1Label=Name:
commentNameLabel=Name
commentEmail1Label=Email:
commentURL1Label=URL:
commentURLLabel=URL
commentContent1Label=Content:

View File

@@ -47,12 +47,10 @@ commentEmotions1Label=\u8868\u60C5\uFF1A
commentEmotionsLabel=\u8868\u60C5
commentName1Label=\u59D3\u540D\uFF1A
commentNameLabel=\u59D3\u540D
commentEmail1Label=\u90AE\u7BB1\uFF1A
commentURL1Label=URL\uFF1A
commentURLLabel=URL
commentContent1Label=\u8BC4\u8BBA\u5185\u5BB9\uFF1A
getArticleLabel=\u83B7\u53D6\u65E5\u5FD7
blogArticleImportLabel=\u65E5\u5FD7\u5BFC\u5165
blogSyncMgmtLabel=\u535A\u5BA2\u540C\u6B65\u7BA1\u7406
syncMgmtLabel=\u540C\u6B65\u7BA1\u7406\u535A\u5BA2
syncPostLabel=\u540C\u6B65\u53D1\u5E03
@@ -82,7 +80,6 @@ dateArticlesLabel=\u5B58\u6863\u65E5\u5FD7\u5217\u8868
authorArticlesLabel=\u4F5C\u8005\u65E5\u5FD7\u5217\u8868
indexArticleLabel=\u9996\u9875\u65E5\u5FD7\u5217\u8868
####
blogArticleEmptyLabel=\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u5165\u7684\u65E5\u5FD7
tagsEmptyLabel=\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A\uFF01
####
confirmRemoveLabel=\u786E\u5B9A\u5220\u9664\uFF1F

View File

@@ -53,9 +53,17 @@
<div class="feed-link">
<a href="${servePath}/rss.xml" rel="alternate">
<i class="icon-rss"></i>
RSS
</a>
<a href="${servePath}/dynamic.html" rel="section">
${dynamicLabel}
</a>
<a href="${servePath}/tags.html" rel="section">
${allTagsLabel}
</a>
<a href="${servePath}/archives.html">
${archiveLabel}
</a>
</div>
<div class="links-of-author">

File diff suppressed because one or more lines are too long

View File

@@ -28,7 +28,9 @@
Powered by <a href="https://b3log.org" target="_blank">B3log</a> 开源
<div class="fn__none"></div>
&nbsp; &heartsuit; &nbsp;
Theme <a rel="friend" href="https://github.com/b3log/solo-skins" target="_blank">nijigen</a> by <a href="http://vanessa.b3log.org" target="_blank">Vanessa</a>
Theme <a rel="friend" href="https://github.com/b3log/solo-skins" target="_blank">nijigen</a>
<sup>[<a href="https://github.com/ZEROKISEKI/hexo-theme-gal" target="_blank">ref</a>]</sup>
by <a href="http://vanessa.b3log.org" target="_blank">Vanessa</a>
</footer>
<div class="icon-up" onclick="Util.goTop()"></div>
@@ -51,5 +53,6 @@
Util.initSW();
Util.parseMarkdown();
Util.killIE(8)
Util.previewImg()
</script>
${plugins}

View File

@@ -87,10 +87,6 @@ var Skin = {
Skin._initAnimation()
$('body').on('click', '.content-reset img', function () {
window.open(this.src)
})
this._initCommon($('.icon__up'))
$('.header__nav a, .header__m a').each(function () {

View File

@@ -1,18 +1 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var Skin={_initCommon:function(e){$(window).scroll(function(){125<$(window).scrollTop()?e.show():e.hide(),0<$(".side .b3-solo-list").length&&(50<$(window).scrollTop()?$(".side").css("position","fixed"):$(".side").css("position","initial"))})},_initAnimation:function(){if(!("IntersectionObserver"in window))return $(".item").addClass("item--active"),!1;window.imageIntersectionObserver?window.imageIntersectionObserver.disconnect():window.imageIntersectionObserver=new IntersectionObserver(function(e){e.forEach(function(e){if(void 0===e.isIntersecting?0!==e.intersectionRatio:e.isIntersecting)$(e.target).addClass("item--active");else{if(1===$(e.target).closest(".side").length||1===$(e.target).closest("#articlePage").length||768<$(e.target).outerHeight())return;$(e.target).removeClass("item--active")}})}),$(".item").each(function(){window.imageIntersectionObserver.observe(this)})},init:function(){Util.initPjax(function(){Skin._initAnimation(),0===$("#articlePage").length&&$(".b3-solo-list").closest(".module").remove()}),Skin._initAnimation(),$("body").on("click",".content-reset img",function(){window.open(this.src)}),this._initCommon($(".icon__up")),$(".header__nav a, .header__m a").each(function(){this.href===location.href&&(this.className="current")}).click(function(){$(".header__nav a, .header__m a").removeClass("current"),this.className="current",$(".header__m .module__list").hide()}),$(".header__logo").click(function(){$(".header__nav a, .header__m a").removeClass("current")})},_initArticleCommon:function(){if(768<$(window).width()){if(0===$("#articlePage .b3-solo-list li").length)return $(".side .b3-solo-list").closest(".module").remove(),void $(".side").css({height:"auto",position:"initial"});$("#articlePage").width($(".main").width()-310),0===$(".side .b3-solo-list").length&&$(".side").prepend('<div class="module"><div class="module__list"></div></div>').css({right:($(window).width()-$(".main").width())/2,position:"fixed",overflow:"auto",height:$(window).height()-30,top:30}),$(".side .module:eq(0) .module__list").html($(".b3-solo-list")),$(window).scroll(),$(".side").scrollTop(0)}else{if(0===$("#articlePage .b3-solo-list li").length)return void $(".header__m .icon__list").hide().next().hide();$(".header__m .icon__list").show().next().html($(".b3-solo-list")),$(".b3-solo-list a").click(function(){$(this).closest(".module__list").hide()})}},initArticle:function(){this._initArticleCommon(),setTimeout(function(){0===$("#externalRelevantArticlesWrap li").length&&($("#externalRelevantArticlesWrap").next().remove(),$("#externalRelevantArticlesWrap").remove()),0===$("#relevantArticlesWrap li").length&&($("#relevantArticlesWrap").prev().remove(),$("#relevantArticlesWrap").remove()),0===$("#randomArticlesWrap li").length&&($("#randomArticlesWrap").prev().remove(),$("#randomArticlesWrap").remove())},1e3)}};Skin.init();
var Skin={_initCommon:function(e){$(window).scroll(function(){125<$(window).scrollTop()?e.show():e.hide(),0<$(".side .b3-solo-list").length&&(50<$(window).scrollTop()?$(".side").css("position","fixed"):$(".side").css("position","initial"))})},_initAnimation:function(){if(!("IntersectionObserver"in window))return $(".item").addClass("item--active"),!1;window.imageIntersectionObserver?window.imageIntersectionObserver.disconnect():window.imageIntersectionObserver=new IntersectionObserver(function(e){e.forEach(function(e){if(void 0===e.isIntersecting?0!==e.intersectionRatio:e.isIntersecting)$(e.target).addClass("item--active");else{if(1===$(e.target).closest(".side").length||1===$(e.target).closest("#articlePage").length||768<$(e.target).outerHeight())return;$(e.target).removeClass("item--active")}})}),$(".item").each(function(){window.imageIntersectionObserver.observe(this)})},init:function(){Util.initPjax(function(){Skin._initAnimation(),0===$("#articlePage").length&&$(".b3-solo-list").closest(".module").remove()}),Skin._initAnimation(),this._initCommon($(".icon__up")),$(".header__nav a, .header__m a").each(function(){this.href===location.href&&(this.className="current")}).click(function(){$(".header__nav a, .header__m a").removeClass("current"),this.className="current",$(".header__m .module__list").hide()}),$(".header__logo").click(function(){$(".header__nav a, .header__m a").removeClass("current")})},_initArticleCommon:function(){if(768<$(window).width()){if(0===$("#articlePage .b3-solo-list li").length)return $(".side .b3-solo-list").closest(".module").remove(),void $(".side").css({height:"auto",position:"initial"});$("#articlePage").width($(".main").width()-310),0===$(".side .b3-solo-list").length&&$(".side").prepend('<div class="module"><div class="module__list"></div></div>').css({right:($(window).width()-$(".main").width())/2,position:"fixed",overflow:"auto",height:$(window).height()-30,top:30}),$(".side .module:eq(0) .module__list").html($(".b3-solo-list")),$(window).scroll(),$(".side").scrollTop(0)}else{if(0===$("#articlePage .b3-solo-list li").length)return void $(".header__m .icon__list").hide().next().hide();$(".header__m .icon__list").show().next().html($(".b3-solo-list")),$(".b3-solo-list a").click(function(){$(this).closest(".module__list").hide()})}},initArticle:function(){this._initArticleCommon(),setTimeout(function(){0===$("#externalRelevantArticlesWrap li").length&&($("#externalRelevantArticlesWrap").next().remove(),$("#externalRelevantArticlesWrap").remove()),0===$("#relevantArticlesWrap li").length&&($("#relevantArticlesWrap").prev().remove(),$("#relevantArticlesWrap").remove()),0===$("#randomArticlesWrap li").length&&($("#randomArticlesWrap").prev().remove(),$("#randomArticlesWrap").remove())},1e3)}};Skin.init();

Some files were not shown because too many files have changed in this diff Show More