mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
💥 移除對文章隱藏的支持,如需要,請使用插件,hexo-hide-posts/hexo-generator-indexed 💥 移除subtitle金山詞霸每日一句,增加搏天api的隨機語錄 ✨ subtitle修改為網頁加載完後再加載,防止api回應過慢而阻礙網頁顯示 ✨ 適配valine 1.4.0, 刪除部分valine夜間模式代碼 ✨ meta增加article:published_time和article:modified_time ✨ 當沒有設置Description時,會自動讀取文章前200個文字作為meta Description ✨ sidebar menu 增加頭像轉圈hover 💄 調整aside和mobile sidebar 網頁資訊佈局,當缺少一個時,寬度依舊平分 🐛 調整子目錄的排版(向左對齊),修復只能點擊子目錄文字才能跳轉的bug 🔥 pug精簡 刪除recent-post.pug 改為引用mixins/post-ui.pug
86 lines
1.5 KiB
Stylus
86 lines
1.5 KiB
Stylus
if hexo-config('valine.enable')
|
|
#vcomment
|
|
button
|
|
padding: .3rem .8rem
|
|
border-color: $button-color
|
|
background-color: $light-blue
|
|
color: $button-color
|
|
font-size: .7rem
|
|
transition: all .3s
|
|
|
|
&:hover
|
|
background-color: $theme-button-hover-color
|
|
|
|
if hexo-config('valine.bg')
|
|
textarea
|
|
background: url(hexo-config('valine.bg')) 100% 100% no-repeat
|
|
|
|
.vimg
|
|
transition: all .3s
|
|
|
|
&:hover
|
|
transform: rotate(360deg)
|
|
|
|
.vat
|
|
padding: 0 .8rem
|
|
border: 1px solid $light-blue
|
|
border-radius: 5px
|
|
color: $light-blue
|
|
font-size: .7125rem
|
|
transition: all .3s
|
|
|
|
&:hover
|
|
background-color: $light-blue
|
|
color: $button-color
|
|
|
|
if hexo-config('beautify.enable')
|
|
#article-container
|
|
.aplayer
|
|
ol,
|
|
ul
|
|
margin: 0
|
|
padding: 0
|
|
|
|
li
|
|
margin: 0
|
|
padding: 0 15px
|
|
|
|
&:before
|
|
content: none
|
|
|
|
// third-party
|
|
.fireworks
|
|
position: fixed
|
|
top: 0
|
|
left: 0
|
|
z-index: 999999
|
|
pointer-events: none
|
|
|
|
.medium-zoom-image--opened
|
|
z-index: 99999 !important
|
|
margin: 0 !important
|
|
|
|
.medium-zoom-overlay
|
|
z-index: 99999 !important
|
|
|
|
.mermaid
|
|
overflow: auto
|
|
margin: 0 0 1rem
|
|
background: $white
|
|
text-align: center
|
|
opacity: 0
|
|
transition: all .3s
|
|
|
|
&[data-processed]
|
|
opacity: 1
|
|
|
|
.utterances
|
|
max-width: 100%
|
|
|
|
#gitalk-container
|
|
.gt-meta
|
|
margin: 0 0 .8em
|
|
padding: .3rem 0 .8em
|
|
|
|
.has-jax
|
|
overflow: auto |