Van
2019-02-21 18:16:59 +08:00
parent d7e9db917c
commit 755eb33471
134 changed files with 1846 additions and 1598 deletions

View File

@@ -64,7 +64,9 @@
</span>
</div>
</div>
<div class="content-reset">
${article.articleContent}
</div>
<div class="article-tags">
<li class="icon-tags"></li>
${tag1Label}

View File

@@ -0,0 +1,18 @@
/**
* 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/>.
*/
.content-reset{word-wrap:break-word;overflow:auto;line-height:1.65;font-size:16px;word-break:break-word}.content-reset ul,.content-reset ol{padding-left:2em;margin-top:0;margin-bottom:16px}.content-reset li{margin-top:0.25em}.content-reset img{cursor:zoom-in}.content-reset img.emoji{cursor:auto;max-width:18px}.content-reset h1,.content-reset h2,.content-reset h3,.content-reset h4,.content-reset h5,.content-reset h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.content-reset h1{padding-bottom:0.3em;font-size:1.7em;border-bottom:1px solid #eee}.content-reset h2{padding-bottom:0.3em;font-size:1.5em;border-bottom:1px solid #eee}.content-reset h3{font-size:1.25em}.content-reset h4{font-size:1em}.content-reset h5{font-size:0.875em}.content-reset h6{font-size:0.85em}.content-reset hr{height:0.15em;padding:0;margin:24px 0;background-color:#e7e7e7;border:0}.content-reset p{margin-top:0;margin-bottom:16px}.content-reset blockquote{padding:0 1em;color:#777;border-left:0.25em solid #ddd;margin-bottom:16px}.content-reset blockquote p{margin:0}.content-reset ins>iframe{border:0}.content-reset iframe{border:1px solid rgba(0,0,0,0.38)}.content-reset table{width:100%;border:1px solid #dedede;margin:15px auto;border-collapse:collapse;empty-cells:show}.content-reset thead{text-align:center}.content-reset td,.content-reset th{height:35px;border:1px solid #dedede;padding:0 10px}.content-reset th{font-weight:bold;text-align:center !important;background:rgba(158,188,226,0.2)}.content-reset tbody tr:nth-child(2n){background:rgba(158,188,226,0.12)}.content-reset tr:hover{background:#efefef}.content-reset code{padding:0.2em 0.4em;margin:0;font-size:85%;background-color:rgba(252,41,41,0.12);border-radius:3px;word-break:break-word}.content-reset pre{position:relative}.content-reset pre textarea{position:absolute;top:-100000px}.content-reset pre>code{padding:0.5em;background-color:rgba(0,0,0,0.04);background-size:20px 20px;border-radius:5px;display:block}.content-reset kbd{display:inline-block;padding:3px 5px;font:11px Consolas, "Liberation Mono", Menlo, Courier, monospace;line-height:10px;color:#555;vertical-align:middle;background-color:#fcfcfc;border:solid 1px rgba(0,0,0,0.38);border-bottom-color:#bbb;border-radius:3px;box-shadow:inset 0 -1px 0 #bbb}.content-reset__task,.content-reset .task-list-item{list-style:none;margin-left:-1em}.img-preview{width:100%;height:100%;top:0;z-index:211;overflow:auto;cursor:zoom-out;transition:background-color .2s ease-in-out}.img-preview img{max-width:inherit;transition:transform .3s ease-in-out}body.top-navbar{padding-top:60px}a:hover{text-decoration:none;color:#00B}.page-header a{color:#000000}.page-header a:hover{color:#9A9A9A}.page-header-m{margin:20px 0px 5px}.page-header-bottom{margin:0px 0px 5px;font-size:12px;color:#585858}.article-tags{color:#676767;font-size:12px}.article-tags a{text-decoration:none}#footer{margin-top:20px}#footer .container{padding:10px 15px 10px}.pagination-btn{margin-top:20px}#emotions span:hover{transform:scale(1.2) rotate(360deg);-webkit-transform:scale(1.2) rotate(360deg);-moz-transform:scale(1.2) rotate(360deg)}.form-actions-m{padding-left:0px !important;padding-bottom:0px;margin-bottom:0px;background-color:#f1f1f1}.article-relative{background-color:#FCFCFC;box-shadow:0 0 2px #D5D5D5;padding:5px 0 5px 20px}.article-relative:hover{background-color:#fff;box-shadow:0 0 4px #D5D5D5}.article-relative ul{list-style:none}.article-comments{margin-bottom:20px;position:relative}.comment-body-ref{position:absolute;left:86px;width:80%}.bs-docs-example{padding:20px;*padding-top:0px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;margin-bottom:20px}.bs-docs-example-child{padding:5px;*padding-top:0px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}#tags.other-main{list-style:none}#tags li{float:left;height:38px}#tags a{margin:3px 6px;padding:3px 12px;background-color:#FCFCFC;box-shadow:0 0 2px #D5D5D5;float:left}#tags a:hover{text-shadow:0 0 2px;text-decoration:none;box-shadow:0 0 4px #D5D5D5;color:#769abb}.tags1,.tags1:visited{font-size:12px;color:#a7a7a7}.tags2,.tags2:visited{font-size:14px;color:#808080}.tags3,.tags3:visited{font-size:16px;color:#595959}.tags4,.tags4:visited{font-size:18px;color:#323232}.tags5,.tags5:visited{font-size:20px;color:#0a0a0a}

View File

@@ -15,6 +15,8 @@
* 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/>.
*/
@import "../../../scss/reset-content";
body.top-navbar {
padding-top: 60px;
}

View File

@@ -1 +0,0 @@
#tags.other-main,.article-relative ul{list-style:none}#tags a:hover,.article-tags a,a:hover{text-decoration:none}body.top-navbar{padding-top:60px}a:hover{color:#00B}.page-header a{color:#000}.page-header a:hover{color:#9A9A9A}.page-header-m{margin:20px 0 5px}.page-header-bottom{margin:0 0 5px;font-size:12px;color:#585858}#footer,.pagination-btn{margin-top:20px}.article-tags{color:#676767;font-size:12px}#footer .container{padding:10px 15px}#emotions span:hover{transform:scale(1.2) rotate(360deg);-webkit-transform:scale(1.2) rotate(360deg);-moz-transform:scale(1.2) rotate(360deg)}.form-actions-m{padding-left:0!important;padding-bottom:0;margin-bottom:0;background-color:#f1f1f1}.article-relative{background-color:#FCFCFC;box-shadow:0 0 2px #D5D5D5;padding:5px 0 5px 20px}.article-relative:hover{background-color:#fff;box-shadow:0 0 4px #D5D5D5}.article-comments{margin-bottom:20px;position:relative}.comment-body-ref{position:absolute;left:86px;width:80%}.bs-docs-example{padding:20px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;margin-bottom:20px}.bs-docs-example-child{padding:5px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}#tags li{float:left;height:38px}#tags a{margin:3px 6px;padding:3px 12px;background-color:#FCFCFC;box-shadow:0 0 2px #D5D5D5;float:left}#tags a:hover{text-shadow:0 0 2px;box-shadow:0 0 4px #D5D5D5;color:#769abb}.tags1,.tags1:visited{font-size:12px;color:#a7a7a7}.tags2,.tags2:visited{font-size:14px;color:grey}.tags3,.tags3:visited{font-size:16px;color:#595959}.tags4,.tags4:visited{font-size:18px;color:#323232}.tags5,.tags5:visited{font-size:20px;color:#0a0a0a}

View File

@@ -1 +1,18 @@
/*
* 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 bootstyle={getCurrentPage:function(){var a=$(".pagination-btn");0<a.length&&(window.currentPage=a.data("page"))},setNavCurrent:function(){$(".nav li a").each(function(){var a=$(this),t=latkeConfig.servePath+location.pathname,e=latkeConfig.servePath+location.pathname.substr(0,location.pathname.length-1);a.attr("href")===t||a.attr("href")===e?a.parent().addClass("active"):/\/[0-9]+$/.test(location.pathname)&&($(".nav li")[0].className="current")})},setCommentEmotions:function(){$(".comments").each(function(){$(this).html(Util.replaceEmString($(this).html()))})},init:function(){this.getCurrentPage(),this.setNavCurrent(),this.setCommentEmotions()}};$(function(){bootstyle.init()});var getNextPage=function(){var c=$(".pagination-btn");currentPage+=1;var a="/articles/";if(-1<location.pathname.indexOf("tags"))a="/articles/tags/"+location.pathname.split("/tags/")[1].split("/")[0]+"/";else if(-1<location.pathname.indexOf("archives")){var t=location.pathname.split("/archives/")[1].split("/");a="/articles/archives/"+t[0]+"/"+t[1]+"/"}var h="";$.ajax({url:latkeConfig.servePath+a+currentPage,type:"GET",beforeSend:function(){h=c.text(),c.css("background"),c.text(" ").css("background","url("+latkeConfig.staticServePath+"/skins/ease/images/ajax-loader.gif) no-repeat scroll center center #fefefe")},success:function(a,t){for(var e=a.rslts.pagination,s=0;s<a.rslts.articles.length;s++){var i=a.rslts.articles[s],n=new Array;n.push('<div class="page-header page-header-m">'),n.push('<h3><a href="'+i.articlePermalink+'">'+i.articleTitle+"</a></h3>"),n.push("</div>"),n.push('<div class="page-header-bottom"><span>'),n.push('<li class="icon-time"></li>'),i.hasUpdated?n.push(Util.toDate(i.articleUpdateDate," yyyy-MM-dd HH:mm ")):n.push(Util.toDate(i.articleCreateDate," yyyy-MM-dd HH:mm ")),n.push('</span><span><li class="icon-user"></li>'),n.push('<a href="/authors/'+i.authorId+'" title="'+Label.authorLabel+": "+i.authorName+'"> '),n.push(i.authorName),n.push(" </a>"),n.push('</span><div class="pull-right"><span>'),n.push('<li class="icon-eye-open"></li>'),n.push('<a href="'+i.articlePermalink+'"> '),n.push(i.articleViewCount+" "+Label.viewLabel),n.push(" </a>"),n.push('</span><span><li class="icon-comment"></li>'),n.push('<a href="'+i.articlePermalink+'#comments"> '+i.articleCommentCount+" "+Label.commentLabel+" </a>"),n.push("</span></div></div>"),n.push(i.articleAbstract),n.push('<div class="article-tags">'),n.push('<li class="icon-tags"></li>'+Label.tag1Label);for(var r=i.articleTags.split(","),l=0;l<r.length;l++){var o=r[l];n.push("<span>"),n.push('<a href="'+latkeConfig.servePath+"/tags/"+o+'">'),n.push(o),n.push("</a></span>")}n.push("</div>"),c.before(n.join(""))}e.paginationPageCount===currentPage?c.remove():c.text(h).css("background","")}})};

View File

@@ -41,13 +41,15 @@
onmouseout="page.hideComment('${comment.commentOriginalCommentId}')">${comment.commentOriginalCommentName}</a>
</#if>
<span class="pull-right" style="font-size: 12px;font-weight: normal;color: #676767;">
<i class="icon-time"></i>
<i class="icon-time"></i>
${comment.commentDate?string("yyyy-MM-dd HH:mm:ss")}
<i class="icon-comment"></i>
<a rel="nofollow" href="javascript:page.toggleEditor('${comment.oId}', '${comment.commentName}');">${replyLabel}</a>
</span>
</h4>
${comment.commentContent}
<div class="content-reset">
${comment.commentContent}
</div>
<!-- Nested media object -->
<div class="media" ref="#media_${comment.commentOriginalCommentId}">
</div>

View File

@@ -24,7 +24,7 @@
<meta http-equiv="Window-target" content="_top" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/skins/${skinDirName}/bootstrap/css/bootstrap${miniPostfix}.css?${staticResourceVersion}" charset="utf-8" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/skins/${skinDirName}/bootstrap/css/bootstrap-responsive${miniPostfix}.css?${staticResourceVersion}" charset="utf-8" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/skins/${skinDirName}/css/${skinDirName}${miniPostfix}.css?${staticResourceVersion}" charset="utf-8" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/skins/${skinDirName}/css/base.css?${staticResourceVersion}" charset="utf-8" />
<link href="${servePath}/blog-articles-feed.do" title="ATOM" type="application/atom+xml" rel="alternate" />
<link rel="icon" type="image/png" href="${staticServePath}/favicon.png" />
${htmlHead}

View File

@@ -33,7 +33,7 @@
<#include "header.ftl">
<div class="main">
<div class="wrapper">
<div class="article-body article">
<div class="content-reset article">
${page.pageContent}
</div>
<@comments commentList=pageComments article=page></@comments>