feat: 修改 toc 打開效果

feat: 適配 hexo-blog-encrypt
fix: 修復 hexo 新版本下,prismjs 的問題
improvement: 在 pjax 關閉的情況下。減少不必要的全局變量
improvement: 更新依賴版本
improvement: 頁面進入效果優化
improvement: 添加平滑滾動
improvement: 兼容性優化
improvement: 優化 lighthouse 分數
improvement: 優化代碼
This commit is contained in:
Jerry committed 2024-04-02 23:44:46 +08:00
1 parent ee6b137e94
commit 9e0dce6c7a
41 files changed
+601 -536

No files matched your search

+4 -17
View File
@@ -134,16 +134,14 @@ if hexo-config('enter_transitions')
#footer
animation: bottom-top 1s
#page-header:not(.full_page)
#page-header:not(.full_page),
#nav.show
animation: header-effect 1s
#site-title,
#site-subtitle
animation: titleScale 1s
#nav.show
animation: headerNoOpacity 1s
canvas:not(#ribbon-canvas),
#web_bg
animation: to_show 4s
@@ -182,27 +180,16 @@ if hexo-config('avatar.effect') == true
@keyframes header-effect
0%
opacity: 0
transform: translateY(-50px)
100%
opacity: 1
transform: translateY(0)
@keyframes headerNoOpacity
0%
transform: translateY(-50px)
transform: translateY(-35px)
100%
transform: translateY(0)
@keyframes bottom-top
0%
opacity: 0
transform: translateY(50px)
transform: translateY(35px)
100%
opacity: 1
transform: translateY(0)
@keyframes titleScale
+1
View File
@@ -46,6 +46,7 @@ body
font-family: $font-family
line-height: $text-line-height
-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
scroll-behavior: smooth
if !hexo-config('copy.enable')
user-select: none
+7 -4
View File
@@ -117,6 +117,7 @@
box-shadow: 0 5px 6px -5px rgba(133, 133, 133, .6)
a,
span.site-page,
.site-name
color: var(--font-color)
text-shadow: none
@@ -140,6 +141,7 @@
text-shadow: none
a,
span.site-page,
#toggle-menu
color: var(--font-color)
text-shadow: none
@@ -290,7 +292,8 @@
&:hover
color: var(--white)
a
a,
span.site-page
color: var(--light-grey)
&:hover
@@ -312,10 +315,10 @@
.menus_item_child
display: block
& > a > i:last-child
& > span > i:last-child
transform: rotate(180deg)
& > a > i:last-child
& > span > i:last-child
padding: 4px
transition: transform .3s
@@ -370,7 +373,7 @@
.menus_items
display: none
#search-button span
#search-button span:not(.site-page)
display: none
#search-button
Loaded 3 of 41 files, more files were not shown because too many files have changed in this diff. Show more