Code style update

This commit is contained in:
Mimi 2020-08-17 00:34:58 +08:00
parent 376d71878f
commit b07a2a2913
7 changed files with 36 additions and 40 deletions

View File

@ -15,20 +15,6 @@ hr {
display: none;
}
// Page - Container
// --------------------------------------------------
.main-inner {
padding-bottom: 80px;
}
.post-block:first-of-type {
padding-top: 80px;
+mobile() {
padding-top: 60px;
}
}
// Pagination
// --------------------------------------------------
.pagination {

View File

@ -16,15 +16,3 @@
padding-top: 50px;
}
}
.main-inner {
padding-bottom: 60px;
}
.post-block:first-of-type {
padding-top: 70px;
+mobile() {
padding-top: 35px;
}
}

View File

@ -12,3 +12,17 @@
width: auto;
}
}
// Page - Container
// --------------------------------------------------
.main-inner {
padding-bottom: $content-padding-bottom;
}
.post-block:first-of-type {
padding-top: $posts-first-padding;
+mobile() {
padding-top: $posts-first-padding-mobile;
}
}

View File

@ -17,3 +17,17 @@
.site-subtitle {
margin: 10px 10px 0;
}
.site-nav-toggle, .site-nav-right {
+tablet() {
flex-column();
}
.toggle {
color: white;
.toggle-line {
background: white;
}
}
}

View File

@ -1,17 +1,3 @@
.site-nav-toggle, .site-nav-right {
+tablet() {
flex-column();
}
.toggle {
color: white;
.toggle-line {
background: white;
}
}
}
.site-nav {
+tablet() {
display: none;

View File

@ -3,6 +3,10 @@
@import "Muse.styl";
$content-padding-bottom = 80px;
$posts-first-padding = 80px;
$posts-first-padding-mobile = 60px;
$link-decoration-color = $grey-light;
$content-bg-color = $whitesmoke;
$menu-item-bg-color = $grey-lighter;

View File

@ -3,3 +3,7 @@
$sidebar-width = hexo-config('sidebar.width') is a 'unit' ? hexo-config('sidebar.width') : 320;
$sidebar-desktop = unit($sidebar-width, 'px');
$content-padding-bottom = 60px;
$posts-first-padding = 70px;
$posts-first-padding-mobile = 35px;