👽 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

@ -203,12 +203,14 @@ html {
height: 100%; height: 100%;
max-height: 100%; max-height: 100%;
padding: 0; padding: 0;
margin: 0; } margin: 0;
}
body { body {
padding: 0; padding: 0;
margin: 0; margin: 0;
line-height: 1.6em; } line-height: 1.6em;
}
.clear { .clear {
clear: both; clear: both;
@ -216,50 +218,63 @@ html {
overflow: hidden; overflow: hidden;
visibility: hidden; visibility: hidden;
width: 0; width: 0;
height: 0; } height: 0;
}
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
line-height: 1; line-height: 1;
margin: 2rem 0; } margin: 2rem 0;
}
h1 { h1 {
font-size: 2.1rem; font-size: 2.1rem;
line-height: 1.2em; } line-height: 1.2em;
}
h2 { h2 {
font-size: 1.9rem; font-size: 1.9rem;
line-height: 1.2em; } line-height: 1.2em;
}
h3 { h3 {
font-size: 1.75rem; } font-size: 1.75rem;
}
h4 { h4 {
font-size: 1.3rem; } font-size: 1.3rem;
}
h5 { h5 {
font-size: 1.3rem; } font-size: 1.3rem;
}
h6 { h6 {
font-size: 1.3rem; } font-size: 1.3rem;
}
img { img {
max-width: 100%; max-width: 100%;
height: auto; } height: auto;
}
p, ul, ol, dl { p, ul, ol, dl {
margin: 1em 0; } margin: 1em 0;
}
ol ol, ul ul, ul ol, ol ul { ol ol, ul ul, ul ol, ol ul {
margin: 0.4em 0; } margin: 0.4em 0;
}
ul p, ol p, li p, .content li p, blockquote p, .content blockquote p, ul p, ol p, li p, .content li p, blockquote p, .content blockquote p,
.post blockquote p, .post li p { .post blockquote p, .post li p {
margin: 0; margin: 0;
overflow: visible; } overflow: visible;
}
a img { a img {
border: none; } border: none;
}
dl dt { dl dt {
float: left; float: left;
@ -270,11 +285,13 @@ dl dt {
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;
@ -282,34 +299,42 @@ dl dt {
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 { code, tt {
padding: 1px 3px; padding: 1px 3px;
@ -319,7 +344,9 @@ dl dt {
border: 1px solid #E3EDF3; border: 1px solid #E3EDF3;
background: #f7f7f9; background: #f7f7f9;
color: #d14; color: #d14;
border-radius: 2px; } border-radius: 2px;
}
/** /**
pre { pre {
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
@ -407,65 +434,95 @@ 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 { #fb_comments_container #fb_comments {
list-style-type: none; list-style-type: none;
padding: 0; } padding: 0;
}
#fb_comments_container #fb_comments h1 { #fb_comments_container #fb_comments h1 {
font-size: 1.3em; } font-size: 1.3em;
}
#fb_comments_container #fb_comments h2 { #fb_comments_container #fb_comments h2 {
font-size: 1.2em; } font-size: 1.2em;
}
#fb_comments_container #fb_comments h3 { #fb_comments_container #fb_comments h3 {
font-size: 1.1em; } font-size: 1.1em;
}
#fb_comments_container #fb_comments h4, #fb_comments_container #fb_comments h5, #fb_comments_container #fb_comments h4, #fb_comments_container #fb_comments h5,
#fb_comments_container #fb_comments h6 { #fb_comments_container #fb_comments h6 {
font-size: 1.05em; } font-size: 1.05em;
}
#fb_comments_container #fb_comments .comment { #fb_comments_container #fb_comments .comment {
position: relative; position: relative;
padding: 25px 0; padding: 25px 0;
border-bottom: 1px solid rgba(150, 150, 150, 0.2); border-bottom: 1px solid rgba(150, 150, 150, 0.2);
*border-bottom: 1px solid #f0f0f0; } *border-bottom: 1px solid #f0f0f0;
}
#fb_comments_container #fb_comments .comment .avatar { #fb_comments_container #fb_comments .comment .avatar {
position: absolute; position: absolute;
top: 25px; top: 25px;
left: 0; left: 0;
width: 50px; width: 50px;
float: left; } float: left;
}
#fb_comments_container #fb_comments .comment .avatar img { #fb_comments_container #fb_comments .comment .avatar img {
width: 48px; width: 48px;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
margin: 0; } margin: 0;
}
#fb_comments_container #fb_comments .comment .comment_body, #fb_comments_container #fb_comments .comment .comment_body,
#fb_comments_container #fb_comments .comment .c_content { #fb_comments_container #fb_comments .comment .c_content {
margin-left: 70px; margin-left: 70px;
display: block; } display: block;
}
#fb_comments_container #fb_comments .comment .comment_body p, #fb_comments_container #fb_comments .comment .comment_body p,
#fb_comments_container #fb_comments .comment .c_content p { #fb_comments_container #fb_comments .comment .c_content p {
margin: 5px 0 15px 0; margin: 5px 0 15px 0;
padding: 0; padding: 0;
line-height: 1.8; } line-height: 1.8;
}
#fb_comments_container #fb_comments .comment .comment_body .author, #fb_comments_container #fb_comments .comment .comment_body .author,
#fb_comments_container #fb_comments .comment .c_content .author { #fb_comments_container #fb_comments .comment .c_content .author {
line-height: 1.5em; line-height: 1.5em;
margin: 0; margin: 0;
padding: 0; } padding: 0;
}
#fb_comments_container #fb_comments .comment .comment_body .author b, #fb_comments_container #fb_comments .comment .comment_body .author b,
#fb_comments_container #fb_comments .comment .c_content .author b { #fb_comments_container #fb_comments .comment .c_content .author b {
color: #555; } color: #555;
}
#fb_comments_container #fb_comments .comment .comment_body .author small, #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 .c_content .author small {
font-weight: normal; font-weight: normal;
padding-left: 10px; padding-left: 10px;
font-size: 0.7em; font-size: 0.7em;
color: #666; } 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;
@ -474,17 +531,23 @@ 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 { #fb_new_comment .comment_error {
color: red; color: red;
text-align: center; text-align: center;
display: block; display: block;
font-size: 0.8em; font-size: 0.8em;
padding-top: 1em; } padding-top: 1em;
}
#fb_new_comment .c_button:hover { #fb_new_comment .c_button:hover {
background: #E60900; background: #E60900;
color: #fff; color: #fff;
text-decoration: none; } text-decoration: none;
}
#fb_new_comment .c_button, #fb_new_comment #c_submit { #fb_new_comment .c_button, #fb_new_comment #c_submit {
cursor: pointer; cursor: pointer;
font-family: "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-family: "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
@ -492,31 +555,44 @@ dl dt {
line-height: 1.3em; line-height: 1.3em;
letter-spacing: 1px; letter-spacing: 1px;
border-radius: 5px; border-radius: 5px;
padding: 5px 5px 2px 5px; } padding: 5px 5px 2px 5px;
}
#fb_new_comment .input_body { #fb_new_comment .input_body {
margin-top: 10px; } margin-top: 10px;
}
#fb_new_comment .input_body ul { #fb_new_comment .input_body ul {
list-style: none; list-style: none;
padding: 5px 0; padding: 5px 0;
margin: auto 0; } margin: auto 0;
}
#fb_new_comment .input_body ul li { #fb_new_comment .input_body ul li {
float: left; float: left;
margin-right: 2.2%; margin-right: 2.2%;
*margin-right: 22px; } *margin-right: 22px;
}
#fb_new_comment .input_body ul li label { #fb_new_comment .input_body ul li label {
line-height: 1em; } line-height: 1em;
}
#fb_new_comment .input_body ul li input { #fb_new_comment .input_body ul li input {
border-radius: 5px; border-radius: 5px;
border: 1px solid #ddd; border: 1px solid #ddd;
padding: 5px; padding: 5px;
background: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.5);
margin: 0 0 10px 0; } 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) { @media screen and (max-width: 320px) {
#fb_comments .c_content, #fb_comments .comment_body { #fb_comments .c_content, #fb_comments .comment_body {
margin-left: 57px; } margin-left: 57px;
}
} }

File diff suppressed because one or more lines are too long

View File

@ -70,6 +70,7 @@ a:hover, a:active {
-webkit-transform: translateY(0); -webkit-transform: translateY(0);
} }
} }
@-moz-keyframes fadeInDown { @-moz-keyframes fadeInDown {
0% { 0% {
opacity: 0; opacity: 0;
@ -80,6 +81,7 @@ a:hover, a:active {
-moz-transform: translateY(0); -moz-transform: translateY(0);
} }
} }
@-o-keyframes fadeInDown { @-o-keyframes fadeInDown {
0% { 0% {
opacity: 0; opacity: 0;
@ -90,6 +92,7 @@ a:hover, a:active {
-o-transform: translateY(0); -o-transform: translateY(0);
} }
} }
@keyframes fadeInDown { @keyframes fadeInDown {
0% { 0% {
opacity: 0; opacity: 0;
@ -100,6 +103,7 @@ a:hover, a:active {
transform: translateY(0); transform: translateY(0);
} }
} }
.fadeInDown { .fadeInDown {
-webkit-animation-name: fadeInDown; -webkit-animation-name: fadeInDown;
-moz-animation-name: fadeInDown; -moz-animation-name: fadeInDown;
@ -124,46 +128,56 @@ a:hover, a:active {
height: 60px; height: 60px;
border-bottom: 1px solid #f2f2f2; border-bottom: 1px solid #f2f2f2;
} }
.page-top .nav { .page-top .nav {
list-style: none; list-style: none;
padding: 18px 30px; padding: 18px 30px;
float: left; float: left;
font-size: 12px; font-size: 12px;
} }
.page-top .nav li { .page-top .nav li {
position: relative; position: relative;
display: initial; display: initial;
padding-right: 20px; padding-right: 20px;
} }
.page-top .nav a { .page-top .nav a {
color: #5A5A5A; color: #5A5A5A;
} }
.page-top .nav a:hover { .page-top .nav a:hover {
color: #4786D6; color: #4786D6;
} }
.page-top .nav a.current { .page-top .nav a.current {
color: #5A5A5A; color: #5A5A5A;
padding-bottom: 22px; padding-bottom: 22px;
border-bottom: 1px solid #5A5A5A; border-bottom: 1px solid #5A5A5A;
} }
.page-top .information { .page-top .information {
float: right; float: right;
padding-top: 12px; padding-top: 12px;
padding-right: 20px; padding-right: 20px;
} }
.page-top .information .avatar { .page-top .information .avatar {
float: right; float: right;
} }
.page-top .information .avatar img { .page-top .information .avatar img {
width: 32px; width: 32px;
height: 32px; height: 32px;
border-radius: 300px; border-radius: 300px;
} }
.page-top .information .back_btn { .page-top .information .back_btn {
float: left; float: left;
padding-top: 5px; padding-top: 5px;
margin-right: -10px; margin-right: -10px;
} }
.page-top .information .back_btn li { .page-top .information .back_btn li {
display: initial; display: initial;
padding-right: 40px; padding-right: 40px;
@ -182,17 +196,21 @@ a:hover, a:active {
z-index: 4; z-index: 4;
border-right: 1px solid #f2f2f2; border-right: 1px solid #f2f2f2;
} }
.sidebar .logo-title { .sidebar .logo-title {
text-align: center; text-align: center;
padding-top: 240px; padding-top: 240px;
} }
.sidebar .logo-title .description { .sidebar .logo-title .description {
font-size: 14px; font-size: 14px;
color: #565654; color: #565654;
} }
.sidebar .logo-title .logo { .sidebar .logo-title .logo {
margin: 0 auto; margin: 0 auto;
} }
.sidebar .logo-title .title h3 { .sidebar .logo-title .title h3 {
text-transform: uppercase; text-transform: uppercase;
font-size: 2rem; font-size: 2rem;
@ -201,29 +219,35 @@ a:hover, a:active {
line-height: 1; line-height: 1;
margin: 0; margin: 0;
} }
.sidebar .logo-title .title a { .sidebar .logo-title .title a {
text-decoration: none; text-decoration: none;
color: #464646; color: #464646;
font-size: 2rem; font-size: 2rem;
font-weight: bold; font-weight: bold;
} }
.sidebar .social-links { .sidebar .social-links {
list-style: none; list-style: none;
padding: 0; padding: 0;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
} }
.sidebar .social-links i { .sidebar .social-links i {
margin-right: 3px; margin-right: 3px;
} }
.sidebar .social-links li { .sidebar .social-links li {
display: inline; display: inline;
padding: 0 4px; padding: 0 4px;
line-height: 0; line-height: 0;
} }
.sidebar .social-links a { .sidebar .social-links a {
color: #565654; color: #565654;
} }
.sidebar .social-links a:hover { .sidebar .social-links a:hover {
color: #4786D6; color: #4786D6;
} }
@ -232,12 +256,14 @@ a:hover, a:active {
background-color: #FFF; background-color: #FFF;
margin: 30px; margin: 30px;
} }
.post .post-title h1 { .post .post-title h1 {
text-transform: uppercase; text-transform: uppercase;
font-size: 30px; font-size: 30px;
letter-spacing: 5px; letter-spacing: 5px;
line-height: 1; line-height: 1;
} }
.post .post-title h2 { .post .post-title h2 {
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1px; letter-spacing: 1px;
@ -246,6 +272,7 @@ a:hover, a:active {
font-weight: 600; font-weight: 600;
color: #5f5f5f; color: #5f5f5f;
} }
.post .post-title h3 { .post .post-title h3 {
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1px; letter-spacing: 1px;
@ -255,79 +282,97 @@ a:hover, a:active {
font-size: 22px; font-size: 22px;
margin: 0; margin: 0;
} }
.post .post-title a { .post .post-title a {
text-decoration: none; text-decoration: none;
letter-spacing: 1px; letter-spacing: 1px;
color: #5f5f5f; color: #5f5f5f;
} }
.post .post-title a:hover { .post .post-title a:hover {
text-decoration: underline; text-decoration: underline;
} }
.post .post-content a { .post .post-content a {
text-decoration: none; text-decoration: none;
letter-spacing: 1px; letter-spacing: 1px;
color: #4786D6; color: #4786D6;
} }
.post .post-content a:hover { .post .post-content a:hover {
color: #2F69B3; color: #2F69B3;
} }
.post .post-content h3 { .post .post-content h3 {
color: #5F5F5F; color: #5F5F5F;
font-size: 22px; font-size: 22px;
font-weight: 600; font-weight: 600;
} }
.post .post-content h4 { .post .post-content h4 {
color: #5F5F5F; color: #5F5F5F;
font-size: 16px; font-size: 16px;
} }
.post .post-footer { .post .post-footer {
padding: 0 0 30px 0; padding: 0 0 30px 0;
border-bottom: 1px solid #f2f2f2; border-bottom: 1px solid #f2f2f2;
} }
.post .post-footer .meta { .post .post-footer .meta {
max-width: 100%; max-width: 100%;
height: 25px; height: 25px;
color: #bbbbbb; color: #bbbbbb;
} }
.post .post-footer .meta .info { .post .post-footer .meta .info {
float: left; float: left;
font-size: 12px; font-size: 12px;
} }
.post .post-footer .meta .info .date { .post .post-footer .meta .info .date {
margin-right: 10px; margin-right: 10px;
} }
.post .post-footer .meta a { .post .post-footer .meta a {
text-decoration: none; text-decoration: none;
color: #bbbbbb; color: #bbbbbb;
padding-right: 10px; padding-right: 10px;
} }
.post .post-footer .meta a:hover { .post .post-footer .meta a:hover {
color: #4786D6; color: #4786D6;
} }
.post .post-footer .meta i { .post .post-footer .meta i {
margin-right: 6px; margin-right: 6px;
} }
.post .post-footer .tags { .post .post-footer .tags {
padding-bottom: 15px; padding-bottom: 15px;
font-size: 13px; font-size: 13px;
} }
.post .post-footer .tags ul { .post .post-footer .tags ul {
list-style-type: none; list-style-type: none;
display: inline; display: inline;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.post .post-footer .tags ul li { .post .post-footer .tags ul li {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
padding-right: 5px; padding-right: 5px;
display: inline; display: inline;
} }
.post .post-footer .tags a { .post .post-footer .tags a {
text-decoration: none; text-decoration: none;
color: rgba(0, 0, 0, 0.44); color: rgba(0, 0, 0, 0.44);
font-weight: 400; font-weight: 400;
} }
.post .post-footer .tags a:hover { .post .post-footer .tags a:hover {
text-decoration: none; text-decoration: none;
} }
@ -337,23 +382,28 @@ a:hover, a:active {
padding: 0px 0 56px 0; padding: 0px 0 56px 0;
border-bottom: 1px solid #f2f2f2; border-bottom: 1px solid #f2f2f2;
} }
.pagination ul { .pagination ul {
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 13px; height: 13px;
} }
.pagination ul li { .pagination ul li {
margin: 0 2px 0 2px; margin: 0 2px 0 2px;
display: inline; display: inline;
line-height: 1; line-height: 1;
} }
.pagination ul li a { .pagination ul li a {
text-decoration: none; text-decoration: none;
} }
.pagination .pre { .pagination .pre {
float: left; float: left;
} }
.pagination .next { .pagination .next {
float: right; float: right;
} }
@ -394,9 +444,11 @@ a:hover, a:active {
padding-bottom: 20px; padding-bottom: 20px;
background: #fff; background: #fff;
} }
.footer a { .footer a {
color: #A6A6A6; color: #A6A6A6;
} }
.footer a:hover { .footer a:hover {
color: #4786D6; color: #4786D6;
} }
@ -411,29 +463,36 @@ a:hover, a:active {
margin: 30px; margin: 30px;
padding: 0; padding: 0;
} }
.list-with-title li { .list-with-title li {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
} }
.list-with-title .listing-title { .list-with-title .listing-title {
font-size: 24px; font-size: 24px;
color: #666666; color: #666666;
font-weight: 600; font-weight: 600;
line-height: 2.2em; line-height: 2.2em;
} }
.list-with-title .listing { .list-with-title .listing {
padding: 0; padding: 0;
} }
.list-with-title .listing .listing-post { .list-with-title .listing .listing-post {
padding-bottom: 5px; padding-bottom: 5px;
} }
.list-with-title .listing .listing-post .post-time { .list-with-title .listing .listing-post .post-time {
float: right; float: right;
color: #C5C5C5; color: #C5C5C5;
} }
.list-with-title .listing .listing-post a { .list-with-title .listing .listing-post a {
color: #8F8F8F; color: #8F8F8F;
} }
.list-with-title .listing .listing-post a:hover { .list-with-title .listing .listing-post a:hover {
color: #4786D6; color: #4786D6;
} }
@ -451,11 +510,13 @@ a:hover, a:active {
background-color: #3E3E3E; background-color: #3E3E3E;
margin-right: 5px; margin-right: 5px;
} }
.evernote a { .evernote a {
color: #fff; color: #fff;
padding: 11px; padding: 11px;
font-size: 12px; font-size: 12px;
} }
.evernote a:hover { .evernote a:hover {
color: #ED6243; color: #ED6243;
padding: 11px; padding: 11px;
@ -468,10 +529,12 @@ a:hover, a:active {
background-color: #ED6243; background-color: #ED6243;
margin-right: 5px; margin-right: 5px;
} }
.weibo a { .weibo a {
color: #fff; color: #fff;
padding: 9px; padding: 9px;
} }
.weibo a:hover { .weibo a:hover {
color: #BD4226; color: #BD4226;
} }
@ -483,10 +546,12 @@ a:hover, a:active {
background-color: #59C0FD; background-color: #59C0FD;
margin-right: 5px; margin-right: 5px;
} }
.twitter a { .twitter a {
color: #fff; color: #fff;
padding: 9px; padding: 9px;
} }
.twitter a:hover { .twitter a:hover {
color: #4B9ECE; color: #4B9ECE;
} }
@ -495,6 +560,7 @@ a:hover, a:active {
.about { .about {
margin: 30px; margin: 30px;
} }
.about h3 { .about h3 {
font-size: 22px; font-size: 22px;
} }
@ -503,9 +569,11 @@ a:hover, a:active {
.links { .links {
margin: 30px; margin: 30px;
} }
.links h3 { .links h3 {
font-size: 22px; font-size: 22px;
} }
.links a { .links a {
cursor: pointer; cursor: pointer;
} }
@ -599,13 +667,16 @@ a.btn {
float: right; float: right;
padding-top: 30px; padding-top: 30px;
} }
.menu .btn-down { .menu .btn-down {
margin: 0px; margin: 0px;
} }
.menu .btn-down li { .menu .btn-down li {
list-style: none; list-style: none;
width: 100px; width: 100px;
} }
.menu .btn-down li a { .menu .btn-down li a {
display: inline-block; display: inline-block;
position: relative; position: relative;
@ -624,6 +695,7 @@ a.btn {
border-radius: 999em; border-radius: 999em;
margin-top: 5px; margin-top: 5px;
} }
.menu .btn-down li a:hover { .menu .btn-down li a:hover {
position: relative; position: relative;
padding: 0.5em 1.25em; padding: 0.5em 1.25em;
@ -641,6 +713,7 @@ a.btn {
border-radius: 999em; border-radius: 999em;
margin-top: 5px; margin-top: 5px;
} }
.menu .btn-down div { .menu .btn-down div {
position: absolute; position: absolute;
visibility: hidden; visibility: hidden;
@ -660,12 +733,15 @@ a.btn {
border-right: none; border-right: none;
z-index: 1; z-index: 1;
} }
.sidebar .logo-title { .sidebar .logo-title {
padding-top: 120px; padding-top: 120px;
} }
.sidebar .logo-title .title img { .sidebar .logo-title .title img {
width: 100px; width: 100px;
} }
.sidebar .logo-title .title h3 { .sidebar .logo-title .title h3 {
font-size: 20px; font-size: 20px;
} }

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