From 74cc1d0ab918e6b61478b52ba9fb3467f1a8803d Mon Sep 17 00:00:00 2001 From: Samuel Huang Date: Wed, 14 Aug 2024 23:56:45 -0400 Subject: [PATCH] Format code according to stylint --- source/css/_common/scaffolding/tags/note.styl | 6 +++--- source/css/_variables/base.styl | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/source/css/_common/scaffolding/tags/note.styl b/source/css/_common/scaffolding/tags/note.styl index e2e605e12..4708f592a 100644 --- a/source/css/_common/scaffolding/tags/note.styl +++ b/source/css/_common/scaffolding/tags/note.styl @@ -88,9 +88,9 @@ if (hexo-config('note.style') != 'disabled') { if (hexo-config('darkmode')) { @media (prefers-color-scheme: dark) { - background: $note-modern-bg-dark[$type] - border-color: $note-modern-border-dark[$type] - color: $note-modern-text-dark[$type] + background: $note-modern-bg-dark[$type]; + border-color: $note-modern-border-dark[$type]; + color: $note-modern-text-dark[$type]; a:not(.btn) { border-bottom-color: $note-modern-text-dark[$type]; diff --git a/source/css/_variables/base.styl b/source/css/_variables/base.styl index 4416a83f1..8a25e2bdb 100644 --- a/source/css/_variables/base.styl +++ b/source/css/_variables/base.styl @@ -374,11 +374,14 @@ $note-modern-hover = { danger : darken(spin($note-modern-text.danger, -10), 22%) }; -transform-map(map, transform) - new-map = {}; - for key, val in map +transform-map(map, transform) { + new-map = { + } + for key, val in map { new-map[key] = transform(val); + } return new-map; +} $note-modern-border-dark = transform-map($note-modern-hover, @(val) { lighten(val, 10%) }); $note-modern-bg-dark = transform-map($note-modern-text, @(val) { desaturate(darken(val, 20%), 20%) });