From bf3666fd19ac45053dc79ad1e4a53cfe94c60966 Mon Sep 17 00:00:00 2001
From: Mimi <1119186082@qq.com>
Date: Wed, 13 May 2020 00:22:20 +0800
Subject: [PATCH] Some minor fixes
---
scripts/tags/group-pictures.js | 4 +---
source/css/_common/scaffolding/base.styl | 6 +++---
source/css/_variables/base.styl | 2 +-
source/js/motion.js | 2 +-
4 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/scripts/tags/group-pictures.js b/scripts/tags/group-pictures.js
index e5e707d..69af1aa 100644
--- a/scripts/tags/group-pictures.js
+++ b/scripts/tags/group-pictures.js
@@ -109,11 +109,9 @@ var templates = {
},
getHTML: function(rows) {
- var rowHTML = rows.map(row => {
+ return rows.map(row => {
return `
${this.getColumnHTML(row)}
`;
}).join('');
-
- return `${rowHTML}
`;
},
getColumnHTML: function(pictures) {
diff --git a/source/css/_common/scaffolding/base.styl b/source/css/_common/scaffolding/base.styl
index 32e6f9d..5149fb3 100644
--- a/source/css/_common/scaffolding/base.styl
+++ b/source/css/_common/scaffolding/base.styl
@@ -28,9 +28,9 @@ h1, h2, h3, h4, h5, h6 {
margin: 20px 0 15px;
}
-for headline in (1 .. 6) {
- h{headline} {
- font-size: $font-size-headings-base - $font-size-headings-step * headline;
+for $headline in (1 .. 6) {
+ h{$headline} {
+ font-size: $font-size-headings-base - $font-size-headings-step * $headline;
}
}
diff --git a/source/css/_variables/base.styl b/source/css/_variables/base.styl
index 815f73e..3e37395 100644
--- a/source/css/_variables/base.styl
+++ b/source/css/_variables/base.styl
@@ -132,8 +132,8 @@ $table-row-hover-bg-color-dark = #363636;
// Code & Code Blocks
// --------------------------------------------------
$code-font-family = $font-family-monospace;
-$code-foreground = $black-light;
$code-background = $gainsboro;
+$code-foreground = $black-light;
$highlight-background = convert(hexo-config('highlight.light.background'));
$highlight-foreground = convert(hexo-config('highlight.light.foreground'));
diff --git a/source/js/motion.js b/source/js/motion.js
index 026199a..ce793a1 100644
--- a/source/js/motion.js
+++ b/source/js/motion.js
@@ -106,7 +106,7 @@ NexT.motion.middleWares = {
}
});
- if (CONFIG.motion.async) {
+ if (CONFIG.motion.async || !document.querySelectorAll('.menu-item').length) {
integrator.next();
}
},