Hexo博客NexT主题下添加文章边框阴影效果

1.打开themes/next/source/css/_custom/custom.styl文件

2.在custom.styl文件中添加如下配置

1
2
3
4
5
6
7
.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);
}

Click and drag to move

3.重新hexo d -g即可看到效果

imgClick and drag to move