breaking changes: 移除博天api

breaking changes: 移除 waline 的 avatar 和 avatar cdn 配置
feat: anchor 不再限制 post 頁開啟,可以在任何頁面開啟
feat: 文章標題支持點擊跳轉到此標題開始閲讀 closed #653
feat: toc可以設置全部展開 closed #709
feat: 增加 新的評論系統 giscus
feat: 支持新的評論名寫法,主題會處理評論名字大小寫,舊的會兼容
feat: 友情鏈接列表增加 fetch url 獲取
improvement: 鼠標移到最新評論內容,增加 title 顯示
fix: 修復 rightside 遮擋內容,導致內容無法點擊的 bug
fix: 修復 mermaid 在某些頁面(有元素 id 為 mermaid 時) 會無法加載的 bug
fix: 修復 搜索框不會自動 focus 的 bug
This commit is contained in:
Jerry
2021-11-14 17:50:11 +08:00
Unverified
parent f7c50586ce
commit ffeab5e20c
30 changed files with 363 additions and 225 deletions

View File

@@ -117,7 +117,7 @@ if hexo-config('enter_transitions')
#site-title,
#site-subtitle
animation: titlescale 1s
animation: titleScale 1s
#nav.show
animation: headerNoOpacity 1s
@@ -187,7 +187,7 @@ if hexo-config('avatar.effect') == true
margin-top: 0
opacity: 1
@keyframes titlescale
@keyframes titleScale
0%
opacity: 0
transform: scale(.7)

View File

@@ -32,6 +32,7 @@
--timeline-bg: $timeline-content-bg
--timeline-border-color: $timeline-border-color
--pseudo-hover: $pseudo-hover
--headline-presudo: #a0a0a0
body
position: relative

View File

@@ -265,16 +265,17 @@
+maxWidth900()
max-height: calc(100vh - 140px)
.toc-child
display: none
&:not(.is-expand)
.toc-child
display: none
+maxWidth900()
display: block !important
+maxWidth900()
display: block !important
.toc-item
&.active
.toc-child
display: block
.toc-item
&.active
.toc-child
display: block
ol,
li

View File

@@ -7,7 +7,7 @@ beautify()
font-size: unit(fontsize, 'px')
&:hover
padding-left: unit(fontsize + 12, 'px')
padding-left: unit(fontsize + 18, 'px')
h1,
h2,
@@ -102,6 +102,32 @@ beautify()
font-family: Monaco, 'Ubuntu Mono', monospace
line-height: 1em
if hexo-config('anchor')
a.headerlink
&:after
@extend .fontawesomeIcon
float: right
color: var(--headline-presudo)
content: '\f0c1'
font-size: .95em
opacity: 0
transition: all .3s
&:hover
&:after
color: var(--pseudo-hover)
h1,
h2,
h3,
h4,
h5,
h6
&:hover
a.headerlink
&:after
opacity: 1
ol,
ul
ol,

View File

@@ -7,11 +7,7 @@
transition: all .5s
#rightside-config-hide
transition: transform .4s
transform: translate(48px, 0)
&.show
transform: translate(0, 0) !important
display: none
& > div
& > button,
@@ -39,3 +35,19 @@
+maxWidth900()
#hide-aside-btn
display: none
@keyframes rightside-item-in
0%
transform: translate(48px, 0)
100%
transform: translate(0, 0)
@keyframes rightside-item-out
0%
display: block
transform: translate(0, 0)
100%
display: none
transform: translate(48px, 0)

View File

@@ -9,7 +9,6 @@
width: 600px
border-radius: 8px
background: var(--search-bg)
animation: titlescale .5s
+maxWidth768()
top: 0