mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Reduce transition props in <body> to padding (#236)
This commit is contained in:
parent
662dd80fc5
commit
5c32efa7d3
@ -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 {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user