mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
feat: 適配hexo 5.1.0 prismjs caption
feat: code-font-size 也會影響行內代碼塊字體大小 #325 fix: 修復aside recent post的 time 在safari沒有顯示的bug fix: 修復 prismjs 在 tags-toggle 外掛標簽裏,代碼塊顯示一行的bugs style: 刪除不必要的css
This commit is contained in:
1 parent
ea7eb904fd
commit
4aacafdae1
8 files changed
+33
-29
No files matched your search
@@ -16,7 +16,7 @@
|
||||
.length_num= site.posts.length
|
||||
|
||||
if site.tags.length
|
||||
.card-info-data-item.is-center
|
||||
.card-info-data-item.is-center
|
||||
a(href=url_for(config.tag_dir) + '/')
|
||||
.headline= _p('aside.tags')
|
||||
.length_num= site.tags.length
|
||||
|
||||
@@ -63,7 +63,7 @@ function hideToggle (args, content) {
|
||||
group += '"'
|
||||
|
||||
return `<div class="hide-toggle" ${border}><div class="hide-button toggle-title" ${group}><i class="fas fa-caret-right fa-fw"></i><span>${display}</span></div>
|
||||
<div class="hide-content">${hexo.render.renderSync({ text: content, engine: 'markdown' }).split('\n').join('')}</div></div>`
|
||||
<div class="hide-content">${hexo.render.renderSync({ text: content, engine: 'markdown' })}</div></div>`
|
||||
}
|
||||
|
||||
hexo.extend.tag.register('hideInline', hideInline)
|
||||
|
||||
@@ -49,6 +49,7 @@ blockquote
|
||||
#article-container
|
||||
pre,
|
||||
code
|
||||
font-size: $code-font-size
|
||||
font-family: $code-font-family !important
|
||||
|
||||
code
|
||||
@@ -62,7 +63,6 @@ blockquote
|
||||
pre
|
||||
@extend $code-block
|
||||
padding: 10px 20px
|
||||
font-size: $code-font-size
|
||||
|
||||
code
|
||||
padding: 0
|
||||
@@ -79,6 +79,20 @@ blockquote
|
||||
padding: 8px 0
|
||||
border: none
|
||||
|
||||
figcaption,
|
||||
.caption
|
||||
padding: .3rem 0 .1rem .7rem
|
||||
font-size: $code-font-size
|
||||
line-height: 1em
|
||||
|
||||
a
|
||||
float: right
|
||||
padding-right: 10px
|
||||
color: $highlight-foreground
|
||||
|
||||
&:hover
|
||||
border-bottom-color: $highlight-foreground
|
||||
|
||||
.highlight-tools
|
||||
position: relative
|
||||
display: flex
|
||||
@@ -88,6 +102,7 @@ blockquote
|
||||
height: 2.15em
|
||||
background: $highlight-tools.bg-color
|
||||
color: $highlight-tools.color
|
||||
font-size: $code-font-size
|
||||
|
||||
&.closed + table
|
||||
display: none
|
||||
|
||||
Loaded 3 of 8 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user