提交 180fd3b9 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

refactor: Modify the width of nav when the sidebar is not enabled

上级 5608830c
// $main-width: A calc value. // $main-width: A calc value.
// ----------------------------------------- // -----------------------------------------
@media (min-width: $main-width + $content-aside-gap * 2) { @media (min-width: $main-width + $content-aside-gap * 2) {
.header-nav-inner { if (hexo-config('sidebar.enable')) {
width: $main-width; .header-nav-inner {
width: $main-width;
}
} }
.main-inner { .main-inner {
width: $main-width; width: $main-width;
} }
...@@ -13,6 +15,12 @@ ...@@ -13,6 +15,12 @@
// $md-width: 992px - 0.02px // $md-width: 992px - 0.02px
// ----------------------------------------- // -----------------------------------------
@media (min-width: $md-width) { @media (min-width: $md-width) {
if (!hexo-config('sidebar.enable')) {
.header-nav-inner {
width: $md-width;
}
}
.header-nav-menu { .header-nav-menu {
display: inline-block !important; display: inline-block !important;
opacity: 1 !important; opacity: 1 !important;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册