diff --git a/source/css/_common/scaffolding/base.styl b/source/css/_common/scaffolding/base.styl index ac66fde..6c90faf 100644 --- a/source/css/_common/scaffolding/base.styl +++ b/source/css/_common/scaffolding/base.styl @@ -15,7 +15,7 @@ body { line-height: $line-height-base; min-height: 100%; position: relative; - transition: all $transition-ease; + transition: padding $transition-ease; } h1, h2, h3, h4, h5, h6 { diff --git a/source/css/_schemes/Muse/_sidebar.styl b/source/css/_schemes/Muse/_sidebar.styl index ba04453..c1b73bd 100644 --- a/source/css/_schemes/Muse/_sidebar.styl +++ b/source/css/_schemes/Muse/_sidebar.styl @@ -1,7 +1,7 @@ if (hexo-config('sidebar.position') == 'right') { .sidebar-active { +desktop() { - margin-right: $sidebar-desktop; + padding-right: $sidebar-desktop; } } @@ -15,7 +15,7 @@ if (hexo-config('sidebar.position') == 'right') { } else { .sidebar-active { +desktop() { - margin-left: $sidebar-desktop; + padding-left: $sidebar-desktop; } }