mirror of https://github.com/halo-dev/halo
👽 anatole主题优化
parent
cfdaa96a77
commit
a4d5d5252c
|
@ -41,6 +41,9 @@ public class ArticleTagDirective implements TemplateDirectiveModel {
|
|||
case "archivesLess":
|
||||
environment.setVariable("archivesLess", builder.build().wrap(postService.findPostGroupByYear()));
|
||||
break;
|
||||
case "hotPosts":
|
||||
environment.setVariable("hotPosts", builder.build().wrap(postService.hotPosts()));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -180,4 +180,12 @@ public interface PostRepository extends JpaRepository<Post, Long> {
|
|||
*/
|
||||
@Query(value = "select * from halo_post where post_status = 0 and post_type='post' and post_title like '%=:keyword%' or post_content like '%=:keyword%'", nativeQuery = true)
|
||||
Page<Post> findPostByPostTitleLikeOrPostContentLikeAndPostTypeAndPostStatus(String keyword, Pageable pageable);
|
||||
|
||||
/**
|
||||
* 按热度从大到小排序
|
||||
*
|
||||
* @param postStatus 文章状态
|
||||
* @return List<Post>
|
||||
*/
|
||||
List<Post> findPostsByPostTypeOrderByPostViewsDesc(String postStatus);
|
||||
}
|
||||
|
|
|
@ -202,6 +202,13 @@ public interface PostService {
|
|||
*/
|
||||
Page<Post> searchByKeywords(String keyword,Pageable pageable);
|
||||
|
||||
/**
|
||||
* 热门文章
|
||||
*
|
||||
* @return List<Post>
|
||||
*/
|
||||
List<Post> hotPosts();
|
||||
|
||||
/**
|
||||
* 生成rss
|
||||
*
|
||||
|
|
|
@ -315,6 +315,16 @@ public class PostServiceImpl implements PostService {
|
|||
return postRepository.findPostByPostTitleLikeOrPostContentLikeAndPostTypeAndPostStatus(keyword,pageable);
|
||||
}
|
||||
|
||||
/**
|
||||
* 热门文章
|
||||
*
|
||||
* @return List<Post>
|
||||
*/
|
||||
@Override
|
||||
public List<Post> hotPosts() {
|
||||
return postRepository.findPostsByPostTypeOrderByPostViewsDesc(HaloConst.POST_TYPE_POST);
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成rss
|
||||
*
|
||||
|
|
|
@ -15,6 +15,8 @@ import org.springframework.web.bind.annotation.PathVariable;
|
|||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author : RYAN0UP
|
||||
* @date : 2018/6/6
|
||||
|
@ -47,6 +49,16 @@ public class ApiPostController {
|
|||
return new JsonResult(200,"success",posts);
|
||||
}
|
||||
|
||||
@GetMapping(value = "/hot")
|
||||
public JsonResult hotPosts() {
|
||||
List<Post> posts = postService.hotPosts();
|
||||
if (null != posts && posts.size() > 0) {
|
||||
return new JsonResult(200, "success", posts);
|
||||
} else {
|
||||
return new JsonResult(200, "empty");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取单个文章信息
|
||||
*
|
||||
|
|
|
@ -17,6 +17,7 @@ import org.springframework.ui.Model;
|
|||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
|
|
@ -31,7 +31,6 @@ function initMenu() {
|
|||
if(pathName=="/admin/menus/edit"){
|
||||
pathName="/admin/menus";
|
||||
}
|
||||
console.log(pathName);
|
||||
$(".sidebar-menu").children().each(function () {
|
||||
var li = $(this);
|
||||
li.find('a').each(function () {
|
||||
|
|
|
@ -77,6 +77,9 @@
|
|||
<#break>
|
||||
<#case "gallery.ftl">
|
||||
图库页面
|
||||
<#case "module/options.ftl">
|
||||
设置选项
|
||||
<#break >
|
||||
<#break>
|
||||
</#switch>
|
||||
</td>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<![endif]-->
|
||||
<script src="/static/plugins/jquery/jquery.min.js"></script>
|
||||
<script src="/static/plugins/bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body class="hold-transition sidebar-mini ${options.admin_theme?default('skin-blue')} ${options.admin_layout?default('')} ${options.sidebar_style?default('')}">
|
||||
<#if options.admin_loading?default("false") == "true">
|
||||
|
@ -47,6 +48,9 @@
|
|||
<script src="/static/js/app.js"></script>
|
||||
<@compress single_line=true>
|
||||
<script>
|
||||
Pace.options = {
|
||||
restartOnRequestAfter: false
|
||||
};
|
||||
$(document).ajaxStart(function() {Pace.restart();});
|
||||
<#if options.admin_pjax?default("true") == "true">
|
||||
$(document).pjax('a[data-pjax=true]', '.content-wrapper', {fragment: '.content-wrapper',timeout: 8000});
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<style type="text/css" rel="stylesheet">
|
||||
${options.changyan_css?if_exists}
|
||||
</style>
|
||||
<div id="SOHUCS" sid="请将此处替换为配置SourceID的语句" ></div>
|
||||
<div id="SOHUCS" sid="${post.postId?c}" ></div>
|
||||
<script type="text/javascript">
|
||||
(function(){
|
||||
var appid = '${options.changyan_appid?if_exists}';
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
<meta name="description" content="${description?default("Anatole")}" />
|
||||
<link rel="shortcut icon" href="${options.anatole_style_favicon?default("/anatole/source/images/favicon.png")}" type="image/x-icon" />
|
||||
<link href="/anatole/source/css/font-awesome.min.css" type="text/css" rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="/anatole/source/css/blog_basic.css?version=88107691fe">
|
||||
<link href="/anatole/source/css/style.css" type="text/css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/anatole/source/css/blog_basic.min.css?version=88107691fe">
|
||||
<link href="/anatole/source/css/style.min.css" type="text/css" rel="stylesheet" />
|
||||
<link rel="alternate" type="application/rss+xml" title="atom 1.0" href="/feed.xml">
|
||||
<#if options.anatole_style_post_title_lower?default("true") == "false">
|
||||
<style>
|
||||
|
@ -29,9 +29,9 @@
|
|||
<body>
|
||||
</#macro>
|
||||
<#macro footer>
|
||||
<script type="text/javascript" src="/anatole/source/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="/anatole/source/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/anatole/source/js/jquery-migrate-1.2.1.min.js"></script>
|
||||
<script type="text/javascript" src="/anatole/source/js/jquery.appear.js"></script>
|
||||
<script type="text/javascript" src="/anatole/source/js/jquery.appear.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var url = location.href;
|
||||
var urlstatus = false;
|
||||
|
|
|
@ -1,325 +1,352 @@
|
|||
.post-content .tip {
|
||||
position: relative;
|
||||
margin: 2em 0;
|
||||
padding: 12px 24px 12px 30px;
|
||||
border-left: 4px solid #f66;
|
||||
border-top-right-radius: 2px;
|
||||
border-bottom-right-radius: 2px;
|
||||
background-color: #f8f8f8
|
||||
position: relative;
|
||||
margin: 2em 0;
|
||||
padding: 12px 24px 12px 30px;
|
||||
border-left: 4px solid #f66;
|
||||
border-top-right-radius: 2px;
|
||||
border-bottom-right-radius: 2px;
|
||||
background-color: #f8f8f8
|
||||
}
|
||||
|
||||
.post-content .tip br {
|
||||
/**display: none**/
|
||||
/**display: none**/
|
||||
}
|
||||
|
||||
.post-content .tip:before {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
left: -12px;
|
||||
content: "!";
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 100%;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
background-color: #f66;
|
||||
font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
left: -12px;
|
||||
content: "!";
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 100%;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
background-color: #f66;
|
||||
font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif
|
||||
}
|
||||
|
||||
.content > .post > .post-content > p {
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
#ds-thread,#disqus_thread,#cloud-tie-wrapper {
|
||||
margin: 0 30px!important
|
||||
#ds-thread, #disqus_thread, #cloud-tie-wrapper {
|
||||
margin: 0 30px !important
|
||||
}
|
||||
|
||||
pre {
|
||||
font-size: 0.8em!important;
|
||||
background-color: #f8f8f8!important;
|
||||
font-family: 'Roboto Mono','Lucida Console','Trebuchet MS','Courier New', Monaco, courier,'PingFang SC','Hiragino Sans GB','Microsoft Jhenghei','Microsoft YaHei', monospace!important
|
||||
font-size: 0.8em !important;
|
||||
background-color: #f8f8f8 !important;
|
||||
font-family: 'Roboto Mono', 'Lucida Console', 'Trebuchet MS', 'Courier New', Monaco, courier, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Jhenghei', 'Microsoft YaHei', monospace !important
|
||||
}
|
||||
|
||||
figure.highlight {
|
||||
position: relative!important;
|
||||
margin: 1em 0!important;
|
||||
border-radius: 2px!important;
|
||||
line-height: 1.1em!important;
|
||||
background-color: #f8f8f8!important;
|
||||
overflow-x: auto!important
|
||||
position: relative !important;
|
||||
margin: 1em 0 !important;
|
||||
border-radius: 2px !important;
|
||||
line-height: 1.1em !important;
|
||||
background-color: #f8f8f8 !important;
|
||||
overflow-x: auto !important
|
||||
}
|
||||
|
||||
figure.highlight table,figure.highlight tr,figure.highlight td {
|
||||
width: 100%!important;
|
||||
border-collapse: collapse!important;
|
||||
padding: 0!important;
|
||||
margin: 0!important
|
||||
figure.highlight table, figure.highlight tr, figure.highlight td {
|
||||
width: 100% !important;
|
||||
border-collapse: collapse !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important
|
||||
}
|
||||
|
||||
figure.highlight .gutter {
|
||||
display: none!important
|
||||
display: none !important
|
||||
}
|
||||
|
||||
figure.highlight .code pre {
|
||||
padding: 1.2em 1.4em!important;
|
||||
line-height: 1.5em!important;
|
||||
margin: 0!important
|
||||
padding: 1.2em 1.4em !important;
|
||||
line-height: 1.5em !important;
|
||||
margin: 0 !important
|
||||
}
|
||||
|
||||
figure.highlight.html .code:after,figure.highlight.js .code:after,figure.highlight.bash .code:after,figure.highlight.css .code:after,figure.highlight.scss .code:after,figure.highlight.diff .code:after,figure.highlight.java .code:after,figure.highlight.xml .code:after,figure.highlight.python .code:after,figure.highlight.json .code:after,figure.highlight.swift .code:after,figure.highlight.ruby .code:after,figure.highlight.perl .code:after,figure.highlight.php .code:after,figure.highlight.c .code:after,figure.highlight.cpp .code:after {
|
||||
position: absolute!important;
|
||||
top: 0!important;
|
||||
right: 0!important;
|
||||
color: #ccc!important;
|
||||
text-align: right!important;
|
||||
font-size: 0.75em!important;
|
||||
padding: 5px 10px 0!important;
|
||||
line-height: 15px!important;
|
||||
height: 15px!important;
|
||||
font-weight: 600!important
|
||||
figure.highlight.html .code:after, figure.highlight.js .code:after, figure.highlight.bash .code:after, figure.highlight.css .code:after, figure.highlight.scss .code:after, figure.highlight.diff .code:after, figure.highlight.java .code:after, figure.highlight.xml .code:after, figure.highlight.python .code:after, figure.highlight.json .code:after, figure.highlight.swift .code:after, figure.highlight.ruby .code:after, figure.highlight.perl .code:after, figure.highlight.php .code:after, figure.highlight.c .code:after, figure.highlight.cpp .code:after {
|
||||
position: absolute !important;
|
||||
top: 0 !important;
|
||||
right: 0 !important;
|
||||
color: #ccc !important;
|
||||
text-align: right !important;
|
||||
font-size: 0.75em !important;
|
||||
padding: 5px 10px 0 !important;
|
||||
line-height: 15px !important;
|
||||
height: 15px !important;
|
||||
font-weight: 600 !important
|
||||
}
|
||||
|
||||
figure.highlight.html .code:after {
|
||||
content: "HTML"
|
||||
content: "HTML"
|
||||
}
|
||||
|
||||
figure.highlight.js .code:after {
|
||||
content: "JS"
|
||||
content: "JS"
|
||||
}
|
||||
|
||||
figure.highlight.bash .code:after {
|
||||
content: "BASH"
|
||||
content: "BASH"
|
||||
}
|
||||
|
||||
figure.highlight.css .code:after {
|
||||
content: "CSS"
|
||||
content: "CSS"
|
||||
}
|
||||
|
||||
figure.highlight.scss .code:after {
|
||||
content: "SCSS"
|
||||
content: "SCSS"
|
||||
}
|
||||
|
||||
figure.highlight.diff .code:after {
|
||||
content: "DIFF"
|
||||
content: "DIFF"
|
||||
}
|
||||
|
||||
figure.highlight.java .code:after {
|
||||
content: "JAVA"
|
||||
content: "JAVA"
|
||||
}
|
||||
|
||||
figure.highlight.xml .code:after {
|
||||
content: "XML"
|
||||
content: "XML"
|
||||
}
|
||||
|
||||
figure.highlight.python .code:after {
|
||||
content: "PYTHON"
|
||||
content: "PYTHON"
|
||||
}
|
||||
|
||||
figure.highlight.json .code:after {
|
||||
content: "JSON"
|
||||
content: "JSON"
|
||||
}
|
||||
|
||||
figure.highlight.swift .code:after {
|
||||
content: "SWIFT"
|
||||
content: "SWIFT"
|
||||
}
|
||||
|
||||
figure.highlight.ruby .code:after {
|
||||
content: "RUBY"
|
||||
content: "RUBY"
|
||||
}
|
||||
|
||||
figure.highlight.perl .code:after {
|
||||
content: "PERL"
|
||||
content: "PERL"
|
||||
}
|
||||
|
||||
figure.highlight.php .code:after {
|
||||
content: "PHP"
|
||||
content: "PHP"
|
||||
}
|
||||
|
||||
figure.highlight.c .code:after {
|
||||
content: "C"
|
||||
content: "C"
|
||||
}
|
||||
|
||||
figure.highlight.java .code:after {
|
||||
content: "JAVA"
|
||||
content: "JAVA"
|
||||
}
|
||||
|
||||
figure.highlight.cpp .code:after {
|
||||
content: "CPP"
|
||||
content: "CPP"
|
||||
}
|
||||
|
||||
figure.highlight.cpp .code:after {
|
||||
content: 'C++'
|
||||
content: 'C++'
|
||||
}
|
||||
|
||||
pre {
|
||||
color: #525252!important
|
||||
color: #525252 !important
|
||||
}
|
||||
|
||||
pre .function .keyword,pre .constant {
|
||||
color: #0092db!important
|
||||
pre .function .keyword, pre .constant {
|
||||
color: #0092db !important
|
||||
}
|
||||
|
||||
pre .keyword,pre .attribute {
|
||||
color: #e96900!important
|
||||
pre .keyword, pre .attribute {
|
||||
color: #e96900 !important
|
||||
}
|
||||
|
||||
pre .number,pre .literal {
|
||||
color: #ae81ff!important
|
||||
pre .number, pre .literal {
|
||||
color: #ae81ff !important
|
||||
}
|
||||
|
||||
pre .tag,pre .tag .title,pre .change,pre .winutils,pre .flow,pre .lisp .title,pre .clojure .built_in,pre .nginx .title,pre .tex .special {
|
||||
color: #2973b7!important
|
||||
pre .tag, pre .tag .title, pre .change, pre .winutils, pre .flow, pre .lisp .title, pre .clojure .built_in, pre .nginx .title, pre .tex .special {
|
||||
color: #2973b7 !important
|
||||
}
|
||||
|
||||
pre .symbol,pre .symbol .string,pre .value,pre .regexp {
|
||||
color: #42b983!important
|
||||
pre .symbol, pre .symbol .string, pre .value, pre .regexp {
|
||||
color: #42b983 !important
|
||||
}
|
||||
|
||||
pre .title {
|
||||
color: #83B917!important
|
||||
color: #83B917 !important
|
||||
}
|
||||
|
||||
pre .tag .value,pre .string,pre .subst,pre .haskell .type,pre .preprocessor,pre .ruby .class .parent,pre .built_in,pre .sql .aggregate,pre .django .template_tag,pre .django .variable,pre .smalltalk .class,pre .javadoc,pre .django .filter .argument,pre .smalltalk .localvars,pre .smalltalk .array,pre .attr_selector,pre .pseudo,pre .addition,pre .stream,pre .envvar,pre .apache .tag,pre .apache .cbracket,pre .tex .command,pre .prompt {
|
||||
color: #42b983!important
|
||||
pre .tag .value, pre .string, pre .subst, pre .haskell .type, pre .preprocessor, pre .ruby .class .parent, pre .built_in, pre .sql .aggregate, pre .django .template_tag, pre .django .variable, pre .smalltalk .class, pre .javadoc, pre .django .filter .argument, pre .smalltalk .localvars, pre .smalltalk .array, pre .attr_selector, pre .pseudo, pre .addition, pre .stream, pre .envvar, pre .apache .tag, pre .apache .cbracket, pre .tex .command, pre .prompt {
|
||||
color: #42b983 !important
|
||||
}
|
||||
|
||||
pre .comment,pre .java .annotation,pre .python .decorator,pre .template_comment,pre .pi,pre .doctype,pre .shebang,pre .apache .sqbracket,pre .tex .formula {
|
||||
color: #b3b3b3!important
|
||||
pre .comment, pre .java .annotation, pre .python .decorator, pre .template_comment, pre .pi, pre .doctype, pre .shebang, pre .apache .sqbracket, pre .tex .formula {
|
||||
color: #b3b3b3 !important
|
||||
}
|
||||
|
||||
pre .deletion {
|
||||
color: #BA4545!important
|
||||
color: #BA4545 !important
|
||||
}
|
||||
|
||||
pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .javascript,pre .xml .vbscript,pre .xml .css,pre .xml .cdata {
|
||||
opacity: 0.5!important
|
||||
pre .coffeescript .javascript, pre .javascript .xml, pre .tex .formula, pre .xml .javascript, pre .xml .vbscript, pre .xml .css, pre .xml .cdata {
|
||||
opacity: 0.5 !important
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
max-height: 100%;
|
||||
padding: 0;
|
||||
margin: 0; }
|
||||
|
||||
body {
|
||||
height: 100%;
|
||||
max-height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 1.6em; }
|
||||
}
|
||||
|
||||
.clear {
|
||||
clear: both;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
height: 0; }
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
text-rendering: optimizeLegibility;
|
||||
line-height: 1;
|
||||
margin: 2rem 0; }
|
||||
.clear {
|
||||
clear: both;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.1rem;
|
||||
line-height: 1.2em; }
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
text-rendering: optimizeLegibility;
|
||||
line-height: 1;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.9rem;
|
||||
line-height: 1.2em; }
|
||||
h1 {
|
||||
font-size: 2.1rem;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.75rem; }
|
||||
h2 {
|
||||
font-size: 1.9rem;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.3rem; }
|
||||
h3 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1.3rem; }
|
||||
h4 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1.3rem; }
|
||||
h5 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto; }
|
||||
h6 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
p, ul, ol, dl {
|
||||
margin: 1em 0; }
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
ol ol, ul ul, ul ol, ol ul {
|
||||
margin: 0.4em 0; }
|
||||
p, ul, ol, dl {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
ul p, ol p, li p, .content li p, blockquote p, .content blockquote p,
|
||||
.post blockquote p, .post li p {
|
||||
margin: 0;
|
||||
overflow: visible; }
|
||||
ol ol, ul ul, ul ol, ol ul {
|
||||
margin: 0.4em 0;
|
||||
}
|
||||
|
||||
a img {
|
||||
border: none; }
|
||||
ul p, ol p, li p, .content li p, blockquote p, .content blockquote p,
|
||||
.post blockquote p, .post li p {
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
a img {
|
||||
border: none;
|
||||
}
|
||||
|
||||
dl dt {
|
||||
float: left;
|
||||
width: 180px;
|
||||
overflow: hidden;
|
||||
clear: left;
|
||||
text-align: right;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-weight: bold;
|
||||
margin-bottom: 1em; }
|
||||
float: left;
|
||||
width: 180px;
|
||||
overflow: hidden;
|
||||
clear: left;
|
||||
text-align: right;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-weight: bold;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
dl dd {
|
||||
dl dd {
|
||||
margin-left: 200px;
|
||||
margin-bottom: 1em; }
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
hr {
|
||||
display: block;
|
||||
height: 1px;
|
||||
border: 0;
|
||||
border-top: 1px solid #efefef;
|
||||
margin: 3.2em 0;
|
||||
padding: 0; }
|
||||
hr {
|
||||
display: block;
|
||||
height: 1px;
|
||||
border: 0;
|
||||
border-top: 1px solid #efefef;
|
||||
margin: 3.2em 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
box-sizing: border-box;
|
||||
margin: 1.6em 0 1.6em -2.2em;
|
||||
padding: 0 0 0 1.6em;
|
||||
border-left: #4a4a4a 0.4em solid; }
|
||||
blockquote {
|
||||
box-sizing: border-box;
|
||||
margin: 1.6em 0 1.6em -2.2em;
|
||||
padding: 0 0 0 1.6em;
|
||||
border-left: #4a4a4a 0.4em solid;
|
||||
}
|
||||
|
||||
blockquote p {
|
||||
margin: 0.8em 0; }
|
||||
blockquote p {
|
||||
margin: 0.8em 0;
|
||||
}
|
||||
|
||||
blockquote small {
|
||||
display: inline-block;
|
||||
margin: 0.8em 0 0.8em 1.5em;
|
||||
font-size: 0.9em;
|
||||
color: #ccc; }
|
||||
blockquote small {
|
||||
display: inline-block;
|
||||
margin: 0.8em 0 0.8em 1.5em;
|
||||
font-size: 0.9em;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
blockquote small:before {
|
||||
content: '\2014 \00A0'; }
|
||||
blockquote small:before {
|
||||
content: '\2014 \00A0';
|
||||
}
|
||||
|
||||
blockquote cite {
|
||||
font-weight: bold; }
|
||||
blockquote cite {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
blockquote cite a {
|
||||
font-weight: normal; }
|
||||
blockquote cite a {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
mark {
|
||||
background-color: #ffc336; }
|
||||
mark {
|
||||
background-color: #ffc336;
|
||||
}
|
||||
|
||||
code, tt {
|
||||
padding: 1px 3px;
|
||||
font-family: Inconsolata, monospace, sans-serif;
|
||||
font-size: 0.85em;
|
||||
white-space: pre-wrap;
|
||||
border: 1px solid #E3EDF3;
|
||||
background: #f7f7f9;
|
||||
color: #d14;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
code, tt {
|
||||
padding: 1px 3px;
|
||||
font-family: Inconsolata, monospace, sans-serif;
|
||||
font-size: 0.85em;
|
||||
white-space: pre-wrap;
|
||||
border: 1px solid #E3EDF3;
|
||||
background: #f7f7f9;
|
||||
color: #d14;
|
||||
border-radius: 2px; }
|
||||
/**
|
||||
pre {
|
||||
-moz-box-sizing: border-box;
|
||||
|
@ -405,68 +432,98 @@ dl dt {
|
|||
**/
|
||||
|
||||
.toc {
|
||||
border: 1px solid #f0f0f0;
|
||||
margin-bottom: 20px;
|
||||
padding: 10px 30px; }
|
||||
border: 1px solid #f0f0f0;
|
||||
margin-bottom: 20px;
|
||||
padding: 10px 30px;
|
||||
}
|
||||
|
||||
#fb_comments_container {
|
||||
#fb_comments_container {
|
||||
overflow: hidden;
|
||||
margin: 0 auto; }
|
||||
#fb_comments_container #fb_comments {
|
||||
list-style-type: none;
|
||||
padding: 0; }
|
||||
#fb_comments_container #fb_comments h1 {
|
||||
font-size: 1.3em; }
|
||||
#fb_comments_container #fb_comments h2 {
|
||||
font-size: 1.2em; }
|
||||
#fb_comments_container #fb_comments h3 {
|
||||
font-size: 1.1em; }
|
||||
#fb_comments_container #fb_comments h4, #fb_comments_container #fb_comments h5,
|
||||
#fb_comments_container #fb_comments h6 {
|
||||
font-size: 1.05em; }
|
||||
#fb_comments_container #fb_comments .comment {
|
||||
position: relative;
|
||||
padding: 25px 0;
|
||||
border-bottom: 1px solid rgba(150, 150, 150, 0.2);
|
||||
*border-bottom: 1px solid #f0f0f0; }
|
||||
#fb_comments_container #fb_comments .comment .avatar {
|
||||
position: absolute;
|
||||
top: 25px;
|
||||
left: 0;
|
||||
width: 50px;
|
||||
float: left; }
|
||||
#fb_comments_container #fb_comments .comment .avatar img {
|
||||
width: 48px;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
margin: 0; }
|
||||
#fb_comments_container #fb_comments .comment .comment_body,
|
||||
#fb_comments_container #fb_comments .comment .c_content {
|
||||
margin-left: 70px;
|
||||
display: block; }
|
||||
#fb_comments_container #fb_comments .comment .comment_body p,
|
||||
#fb_comments_container #fb_comments .comment .c_content p {
|
||||
margin: 5px 0 15px 0;
|
||||
padding: 0;
|
||||
line-height: 1.8; }
|
||||
#fb_comments_container #fb_comments .comment .comment_body .author,
|
||||
#fb_comments_container #fb_comments .comment .c_content .author {
|
||||
line-height: 1.5em;
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
#fb_comments_container #fb_comments .comment .comment_body .author b,
|
||||
#fb_comments_container #fb_comments .comment .c_content .author b {
|
||||
color: #555; }
|
||||
#fb_comments_container #fb_comments .comment .comment_body .author small,
|
||||
#fb_comments_container #fb_comments .comment .c_content .author small {
|
||||
font-weight: normal;
|
||||
padding-left: 10px;
|
||||
font-size: 0.7em;
|
||||
color: #666; }
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments h1 {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments h2 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments h3 {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments h4, #fb_comments_container #fb_comments h5,
|
||||
#fb_comments_container #fb_comments h6 {
|
||||
font-size: 1.05em;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments .comment {
|
||||
position: relative;
|
||||
padding: 25px 0;
|
||||
border-bottom: 1px solid rgba(150, 150, 150, 0.2);
|
||||
*border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments .comment .avatar {
|
||||
position: absolute;
|
||||
top: 25px;
|
||||
left: 0;
|
||||
width: 50px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments .comment .avatar img {
|
||||
width: 48px;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments .comment .comment_body,
|
||||
#fb_comments_container #fb_comments .comment .c_content {
|
||||
margin-left: 70px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments .comment .comment_body p,
|
||||
#fb_comments_container #fb_comments .comment .c_content p {
|
||||
margin: 5px 0 15px 0;
|
||||
padding: 0;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments .comment .comment_body .author,
|
||||
#fb_comments_container #fb_comments .comment .c_content .author {
|
||||
line-height: 1.5em;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments .comment .comment_body .author b,
|
||||
#fb_comments_container #fb_comments .comment .c_content .author b {
|
||||
color: #555;
|
||||
}
|
||||
|
||||
#fb_comments_container #fb_comments .comment .comment_body .author small,
|
||||
#fb_comments_container #fb_comments .comment .c_content .author small {
|
||||
font-weight: normal;
|
||||
padding-left: 10px;
|
||||
font-size: 0.7em;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
#fb_new_comment {
|
||||
padding-bottom: 50px; }
|
||||
#fb_new_comment textarea {
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
|
||||
#fb_new_comment textarea {
|
||||
border-radius: 5px;
|
||||
height: 80px;
|
||||
width: 98%;
|
||||
|
@ -474,49 +531,68 @@ dl dt {
|
|||
font-size: 1em;
|
||||
border: 1px solid rgba(150, 150, 150, 0.5);
|
||||
*border: 1px solid #a8a8a8;
|
||||
line-height: 1.5; }
|
||||
#fb_new_comment .comment_error {
|
||||
color: red;
|
||||
text-align: center;
|
||||
display: block;
|
||||
font-size: 0.8em;
|
||||
padding-top: 1em; }
|
||||
#fb_new_comment .c_button:hover {
|
||||
background: #E60900;
|
||||
color: #fff;
|
||||
text-decoration: none; }
|
||||
#fb_new_comment .c_button, #fb_new_comment #c_submit {
|
||||
cursor: pointer;
|
||||
font-family: "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
||||
font-size: 1em;
|
||||
line-height: 1.3em;
|
||||
letter-spacing: 1px;
|
||||
border-radius: 5px;
|
||||
padding: 5px 5px 2px 5px; }
|
||||
#fb_new_comment .input_body {
|
||||
margin-top: 10px; }
|
||||
#fb_new_comment .input_body ul {
|
||||
list-style: none;
|
||||
padding: 5px 0;
|
||||
margin: auto 0; }
|
||||
#fb_new_comment .input_body ul li {
|
||||
float: left;
|
||||
margin-right: 2.2%;
|
||||
*margin-right: 22px; }
|
||||
#fb_new_comment .input_body ul li label {
|
||||
line-height: 1em; }
|
||||
#fb_new_comment .input_body ul li input {
|
||||
border-radius: 5px;
|
||||
border: 1px solid #ddd;
|
||||
padding: 5px;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
margin: 0 0 10px 0; }
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
#fb_new_comment .comment_error {
|
||||
color: red;
|
||||
text-align: center;
|
||||
display: block;
|
||||
font-size: 0.8em;
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
#fb_new_comment .c_button:hover {
|
||||
background: #E60900;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#fb_new_comment .c_button, #fb_new_comment #c_submit {
|
||||
cursor: pointer;
|
||||
font-family: "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
||||
font-size: 1em;
|
||||
line-height: 1.3em;
|
||||
letter-spacing: 1px;
|
||||
border-radius: 5px;
|
||||
padding: 5px 5px 2px 5px;
|
||||
}
|
||||
|
||||
#fb_new_comment .input_body {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#fb_new_comment .input_body ul {
|
||||
list-style: none;
|
||||
padding: 5px 0;
|
||||
margin: auto 0;
|
||||
}
|
||||
|
||||
#fb_new_comment .input_body ul li {
|
||||
float: left;
|
||||
margin-right: 2.2%;
|
||||
*margin-right: 22px;
|
||||
}
|
||||
|
||||
#fb_new_comment .input_body ul li label {
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
#fb_new_comment .input_body ul li input {
|
||||
border-radius: 5px;
|
||||
border: 1px solid #ddd;
|
||||
padding: 5px;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
margin: 0 0 10px 0;
|
||||
}
|
||||
|
||||
#SwfStore_farbox_0 {
|
||||
height: 0;
|
||||
overflow: hidden; }
|
||||
|
||||
@media screen and (max-width: 320px) {
|
||||
#fb_comments .c_content, #fb_comments .comment_body {
|
||||
margin-left: 57px; }
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 320px) {
|
||||
#fb_comments .c_content, #fb_comments .comment_body {
|
||||
margin-left: 57px;
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
!function(e){function r(){n=!1;for(var r=0;r<i.length;r++){var a=e(i[r]).filter(function(){return e(this).is(":appeared")});if(a.trigger("appear",[a]),t){var o=t.not(a);o.trigger("disappear",[o])}t=a}}var t,i=[],a=!1,n=!1,o={interval:250,force_process:!1},f=e(window);e.expr[":"].appeared=function(r){var t=e(r);if(!t.is(":visible"))return!1;var i=f.scrollLeft(),a=f.scrollTop(),n=t.offset(),o=n.left,p=n.top;return p+t.height()>=a&&p-(t.data("appear-top-offset")||0)<=a+f.height()&&o+t.width()>=i&&o-(t.data("appear-left-offset")||0)<=i+f.width()?!0:!1},e.fn.extend({appear:function(t){var f=e.extend({},o,t||{}),p=this.selector||this;if(!a){var s=function(){n||(n=!0,setTimeout(r,f.interval))};e(window).scroll(s).resize(s),a=!0}return f.force_process&&setTimeout(r,f.interval),i.push(p),e(p)}}),e.extend({force_appear:function(){return a?(r(),!0):!1}})}(jQuery);
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue