Skip to content

Commit

Permalink
update theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Hua Zou committed Sep 2, 2019
1 parent 5801a31 commit 49b57f6
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ use_motion: true
fancybox: true

# Progress bar in the top during page loading.
pace: false
pace: true
# Themes list:
#pace-theme-big-counter
#pace-theme-bounce
Expand Down
5 changes: 0 additions & 5 deletions _includes/_macro/post-end-tag.html

This file was deleted.

14 changes: 13 additions & 1 deletion _includes/_partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div class="powered-by">
<i class="fa fa-user-md"></i><span id="busuanzi_container_site_uv">
本站访客数:<span id="busuanzi_value_site_uv"></span>
</span>
</div>

<span id="busuanzi_container_site_pv">
本站总访问量<span id="busuanzi_value_site_pv"></span>
</span>

<div class="copyright" >
{% assign current = site.time | date: '%Y' %}
{% assign since = site.since | downcase %}
Expand All @@ -10,7 +21,7 @@
</div>

{% if site.copyright %}
<div class="powered-by">
<!-- div class="powered-by">
{{ __.footer.powered | replace: '%s', '<a class="theme-link" href="https://jekyllrb.com">Jekyll</a>') }}
</div>
Expand All @@ -20,4 +31,5 @@
NexT.{{ site.scheme }}
</a>
</div>
-->
{% endif %}
18 changes: 18 additions & 0 deletions _includes/_partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
<link href="//cdn.bootcss.com/pace/1.0.2/themes/pink/pace-theme-flash.css" rel="stylesheet">

<script>
(function () {
if ('{{ page.password }}') {
if (prompt('请输入文章密码') !== '{{ page.password }}') {
alert('密码错误!');
if (history.length === 1) {
location.replace("http://xxxxxxx.xxx"); // 这里替换成你的首页
} else {
history.back();
}
}
}
})();
</script>


{% if site.pace %}
{% assign pace_css_uri = site.vendors._internal | append: '/pace/'| append: site.pace_theme | append: '.min.css?v=1.0.2' | relative_url %}
Expand Down
49 changes: 48 additions & 1 deletion _sass/_common/components/sidebar/sidebar-author.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,54 @@
max-width: $site-author-image-width;
height: $site-author-image-height;
border: $site-author-image-border-width solid $site-author-image-border-color;
/* 头像圆形 */
border-radius: 80px;
-webkit-border-radius: 80px;
-moz-border-radius: 80px;
box-shadow: inset 0 -1px 0 #333sf;
/* 设置循环动画 [animation: (play)动画名称 (2s)动画播放时长单位秒或微秒 (ase-out)动画播放的速度曲线为以低速结束
(1s)等待1秒然后开始动画 (1)动画播放次数(infinite为循环播放) ]*/

/* 鼠标经过头像旋转360度 */
-webkit-transition: -webkit-transform 1.0s ease-out;
-moz-transition: -moz-transform 1.0s ease-out;
transition: transform 1.0s ease-out;
}
img:hover {
/* 鼠标经过停止头像旋转
-webkit-animation-play-state:paused;
animation-play-state:paused;*/
/* 鼠标经过头像旋转360度 */
-webkit-transform: rotateZ(360deg);
-moz-transform: rotateZ(360deg);
transform: rotateZ(360deg);
}
/* Z 轴旋转动画 */
@-webkit-keyframes play {
0% {
-webkit-transform: rotateZ(0deg);
}
100% {
-webkit-transform: rotateZ(-360deg);
}
}
@-moz-keyframes play {
0% {
-moz-transform: rotateZ(0deg);
}
100% {
-moz-transform: rotateZ(-360deg);
}
}
@keyframes play {
0% {
transform: rotateZ(0deg);
}
100% {
transform: rotateZ(-360deg);
}
}


.site-author-name {
margin: $site-author-name-margin;
Expand All @@ -19,4 +66,4 @@
text-align: $site-description-align;
font-size: $site-description-font-size;
color: $site-description-color;
}
}
10 changes: 10 additions & 0 deletions _sass/_custom/custom.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
// Custom styles.

// 主页文章添加阴影效果
.post {
margin-top: 60px;
margin-bottom: 60px;
padding: 25px;
-webkit-box-shadow: 0 0 5px rgba(202, 203, 203, .5);
-moz-box-shadow: 0 0 5px rgba(202, 203, 204, .5);
}


//文章内容背景改成了半透明
.content-wrap {
background: rgba(255, 255, 255, 0.8);
Expand Down

0 comments on commit 49b57f6

Please sign in to comment.