Separate the styles of different schemes

This commit is contained in:
Mimi 2020-08-15 14:47:16 +08:00
parent d863229586
commit bdf59f187c
6 changed files with 16 additions and 21 deletions

View File

@ -6,9 +6,7 @@
transition: bottom $transition-ease;
sidebar-toggle();
if (hexo-config('back2top.scrollpercent')) {
width: initial;
} else {
if (!hexo-config('back2top.scrollpercent')) {
width: 24px;
}

View File

@ -25,10 +25,6 @@
// ==================================================
// Post blocks.
.main-inner {
background: initial;
box-shadow: initial;
padding: initial;
.sub-menu, .post-block, .comments, .pagination {
background: var(--content-bg-color);
border-radius: $border-radius-inner;
@ -50,11 +46,6 @@
}
}
// Sub-menu(s).
.sub-menu {
border-bottom: initial;
}
// Post & Comments blocks.
.post-block, .comments {
padding: $content-desktop-padding;

View File

@ -34,22 +34,17 @@
.main-inner {
align-self: stretch;
background: var(--content-bg-color);
border-radius: $border-radius-inner;
box-shadow: $box-shadow-inner;
box-sizing: border-box;
padding: $content-desktop-padding;
width: $content-wrap;
+tablet-mobile() {
border-radius: initial;
padding: 20px;
width: 100%;
}
}
.footer-inner {
if (hexo-config('sidebar.position') == 'right') {
padding-right: $sidebar-desktop + $sidebar-offset;
} else {

View File

@ -1,7 +1,4 @@
.sidebar {
background: initial;
bottom: initial;
box-shadow: none;
margin-top: $sidebar-offset;
position: -webkit-sticky;
position: sticky;

View File

@ -1,5 +1,4 @@
.sub-menu {
border-bottom: 1px solid $table-border-color;
margin: 0;
padding: 6px 0;

View File

@ -4,6 +4,21 @@
@import '_sub-menu';
@import '_sidebar';
.main-inner {
background: var(--content-bg-color);
box-shadow: $box-shadow-inner;
padding: $content-desktop-padding;
+tablet-mobile() {
padding: 20px;
}
}
// Sub-menu(s).
.sub-menu {
border-bottom: 1px solid $table-border-color;
}
.post-block:first-of-type {
padding-top: 40px;
}