提交 174d293e 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

chore(release): 1.4.1

上级 1da9fd5d
......@@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### 1.4.1 (2019-09-11)
See: [https://github.com/liuyib/hexo-theme-stun/releases/tag/v1.4.1](https://github.com/liuyib/hexo-theme-stun/releases/tag/v1.4.1)
## 1.4.0 (2019-09-09)
See: [https://github.com/liuyib/hexo-theme-stun/releases/tag/v1.4.0](https://github.com/liuyib/hexo-theme-stun/releases/tag/v1.4.0)
......
{
"name": "hexo-theme-stun",
"version": "1.4.0",
"version": "1.4.1",
"description": "A beautiful blog theme - stun",
"homepage": "https://liuyib.github.io",
"scripts": {
......
.sidebar {
width: convert(hexo-config('sidebar.width') || '$sidebar-width');
&.sticky {
position: fixed;
top: convert(hexo-config('sidebar.offsetTop') || '30px');
z-index: $z-index0;
transform: translateZ(0);
if (hexo-config('sidebar.enable')) {
float: convert(hexo-config('sidebar.position'));
}
.hide {
......@@ -15,10 +12,16 @@
&-inner {
border-radius: 5px;
padding: 1rem;
width: 100%;
height: 100%;
width: convert(hexo-config('sidebar.width') || '$sidebar-width');
font-size: $font-size-sidebar;
background-color: $white;
&.sticky {
position: fixed;
top: convert(hexo-config('sidebar.offsetTop') || '30px');
z-index: $z-index0;
transform: translateZ(0);
}
}
&-nav {
......
......@@ -26,12 +26,6 @@
font-size: $font-size-main;
}
if (hexo-config('sidebar.enable')) {
.sidebar {
float: convert(hexo-config('sidebar.position'));
}
}
.content-wrap {
width: 'calc(100% - %s)' % ($sidebar-width + $main-sidebar-gap);
......
......@@ -86,7 +86,7 @@ $(document).ready(function () {
// Sticky the sidebar when it arrived the top.
function sidebarSticky () {
var $sidebar = $('#sidebar');
var $sidebar = $('.sidebar-inner');
var targetY =
document.getElementById('main').getBoundingClientRect().top;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册