Update padding of note tag

This commit is contained in:
Mimi 2022-11-16 16:10:53 +08:00
parent 0e79d308ed
commit 6a4ee1d180
2 changed files with 2 additions and 12 deletions

View File

@ -17,7 +17,7 @@ hexo.extend.filter.register('after_post_render', data => {
// External URL icon
const exturlIcon = theme.exturl_icon ? '<i class="fa fa-external-link-alt"></i>' : '';
data.content = data.content.replace(/<a[^>]*\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.

View File

@ -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;