From 6a4ee1d180c92e8968b1b4ad30d63753128f66ff Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 16 Nov 2022 16:10:53 +0800 Subject: [PATCH] Update padding of note tag --- scripts/filters/post.js | 2 +- source/css/_common/scaffolding/tags/note.styl | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/scripts/filters/post.js b/scripts/filters/post.js index 5fb10ac..2faa1f9 100644 --- a/scripts/filters/post.js +++ b/scripts/filters/post.js @@ -17,7 +17,7 @@ hexo.extend.filter.register('after_post_render', data => { // External URL icon const exturlIcon = theme.exturl_icon ? '' : ''; data.content = data.content.replace(/]*\shref="([^"]+)"[^>]*>([^<]+)<\/a>/ig, (match, href, html) => { - // Exit if the href attribute doesn't exists. + // Exit if the href attribute doesn't exist. if (!href) return match; // Exit if the url has same host with `config.url`, which means it's an internal link. diff --git a/source/css/_common/scaffolding/tags/note.styl b/source/css/_common/scaffolding/tags/note.styl index 2e7c145..c732394 100644 --- a/source/css/_common/scaffolding/tags/note.styl +++ b/source/css/_common/scaffolding/tags/note.styl @@ -5,7 +5,7 @@ if (hexo-config('note.style') != 'disabled') { border-radius: $note-border-radius; margin-bottom: 20px; - padding: 1em; + padding: 1em 1em 0; position: relative; if ($note-style == 'simple') { @@ -39,16 +39,6 @@ if (hexo-config('note.style') != 'disabled') { padding-top: 0; } - p, ul, ol, table, pre, blockquote, img { - &:first-child { - margin-top: 0; - } - - &:last-child { - margin-bottom: 0; - } - } - if ($note-icons) { &:not(.no-icon) { padding-left: 2.5em;