Skip to content

Commit

Permalink
Fix content width
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Nov 11, 2022
1 parent 5b9d0ac commit f25a72e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/css/_schemes/Muse/_sidebar.styl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
if (hexo-config('sidebar.position') == 'right') {
.sidebar-active {
+desktop() {
// Note: $sidebar-desktop + $content-desktop-large should be greater than desktop-large threshold
// Otherwise a horizontal scrollbar will appear
+desktop-large() {
padding-right: $sidebar-desktop;
}
}
Expand All @@ -14,7 +16,7 @@ if (hexo-config('sidebar.position') == 'right') {
}
} else {
.sidebar-active {
+desktop() {
+desktop-large() {
padding-left: $sidebar-desktop;
}
}
Expand Down

0 comments on commit f25a72e

Please sign in to comment.