mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Update padding of note tag
This commit is contained in:
parent
0e79d308ed
commit
6a4ee1d180
@ -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.
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user