mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-08 12:07:06 +08:00
feat: 升級到 v5.5.3-b2 並優化 hide 標籤組件
- 升級版本號到 5.5.3-b2 - 優化 hide 標籤的 toggle 按鈕樣式,添加旋轉圖標動畫 - 增強 Umami Analytics,在 URL 參數中添加 path 欄位 - 為 toggle-button 添加暗色模式支援 - 修復代碼格式問題
This commit is contained in:
@@ -58,4 +58,4 @@ div
|
||||
|
||||
if theme.google_tag_manager && theme.google_tag_manager.tag_id
|
||||
noscript
|
||||
iframe(src=`${theme.google_tag_manager.domain ? theme.google_tag_manager.domain : 'https://www.googletagmanager.com'}/ns.html?id=${theme.google_tag_manager.tag_id}` height="0" width="0" style="display:none;visibility:hidden")
|
||||
iframe(src=`${theme.google_tag_manager.domain ? theme.google_tag_manager.domain : 'https://www.googletagmanager.com'}/ns.html?id=${theme.google_tag_manager.tag_id}` height="0" width="0" style="display:none;visibility:hidden")
|
||||
@@ -31,7 +31,7 @@ script.
|
||||
const getData = async (isPost) => {
|
||||
try {
|
||||
const now = Date.now()
|
||||
const keyUrl = isPost ? `&url=${window.location.pathname}` : ''
|
||||
const keyUrl = isPost ? `&url=${window.location.pathname}&path=${window.location.pathname}` : ''
|
||||
const headerList = { 'Accept': 'application/json' }
|
||||
|
||||
if (!{isServerURL}) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hexo-theme-butterfly",
|
||||
"version": "5.5.3-b1",
|
||||
"version": "5.5.3-b2",
|
||||
"description": "A Simple and Card UI Design theme for Hexo",
|
||||
"main": "package.json",
|
||||
"scripts": {
|
||||
|
||||
@@ -130,6 +130,7 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
|
||||
|
||||
// hide-tags
|
||||
.hide-button,
|
||||
.toggle-button,
|
||||
#post-outdate-notice,
|
||||
.error-img,
|
||||
.container iframe,
|
||||
|
||||
@@ -39,11 +39,26 @@
|
||||
border: 1px solid $tag-hide-toggle-bg
|
||||
addBorderRadius(5, true)
|
||||
|
||||
& > .toggle-content
|
||||
margin: 30px 24px
|
||||
|
||||
& > .toggle-button
|
||||
padding: 6px 15px
|
||||
background: $tag-hide-toggle-bg
|
||||
color: #1F2D3D
|
||||
list-style: none
|
||||
cursor: pointer
|
||||
|
||||
& > .toggle-content
|
||||
margin: 30px 24px
|
||||
&::-webkit-details-marker
|
||||
display: none
|
||||
|
||||
&::before
|
||||
@extend .fontawesomeIcon
|
||||
margin-right: 8px
|
||||
content: '\f0d7'
|
||||
transition: transform .3s ease
|
||||
transform: rotate(-90deg)
|
||||
transform-origin: center center
|
||||
|
||||
&[open] summary::before
|
||||
transform: rotate(0)
|
||||
Reference in New Issue
Block a user