Some minor fixes

This commit is contained in:
Mimi 2020-05-13 00:22:20 +08:00
parent d3d4bd56bb
commit bf3666fd19
4 changed files with 6 additions and 8 deletions

View File

@ -109,11 +109,9 @@ var templates = {
}, },
getHTML: function(rows) { getHTML: function(rows) {
var rowHTML = rows.map(row => { return rows.map(row => {
return `<div class="group-picture-row">${this.getColumnHTML(row)}</div>`; return `<div class="group-picture-row">${this.getColumnHTML(row)}</div>`;
}).join(''); }).join('');
return `<div class="group-picture-container">${rowHTML}</div>`;
}, },
getColumnHTML: function(pictures) { getColumnHTML: function(pictures) {

View File

@ -28,9 +28,9 @@ h1, h2, h3, h4, h5, h6 {
margin: 20px 0 15px; margin: 20px 0 15px;
} }
for headline in (1 .. 6) { for $headline in (1 .. 6) {
h{headline} { h{$headline} {
font-size: $font-size-headings-base - $font-size-headings-step * headline; font-size: $font-size-headings-base - $font-size-headings-step * $headline;
} }
} }

View File

@ -132,8 +132,8 @@ $table-row-hover-bg-color-dark = #363636;
// Code & Code Blocks // Code & Code Blocks
// -------------------------------------------------- // --------------------------------------------------
$code-font-family = $font-family-monospace; $code-font-family = $font-family-monospace;
$code-foreground = $black-light;
$code-background = $gainsboro; $code-background = $gainsboro;
$code-foreground = $black-light;
$highlight-background = convert(hexo-config('highlight.light.background')); $highlight-background = convert(hexo-config('highlight.light.background'));
$highlight-foreground = convert(hexo-config('highlight.light.foreground')); $highlight-foreground = convert(hexo-config('highlight.light.foreground'));

View File

@ -106,7 +106,7 @@ NexT.motion.middleWares = {
} }
}); });
if (CONFIG.motion.async) { if (CONFIG.motion.async || !document.querySelectorAll('.menu-item').length) {
integrator.next(); integrator.next();
} }
}, },