Reduce transition props in <body> to padding (#236)

This commit is contained in:
2021-04-09 14:37:40 +08:00 committed by GitHub
parent 662dd80fc5
commit 5c32efa7d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ body {
line-height: $line-height-base; line-height: $line-height-base;
min-height: 100%; min-height: 100%;
position: relative; position: relative;
transition: all $transition-ease; transition: padding $transition-ease;
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {

View File

@ -1,7 +1,7 @@
if (hexo-config('sidebar.position') == 'right') { if (hexo-config('sidebar.position') == 'right') {
.sidebar-active { .sidebar-active {
+desktop() { +desktop() {
margin-right: $sidebar-desktop; padding-right: $sidebar-desktop;
} }
} }
@ -15,7 +15,7 @@ if (hexo-config('sidebar.position') == 'right') {
} else { } else {
.sidebar-active { .sidebar-active {
+desktop() { +desktop() {
margin-left: $sidebar-desktop; padding-left: $sidebar-desktop;
} }
} }