👽 anatole主题优化

pull/18/head
ruibaby 2018-06-21 15:45:48 +08:00
parent cfdaa96a77
commit a4d5d5252c
17 changed files with 901 additions and 695 deletions

View File

@ -41,6 +41,9 @@ public class ArticleTagDirective implements TemplateDirectiveModel {
case "archivesLess": case "archivesLess":
environment.setVariable("archivesLess", builder.build().wrap(postService.findPostGroupByYear())); environment.setVariable("archivesLess", builder.build().wrap(postService.findPostGroupByYear()));
break; break;
case "hotPosts":
environment.setVariable("hotPosts", builder.build().wrap(postService.hotPosts()));
break;
default: default:
break; break;
} }

View File

@ -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) @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); Page<Post> findPostByPostTitleLikeOrPostContentLikeAndPostTypeAndPostStatus(String keyword, Pageable pageable);
/**
*
*
* @param postStatus
* @return List<Post>
*/
List<Post> findPostsByPostTypeOrderByPostViewsDesc(String postStatus);
} }

View File

@ -202,6 +202,13 @@ public interface PostService {
*/ */
Page<Post> searchByKeywords(String keyword,Pageable pageable); Page<Post> searchByKeywords(String keyword,Pageable pageable);
/**
*
*
* @return List<Post>
*/
List<Post> hotPosts();
/** /**
* rss * rss
* *

View File

@ -315,6 +315,16 @@ public class PostServiceImpl implements PostService {
return postRepository.findPostByPostTitleLikeOrPostContentLikeAndPostTypeAndPostStatus(keyword,pageable); return postRepository.findPostByPostTitleLikeOrPostContentLikeAndPostTypeAndPostStatus(keyword,pageable);
} }
/**
*
*
* @return List<Post>
*/
@Override
public List<Post> hotPosts() {
return postRepository.findPostsByPostTypeOrderByPostViewsDesc(HaloConst.POST_TYPE_POST);
}
/** /**
* rss * rss
* *

View File

@ -15,6 +15,8 @@ import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/** /**
* @author : RYAN0UP * @author : RYAN0UP
* @date : 2018/6/6 * @date : 2018/6/6
@ -47,6 +49,16 @@ public class ApiPostController {
return new JsonResult(200,"success",posts); 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");
}
}
/** /**
* *
* *

View File

@ -17,6 +17,7 @@ import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;

View File

@ -31,7 +31,6 @@ function initMenu() {
if(pathName=="/admin/menus/edit"){ if(pathName=="/admin/menus/edit"){
pathName="/admin/menus"; pathName="/admin/menus";
} }
console.log(pathName);
$(".sidebar-menu").children().each(function () { $(".sidebar-menu").children().each(function () {
var li = $(this); var li = $(this);
li.find('a').each(function () { li.find('a').each(function () {

View File

@ -77,6 +77,9 @@
<#break> <#break>
<#case "gallery.ftl"> <#case "gallery.ftl">
图库页面 图库页面
<#case "module/options.ftl">
设置选项
<#break >
<#break> <#break>
</#switch> </#switch>
</td> </td>

View File

@ -20,6 +20,7 @@
<![endif]--> <![endif]-->
<script src="/static/plugins/jquery/jquery.min.js"></script> <script src="/static/plugins/jquery/jquery.min.js"></script>
<script src="/static/plugins/bootstrap/js/bootstrap.min.js"></script> <script src="/static/plugins/bootstrap/js/bootstrap.min.js"></script>
</head> </head>
<body class="hold-transition sidebar-mini ${options.admin_theme?default('skin-blue')} ${options.admin_layout?default('')} ${options.sidebar_style?default('')}"> <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"> <#if options.admin_loading?default("false") == "true">
@ -47,6 +48,9 @@
<script src="/static/js/app.js"></script> <script src="/static/js/app.js"></script>
<@compress single_line=true> <@compress single_line=true>
<script> <script>
Pace.options = {
restartOnRequestAfter: false
};
$(document).ajaxStart(function() {Pace.restart();}); $(document).ajaxStart(function() {Pace.restart();});
<#if options.admin_pjax?default("true") == "true"> <#if options.admin_pjax?default("true") == "true">
$(document).pjax('a[data-pjax=true]', '.content-wrapper', {fragment: '.content-wrapper',timeout: 8000}); $(document).pjax('a[data-pjax=true]', '.content-wrapper', {fragment: '.content-wrapper',timeout: 8000});

View File

@ -3,7 +3,7 @@
<style type="text/css" rel="stylesheet"> <style type="text/css" rel="stylesheet">
${options.changyan_css?if_exists} ${options.changyan_css?if_exists}
</style> </style>
<div id="SOHUCS" sid="请将此处替换为配置SourceID的语句" ></div> <div id="SOHUCS" sid="${post.postId?c}" ></div>
<script type="text/javascript"> <script type="text/javascript">
(function(){ (function(){
var appid = '${options.changyan_appid?if_exists}'; var appid = '${options.changyan_appid?if_exists}';

View File

@ -15,8 +15,8 @@
<meta name="description" content="${description?default("Anatole")}" /> <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 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 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 rel="stylesheet" href="/anatole/source/css/blog_basic.min.css?version=88107691fe">
<link href="/anatole/source/css/style.css" type="text/css" rel="stylesheet" /> <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"> <link rel="alternate" type="application/rss+xml" title="atom 1.0" href="/feed.xml">
<#if options.anatole_style_post_title_lower?default("true") == "false"> <#if options.anatole_style_post_title_lower?default("true") == "false">
<style> <style>
@ -29,9 +29,9 @@
<body> <body>
</#macro> </#macro>
<#macro footer> <#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-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"> <script type="text/javascript">
var url = location.href; var url = location.href;
var urlstatus = false; var urlstatus = false;

View File

@ -1,325 +1,352 @@
.post-content .tip { .post-content .tip {
position: relative; position: relative;
margin: 2em 0; margin: 2em 0;
padding: 12px 24px 12px 30px; padding: 12px 24px 12px 30px;
border-left: 4px solid #f66; border-left: 4px solid #f66;
border-top-right-radius: 2px; border-top-right-radius: 2px;
border-bottom-right-radius: 2px; border-bottom-right-radius: 2px;
background-color: #f8f8f8 background-color: #f8f8f8
} }
.post-content .tip br { .post-content .tip br {
/**display: none**/ /**display: none**/
} }
.post-content .tip:before { .post-content .tip:before {
position: absolute; position: absolute;
top: 14px; top: 14px;
left: -12px; left: -12px;
content: "!"; content: "!";
width: 20px; width: 20px;
height: 20px; height: 20px;
border-radius: 100%; border-radius: 100%;
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;
line-height: 20px; line-height: 20px;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
background-color: #f66; background-color: #f66;
font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif
} }
.content > .post > .post-content > p { .content > .post > .post-content > p {
word-wrap: break-word; word-wrap: break-word;
word-break: break-all; word-break: break-all;
} }
#ds-thread,#disqus_thread,#cloud-tie-wrapper { #ds-thread, #disqus_thread, #cloud-tie-wrapper {
margin: 0 30px!important margin: 0 30px !important
} }
pre { pre {
font-size: 0.8em!important; font-size: 0.8em !important;
background-color: #f8f8f8!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-family: 'Roboto Mono', 'Lucida Console', 'Trebuchet MS', 'Courier New', Monaco, courier, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Jhenghei', 'Microsoft YaHei', monospace !important
} }
figure.highlight { figure.highlight {
position: relative!important; position: relative !important;
margin: 1em 0!important; margin: 1em 0 !important;
border-radius: 2px!important; border-radius: 2px !important;
line-height: 1.1em!important; line-height: 1.1em !important;
background-color: #f8f8f8!important; background-color: #f8f8f8 !important;
overflow-x: auto!important overflow-x: auto !important
} }
figure.highlight table,figure.highlight tr,figure.highlight td { figure.highlight table, figure.highlight tr, figure.highlight td {
width: 100%!important; width: 100% !important;
border-collapse: collapse!important; border-collapse: collapse !important;
padding: 0!important; padding: 0 !important;
margin: 0!important margin: 0 !important
} }
figure.highlight .gutter { figure.highlight .gutter {
display: none!important display: none !important
} }
figure.highlight .code pre { figure.highlight .code pre {
padding: 1.2em 1.4em!important; padding: 1.2em 1.4em !important;
line-height: 1.5em!important; line-height: 1.5em !important;
margin: 0!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 { 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; position: absolute !important;
top: 0!important; top: 0 !important;
right: 0!important; right: 0 !important;
color: #ccc!important; color: #ccc !important;
text-align: right!important; text-align: right !important;
font-size: 0.75em!important; font-size: 0.75em !important;
padding: 5px 10px 0!important; padding: 5px 10px 0 !important;
line-height: 15px!important; line-height: 15px !important;
height: 15px!important; height: 15px !important;
font-weight: 600!important font-weight: 600 !important
} }
figure.highlight.html .code:after { figure.highlight.html .code:after {
content: "HTML" content: "HTML"
} }
figure.highlight.js .code:after { figure.highlight.js .code:after {
content: "JS" content: "JS"
} }
figure.highlight.bash .code:after { figure.highlight.bash .code:after {
content: "BASH" content: "BASH"
} }
figure.highlight.css .code:after { figure.highlight.css .code:after {
content: "CSS" content: "CSS"
} }
figure.highlight.scss .code:after { figure.highlight.scss .code:after {
content: "SCSS" content: "SCSS"
} }
figure.highlight.diff .code:after { figure.highlight.diff .code:after {
content: "DIFF" content: "DIFF"
} }
figure.highlight.java .code:after { figure.highlight.java .code:after {
content: "JAVA" content: "JAVA"
} }
figure.highlight.xml .code:after { figure.highlight.xml .code:after {
content: "XML" content: "XML"
} }
figure.highlight.python .code:after { figure.highlight.python .code:after {
content: "PYTHON" content: "PYTHON"
} }
figure.highlight.json .code:after { figure.highlight.json .code:after {
content: "JSON" content: "JSON"
} }
figure.highlight.swift .code:after { figure.highlight.swift .code:after {
content: "SWIFT" content: "SWIFT"
} }
figure.highlight.ruby .code:after { figure.highlight.ruby .code:after {
content: "RUBY" content: "RUBY"
} }
figure.highlight.perl .code:after { figure.highlight.perl .code:after {
content: "PERL" content: "PERL"
} }
figure.highlight.php .code:after { figure.highlight.php .code:after {
content: "PHP" content: "PHP"
} }
figure.highlight.c .code:after { figure.highlight.c .code:after {
content: "C" content: "C"
} }
figure.highlight.java .code:after { figure.highlight.java .code:after {
content: "JAVA" content: "JAVA"
} }
figure.highlight.cpp .code:after { figure.highlight.cpp .code:after {
content: "CPP" content: "CPP"
} }
figure.highlight.cpp .code:after { figure.highlight.cpp .code:after {
content: 'C++' content: 'C++'
} }
pre { pre {
color: #525252!important color: #525252 !important
} }
pre .function .keyword,pre .constant { pre .function .keyword, pre .constant {
color: #0092db!important color: #0092db !important
} }
pre .keyword,pre .attribute { pre .keyword, pre .attribute {
color: #e96900!important color: #e96900 !important
} }
pre .number,pre .literal { pre .number, pre .literal {
color: #ae81ff!important 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 { 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 color: #2973b7 !important
} }
pre .symbol,pre .symbol .string,pre .value,pre .regexp { pre .symbol, pre .symbol .string, pre .value, pre .regexp {
color: #42b983!important color: #42b983 !important
} }
pre .title { 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 { 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 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 { 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 color: #b3b3b3 !important
} }
pre .deletion { 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 { 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 opacity: 0.5 !important
} }
html { html {
height: 100%; height: 100%;
max-height: 100%; max-height: 100%;
padding: 0;
margin: 0; }
body {
padding: 0; padding: 0;
margin: 0; margin: 0;
line-height: 1.6em; } }
.clear { body {
clear: both; padding: 0;
display: block; margin: 0;
overflow: hidden; line-height: 1.6em;
visibility: hidden; }
width: 0;
height: 0; }
h1, h2, h3, h4, h5, h6 { .clear {
text-rendering: optimizeLegibility; clear: both;
line-height: 1; display: block;
margin: 2rem 0; } overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}
h1 { h1, h2, h3, h4, h5, h6 {
font-size: 2.1rem; text-rendering: optimizeLegibility;
line-height: 1.2em; } line-height: 1;
margin: 2rem 0;
}
h2 { h1 {
font-size: 1.9rem; font-size: 2.1rem;
line-height: 1.2em; } line-height: 1.2em;
}
h3 { h2 {
font-size: 1.75rem; } font-size: 1.9rem;
line-height: 1.2em;
}
h4 { h3 {
font-size: 1.3rem; } font-size: 1.75rem;
}
h5 { h4 {
font-size: 1.3rem; } font-size: 1.3rem;
}
h6 { h5 {
font-size: 1.3rem; } font-size: 1.3rem;
}
img { h6 {
max-width: 100%; font-size: 1.3rem;
height: auto; } }
p, ul, ol, dl { img {
margin: 1em 0; } max-width: 100%;
height: auto;
}
ol ol, ul ul, ul ol, ol ul { p, ul, ol, dl {
margin: 0.4em 0; } margin: 1em 0;
}
ul p, ol p, li p, .content li p, blockquote p, .content blockquote p, ol ol, ul ul, ul ol, ol ul {
.post blockquote p, .post li p { margin: 0.4em 0;
margin: 0; }
overflow: visible; }
a img { ul p, ol p, li p, .content li p, blockquote p, .content blockquote p,
border: none; } .post blockquote p, .post li p {
margin: 0;
overflow: visible;
}
a img {
border: none;
}
dl dt { dl dt {
float: left; float: left;
width: 180px; width: 180px;
overflow: hidden; overflow: hidden;
clear: left; clear: left;
text-align: right; text-align: right;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
font-weight: bold; font-weight: bold;
margin-bottom: 1em; } margin-bottom: 1em;
}
dl dd { dl dd {
margin-left: 200px; margin-left: 200px;
margin-bottom: 1em; } margin-bottom: 1em;
}
hr { hr {
display: block; display: block;
height: 1px; height: 1px;
border: 0; border: 0;
border-top: 1px solid #efefef; border-top: 1px solid #efefef;
margin: 3.2em 0; margin: 3.2em 0;
padding: 0; } padding: 0;
}
blockquote { blockquote {
box-sizing: border-box; box-sizing: border-box;
margin: 1.6em 0 1.6em -2.2em; margin: 1.6em 0 1.6em -2.2em;
padding: 0 0 0 1.6em; padding: 0 0 0 1.6em;
border-left: #4a4a4a 0.4em solid; } border-left: #4a4a4a 0.4em solid;
}
blockquote p { blockquote p {
margin: 0.8em 0; } margin: 0.8em 0;
}
blockquote small { blockquote small {
display: inline-block; display: inline-block;
margin: 0.8em 0 0.8em 1.5em; margin: 0.8em 0 0.8em 1.5em;
font-size: 0.9em; font-size: 0.9em;
color: #ccc; } color: #ccc;
}
blockquote small:before { blockquote small:before {
content: '\2014 \00A0'; } content: '\2014 \00A0';
}
blockquote cite { blockquote cite {
font-weight: bold; } font-weight: bold;
}
blockquote cite a { blockquote cite a {
font-weight: normal; } font-weight: normal;
}
mark { mark {
background-color: #ffc336; } 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 { pre {
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
@ -405,68 +432,98 @@ dl dt {
**/ **/
.toc { .toc {
border: 1px solid #f0f0f0; border: 1px solid #f0f0f0;
margin-bottom: 20px; margin-bottom: 20px;
padding: 10px 30px; } padding: 10px 30px;
}
#fb_comments_container { #fb_comments_container {
overflow: hidden; overflow: hidden;
margin: 0 auto; } margin: 0 auto;
#fb_comments_container #fb_comments { }
list-style-type: none;
padding: 0; } #fb_comments_container #fb_comments {
#fb_comments_container #fb_comments h1 { list-style-type: none;
font-size: 1.3em; } padding: 0;
#fb_comments_container #fb_comments h2 { }
font-size: 1.2em; }
#fb_comments_container #fb_comments h3 { #fb_comments_container #fb_comments h1 {
font-size: 1.1em; } font-size: 1.3em;
#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 h2 {
#fb_comments_container #fb_comments .comment { font-size: 1.2em;
position: relative; }
padding: 25px 0;
border-bottom: 1px solid rgba(150, 150, 150, 0.2); #fb_comments_container #fb_comments h3 {
*border-bottom: 1px solid #f0f0f0; } font-size: 1.1em;
#fb_comments_container #fb_comments .comment .avatar { }
position: absolute;
top: 25px; #fb_comments_container #fb_comments h4, #fb_comments_container #fb_comments h5,
left: 0; #fb_comments_container #fb_comments h6 {
width: 50px; font-size: 1.05em;
float: left; } }
#fb_comments_container #fb_comments .comment .avatar img {
width: 48px; #fb_comments_container #fb_comments .comment {
border: none; position: relative;
border-radius: 5px; padding: 25px 0;
margin: 0; } border-bottom: 1px solid rgba(150, 150, 150, 0.2);
#fb_comments_container #fb_comments .comment .comment_body, *border-bottom: 1px solid #f0f0f0;
#fb_comments_container #fb_comments .comment .c_content { }
margin-left: 70px;
display: block; } #fb_comments_container #fb_comments .comment .avatar {
#fb_comments_container #fb_comments .comment .comment_body p, position: absolute;
#fb_comments_container #fb_comments .comment .c_content p { top: 25px;
margin: 5px 0 15px 0; left: 0;
padding: 0; width: 50px;
line-height: 1.8; } float: left;
#fb_comments_container #fb_comments .comment .comment_body .author, }
#fb_comments_container #fb_comments .comment .c_content .author {
line-height: 1.5em; #fb_comments_container #fb_comments .comment .avatar img {
margin: 0; width: 48px;
padding: 0; } border: none;
#fb_comments_container #fb_comments .comment .comment_body .author b, border-radius: 5px;
#fb_comments_container #fb_comments .comment .c_content .author b { margin: 0;
color: #555; } }
#fb_comments_container #fb_comments .comment .comment_body .author small,
#fb_comments_container #fb_comments .comment .c_content .author small { #fb_comments_container #fb_comments .comment .comment_body,
font-weight: normal; #fb_comments_container #fb_comments .comment .c_content {
padding-left: 10px; margin-left: 70px;
font-size: 0.7em; display: block;
color: #666; } }
#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 { #fb_new_comment {
padding-bottom: 50px; } padding-bottom: 50px;
#fb_new_comment textarea { }
#fb_new_comment textarea {
border-radius: 5px; border-radius: 5px;
height: 80px; height: 80px;
width: 98%; width: 98%;
@ -474,49 +531,68 @@ dl dt {
font-size: 1em; font-size: 1em;
border: 1px solid rgba(150, 150, 150, 0.5); border: 1px solid rgba(150, 150, 150, 0.5);
*border: 1px solid #a8a8a8; *border: 1px solid #a8a8a8;
line-height: 1.5; } line-height: 1.5;
#fb_new_comment .comment_error { }
color: red;
text-align: center; #fb_new_comment .comment_error {
display: block; color: red;
font-size: 0.8em; text-align: center;
padding-top: 1em; } display: block;
#fb_new_comment .c_button:hover { font-size: 0.8em;
background: #E60900; padding-top: 1em;
color: #fff; }
text-decoration: none; }
#fb_new_comment .c_button, #fb_new_comment #c_submit { #fb_new_comment .c_button:hover {
cursor: pointer; background: #E60900;
font-family: "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #fff;
font-size: 1em; text-decoration: none;
line-height: 1.3em; }
letter-spacing: 1px;
border-radius: 5px; #fb_new_comment .c_button, #fb_new_comment #c_submit {
padding: 5px 5px 2px 5px; } cursor: pointer;
#fb_new_comment .input_body { font-family: "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
margin-top: 10px; } font-size: 1em;
#fb_new_comment .input_body ul { line-height: 1.3em;
list-style: none; letter-spacing: 1px;
padding: 5px 0; border-radius: 5px;
margin: auto 0; } padding: 5px 5px 2px 5px;
#fb_new_comment .input_body ul li { }
float: left;
margin-right: 2.2%; #fb_new_comment .input_body {
*margin-right: 22px; } margin-top: 10px;
#fb_new_comment .input_body ul li label { }
line-height: 1em; }
#fb_new_comment .input_body ul li input { #fb_new_comment .input_body ul {
border-radius: 5px; list-style: none;
border: 1px solid #ddd; padding: 5px 0;
padding: 5px; margin: auto 0;
background: rgba(255, 255, 255, 0.5); }
margin: 0 0 10px 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 { #SwfStore_farbox_0 {
height: 0; height: 0;
overflow: hidden; } overflow: hidden;
}
@media screen and (max-width: 320px) {
#fb_comments .c_content, #fb_comments .comment_body { @media screen and (max-width: 320px) {
margin-left: 57px; } #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 one or more lines are too long

View File

@ -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