mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02: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;
|
transition: bottom $transition-ease;
|
||||||
sidebar-toggle();
|
sidebar-toggle();
|
||||||
|
|
||||||
if (hexo-config('back2top.scrollpercent')) {
|
if (!hexo-config('back2top.scrollpercent')) {
|
||||||
width: initial;
|
|
||||||
} else {
|
|
||||||
width: 24px;
|
width: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -25,10 +25,6 @@
|
|||||||
// ==================================================
|
// ==================================================
|
||||||
// Post blocks.
|
// Post blocks.
|
||||||
.main-inner {
|
.main-inner {
|
||||||
background: initial;
|
|
||||||
box-shadow: initial;
|
|
||||||
padding: initial;
|
|
||||||
|
|
||||||
.sub-menu, .post-block, .comments, .pagination {
|
.sub-menu, .post-block, .comments, .pagination {
|
||||||
background: var(--content-bg-color);
|
background: var(--content-bg-color);
|
||||||
border-radius: $border-radius-inner;
|
border-radius: $border-radius-inner;
|
||||||
@ -50,11 +46,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sub-menu(s).
|
|
||||||
.sub-menu {
|
|
||||||
border-bottom: initial;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Post & Comments blocks.
|
// Post & Comments blocks.
|
||||||
.post-block, .comments {
|
.post-block, .comments {
|
||||||
padding: $content-desktop-padding;
|
padding: $content-desktop-padding;
|
||||||
|
|||||||
@ -34,22 +34,17 @@
|
|||||||
|
|
||||||
.main-inner {
|
.main-inner {
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
background: var(--content-bg-color);
|
|
||||||
border-radius: $border-radius-inner;
|
border-radius: $border-radius-inner;
|
||||||
box-shadow: $box-shadow-inner;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: $content-desktop-padding;
|
|
||||||
width: $content-wrap;
|
width: $content-wrap;
|
||||||
|
|
||||||
+tablet-mobile() {
|
+tablet-mobile() {
|
||||||
border-radius: initial;
|
border-radius: initial;
|
||||||
padding: 20px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-inner {
|
.footer-inner {
|
||||||
|
|
||||||
if (hexo-config('sidebar.position') == 'right') {
|
if (hexo-config('sidebar.position') == 'right') {
|
||||||
padding-right: $sidebar-desktop + $sidebar-offset;
|
padding-right: $sidebar-desktop + $sidebar-offset;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -1,7 +1,4 @@
|
|||||||
.sidebar {
|
.sidebar {
|
||||||
background: initial;
|
|
||||||
bottom: initial;
|
|
||||||
box-shadow: none;
|
|
||||||
margin-top: $sidebar-offset;
|
margin-top: $sidebar-offset;
|
||||||
position: -webkit-sticky;
|
position: -webkit-sticky;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
.sub-menu {
|
.sub-menu {
|
||||||
border-bottom: 1px solid $table-border-color;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 6px 0;
|
padding: 6px 0;
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,21 @@
|
|||||||
@import '_sub-menu';
|
@import '_sub-menu';
|
||||||
@import '_sidebar';
|
@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 {
|
.post-block:first-of-type {
|
||||||
padding-top: 40px;
|
padding-top: 40px;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user