mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-17 04:40:53 +08:00
1. Feature: 手機menu界面重新設計
2. Feature: 文章頁增加美化(原 melody主題功能),並增加更改標題前綴圖標和顔色 3. Feature: PC端增加直達評論按鈕 4. Feature: 可以對單獨文章設置是否顯示版權信息 5. Fix: 修復閲讀模式下,調整字體大小對代碼無效的bug 6. Fix: 調整Valine字體顯示問題 7. Fix: 修正夜間模式下Valine的適配問題 8. Fix: 修復Valine設置notify和verify無效的bug (thx @VincentTV ) 9. Remove: 去掉主題"閲讀更多"按鈕
This commit is contained in:
@@ -1,3 +1,18 @@
|
||||
if hexo-config("post_beautify.enable")
|
||||
headStyle(fontsize)
|
||||
padding-left: unit(fontsize + 0.3, "rem")
|
||||
|
||||
code
|
||||
font-size: unit(fontsize, "rem")
|
||||
|
||||
&:before
|
||||
top: calc(50% - unit(fontsize / 2 - 0.05, "rem"))
|
||||
font-size: unit(fontsize, "rem")
|
||||
|
||||
&:hover
|
||||
padding-left: unit(fontsize + 0.2, "rem")
|
||||
|
||||
|
||||
#post-title
|
||||
font-size: 1.4rem
|
||||
|
||||
@@ -100,22 +115,130 @@
|
||||
#post-content
|
||||
margin-bottom: 1rem
|
||||
|
||||
ol,
|
||||
ul
|
||||
margin-top: 0.4rem
|
||||
counter-reset: li
|
||||
if hexo-config("post_beautify.enable")
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
cursor: pointer
|
||||
transition: all 0.2s ease-out
|
||||
|
||||
p
|
||||
margin: 0
|
||||
&:before
|
||||
position: absolute
|
||||
top: calc(50% - 0.35rem)
|
||||
left: 0
|
||||
color: $title-prefix-icon-color
|
||||
content: $title-prefix-icon
|
||||
font: normal normal normal 14px / 1 FontAwesome
|
||||
font-size: 0.8rem
|
||||
transition: all 0.2s ease-out
|
||||
|
||||
&:hover
|
||||
padding-left: 1.1rem
|
||||
|
||||
&:before
|
||||
color: $light-blue
|
||||
|
||||
h1
|
||||
headStyle(1)
|
||||
|
||||
h2
|
||||
headStyle(0.9)
|
||||
|
||||
h3
|
||||
headStyle(0.8)
|
||||
|
||||
h4
|
||||
headStyle(0.7)
|
||||
|
||||
h5
|
||||
headStyle(0.6)
|
||||
|
||||
h6
|
||||
headStyle(0.6)
|
||||
|
||||
ol,
|
||||
ul
|
||||
padding-left: 0.5rem
|
||||
margin-top: 0.4rem
|
||||
padding: 0 0 0 0.8rem
|
||||
list-style: none
|
||||
counter-reset: li
|
||||
|
||||
li
|
||||
position: relative
|
||||
margin: 0.3rem 0
|
||||
padding-left: 0.3rem
|
||||
p
|
||||
margin: 0
|
||||
|
||||
ol,
|
||||
ul
|
||||
padding-left: 0.5rem
|
||||
|
||||
li
|
||||
position: relative
|
||||
margin: 0.2rem 0
|
||||
padding: 0.1rem 0.5rem 0.1rem 1.5rem
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
transform: rotate(360deg)
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
background: $light-blue
|
||||
color: $white
|
||||
cursor: pointer
|
||||
transition: all 0.3s ease-out
|
||||
|
||||
ol
|
||||
> li
|
||||
&:before
|
||||
margin-top: 0.2rem
|
||||
width: w = 1.2rem
|
||||
height: h = w
|
||||
border-radius: 0.5 * w
|
||||
content: counter(li)
|
||||
counter-increment: li
|
||||
text-align: center
|
||||
font-size: 0.6rem
|
||||
line-height: h
|
||||
|
||||
ul
|
||||
> li
|
||||
&:hover
|
||||
&:before
|
||||
border-color: $ruby
|
||||
|
||||
&:before
|
||||
$w = 0.3rem
|
||||
top: 10px
|
||||
margin-left: 0.45rem
|
||||
width: w = $w
|
||||
height: h = w
|
||||
border: 0.5 * w solid $light-blue
|
||||
border-radius: w
|
||||
background: $white
|
||||
content: ""
|
||||
line-height: h
|
||||
|
||||
else
|
||||
ol,
|
||||
ul
|
||||
margin-top: 0.4rem
|
||||
counter-reset: li
|
||||
|
||||
p
|
||||
margin: 0
|
||||
|
||||
ol,
|
||||
ul
|
||||
padding-left: 0.5rem
|
||||
|
||||
li
|
||||
position: relative
|
||||
margin: 0.3rem 0
|
||||
padding-left: 0.3rem
|
||||
|
||||
a
|
||||
color: $a-link-color
|
||||
|
||||
Reference in New Issue
Block a user