mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Separate the styles of different schemes
This commit is contained in:
parent
d863229586
commit
bdf59f187c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -1,7 +1,4 @@
|
||||
.sidebar {
|
||||
background: initial;
|
||||
bottom: initial;
|
||||
box-shadow: none;
|
||||
margin-top: $sidebar-offset;
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
.sub-menu {
|
||||
border-bottom: 1px solid $table-border-color;
|
||||
margin: 0;
|
||||
padding: 6px 0;
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user