From 6270c15b7656311337bd506d6288605aebf05781 Mon Sep 17 00:00:00 2001 From: shenyu <448766534@qq.com> Date: Fri, 9 Apr 2021 13:57:44 +0800 Subject: [PATCH] :zap: fix: sidebar --- layout/layout.ejs | 6 ------ source/css/custom.styl | 9 +++++++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/layout/layout.ejs b/layout/layout.ejs index f84d86f..07d71f4 100644 --- a/layout/layout.ejs +++ b/layout/layout.ejs @@ -28,12 +28,6 @@ - <%- partial('_partial/modal') %> <%- partial('_partial/after-footer') %> diff --git a/source/css/custom.styl b/source/css/custom.styl index 40e3fb2..08b8bf5 100644 --- a/source/css/custom.styl +++ b/source/css/custom.styl @@ -25,7 +25,12 @@ if hexo-config('mouse.enable') @media(max-width: 768px) .tocbot display none !important - .content + .sidebar + left 0 &.on - transform translateX($aside-width) + left - $aside-width + .content + transform translateX($aside-width) + &.on + transform translateX(0)