mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3ba4c9ac4 | ||
|
|
628d1bbe52 | ||
|
|
ede4f8bfea | ||
|
|
feb3346cf6 | ||
|
|
576fa5c80e | ||
|
|
6019cc8b7c | ||
|
|
7f9409553a | ||
|
|
2de7d34b2b | ||
|
|
4b8a610c08 |
@@ -158,7 +158,7 @@ subtitle:
|
|||||||
# Choose: false/1/2/3
|
# Choose: false/1/2/3
|
||||||
# false - disable the function
|
# false - disable the function
|
||||||
# 1 - hitokoto.cn
|
# 1 - hitokoto.cn
|
||||||
# 2 - yijuzhan.com
|
# 2 - https://api.aa1.cn/doc/yiyan.html
|
||||||
# 3 - jinrishici.com
|
# 3 - jinrishici.com
|
||||||
source: false
|
source: false
|
||||||
# If you close the typewriter effect, the subtitle will only show the first line of sub
|
# If you close the typewriter effect, the subtitle will only show the first line of sub
|
||||||
|
|||||||
57
layout/includes/third-party/abcjs/abcjs.pug
vendored
57
layout/includes/third-party/abcjs/abcjs.pug
vendored
@@ -1,17 +1,46 @@
|
|||||||
script.
|
script.
|
||||||
(() => {
|
(function() {
|
||||||
const abcjsInit = () => {
|
const abcjsInit = function() {
|
||||||
const abcjsFn = () => setTimeout(() => {
|
const abcjsFn = function() {
|
||||||
document.querySelectorAll(".abc-music-sheet").forEach(ele => {
|
setTimeout(function() {
|
||||||
if (ele.children.length > 0) return
|
const sheets = document.querySelectorAll(".abc-music-sheet")
|
||||||
ABCJS.renderAbc(ele, ele.innerHTML, {responsive: 'resize'})
|
for (let i = 0; i < sheets.length; i++) {
|
||||||
})
|
const ele = sheets[i]
|
||||||
}, 100)
|
if (ele.children.length > 0) continue
|
||||||
|
|
||||||
typeof ABCJS === 'object' ? abcjsFn()
|
// Parse parameters from data-params attribute
|
||||||
: btf.getScript('!{url_for(theme.asset.abcjs_basic_js)}').then(abcjsFn)
|
let params = {}
|
||||||
|
const dp = ele.getAttribute("data-params")
|
||||||
|
if (dp) {
|
||||||
|
try {
|
||||||
|
params = JSON.parse(dp)
|
||||||
|
} catch (e) {
|
||||||
|
console.error("Failed to parse data-params:", e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Merge parsed parameters with the responsive option
|
||||||
|
// Ensures params content appears before responsive
|
||||||
|
const options = { ...params, responsive: "resize" }
|
||||||
|
|
||||||
|
// Render the music score using ABCJS.renderAbc
|
||||||
|
ABCJS.renderAbc(ele, ele.innerHTML, options)
|
||||||
|
}
|
||||||
|
}, 100)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof ABCJS === "object") {
|
||||||
|
abcjsFn()
|
||||||
|
} else {
|
||||||
|
btf.getScript("!{url_for(theme.asset.abcjs_basic_js)}").then(abcjsFn)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.pjax ? abcjsInit() : window.addEventListener('load', abcjsInit)
|
if (window.pjax) {
|
||||||
btf.addGlobalFn('encrypt', abcjsInit, 'abcjs')
|
abcjsInit()
|
||||||
})()
|
} else {
|
||||||
|
window.addEventListener("load", abcjsInit)
|
||||||
|
}
|
||||||
|
|
||||||
|
btf.addGlobalFn("encrypt", abcjsInit, "abcjs")
|
||||||
|
})()
|
||||||
|
|||||||
7
layout/includes/third-party/pjax.pug
vendored
7
layout/includes/third-party/pjax.pug
vendored
@@ -59,7 +59,10 @@ script.
|
|||||||
|
|
||||||
document.addEventListener('pjax:error', e => {
|
document.addEventListener('pjax:error', e => {
|
||||||
if (e.request.status === 404) {
|
if (e.request.status === 404) {
|
||||||
window.location.href = e.request.responseURL
|
const usePjax = !{theme.pjax && theme.pjax.enable}
|
||||||
|
!{theme.error_404 && theme.error_404.enable}
|
||||||
|
? (usePjax ? pjax.loadUrl('!{url_for("/404.html")}') : window.location.href = '!{url_for("/404.html")}')
|
||||||
|
: window.location.href = e.request.responseURL
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})()
|
})()
|
||||||
|
|||||||
100
layout/includes/third-party/subtitle.pug
vendored
100
layout/includes/third-party/subtitle.pug
vendored
@@ -1,4 +1,4 @@
|
|||||||
- const { effect,source,sub,typed_option } = theme.subtitle
|
- const { effect, source, sub, typed_option } = theme.subtitle
|
||||||
- let subContent = sub || new Array()
|
- let subContent = sub || new Array()
|
||||||
|
|
||||||
script.
|
script.
|
||||||
@@ -22,6 +22,26 @@ script.
|
|||||||
} else {
|
} else {
|
||||||
subtitleType()
|
subtitleType()
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
processSubtitle: (content, extraContents = []) => {
|
||||||
|
if (!{effect}) {
|
||||||
|
const sub = !{JSON.stringify(subContent)}.slice()
|
||||||
|
|
||||||
|
if (extraContents.length > 0) {
|
||||||
|
sub.unshift(...extraContents)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof content === 'string') {
|
||||||
|
sub.unshift(content)
|
||||||
|
} else if (Array.isArray(content)) {
|
||||||
|
sub.unshift(...content)
|
||||||
|
}
|
||||||
|
|
||||||
|
sub.length > 0 && typedJSFn.init(sub)
|
||||||
|
} else {
|
||||||
|
document.getElementById('subtitle').textContent = typeof content === 'string' ? content :
|
||||||
|
(Array.isArray(content) && content.length > 0 ? content[0] : '')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
btf.addGlobalFn('pjaxSendOnce', () => { typed.destroy() }, 'typedDestroy')
|
btf.addGlobalFn('pjaxSendOnce', () => { typed.destroy() }, 'typedDestroy')
|
||||||
@@ -33,14 +53,12 @@ case source
|
|||||||
fetch('https://v1.hitokoto.cn')
|
fetch('https://v1.hitokoto.cn')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (!{effect}) {
|
const from = '出自 ' + data.from
|
||||||
const from = '出自 ' + data.from
|
typedJSFn.processSubtitle(data.hitokoto, [from])
|
||||||
const sub = !{JSON.stringify(subContent)}
|
})
|
||||||
sub.unshift(data.hitokoto, from)
|
.catch(err => {
|
||||||
typedJSFn.init(sub)
|
console.error('Failed to get the Hitokoto API:', err)
|
||||||
} else {
|
typedJSFn.processSubtitle(!{JSON.stringify(subContent)})
|
||||||
document.getElementById('subtitle').textContent = data.hitokoto
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
typedJSFn.run(subtitleType)
|
typedJSFn.run(subtitleType)
|
||||||
@@ -48,46 +66,48 @@ case source
|
|||||||
when 2
|
when 2
|
||||||
script.
|
script.
|
||||||
function subtitleType () {
|
function subtitleType () {
|
||||||
btf.getScript('https://yijuzhan.com/api/word.php?m=js').then(() => {
|
fetch('https://v.api.aa1.cn/api/yiyan/index.php')
|
||||||
const con = str[0]
|
.then(response => response.text())
|
||||||
if (!{effect}) {
|
.then(data => {
|
||||||
const from = '出自 ' + str[1]
|
const reg = /<p>(.*?)<\/p>/g
|
||||||
const sub = !{JSON.stringify(subContent)}
|
const result = reg.exec(data)
|
||||||
sub.unshift(con, from)
|
if (result && result[1]) {
|
||||||
typedJSFn.init(sub)
|
typedJSFn.processSubtitle(result[1])
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('subtitle').textContent = con
|
throw new Error('Failed to parse the return value of the Yiyan API')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.catch(err => {
|
||||||
|
console.error('Failed to get the Yiyan API:', err)
|
||||||
|
typedJSFn.processSubtitle(!{JSON.stringify(subContent.length)})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
typedJSFn.run(subtitleType)
|
typedJSFn.run(subtitleType)
|
||||||
|
|
||||||
when 3
|
when 3
|
||||||
script.
|
script.
|
||||||
function subtitleType () {
|
function subtitleType () {
|
||||||
btf.getScript('https://sdk.jinrishici.com/v2/browser/jinrishici.js').then(() => {
|
btf.getScript('https://sdk.jinrishi8ci.com/v2/browser/jinrishici.js')
|
||||||
jinrishici.load(result =>{
|
.then(() => {
|
||||||
if (!{effect}) {
|
jinrishici.load(result => {
|
||||||
const sub = !{JSON.stringify(subContent)}
|
if (result && result.data && result.data.content) {
|
||||||
const content = result.data.content
|
typedJSFn.processSubtitle(result.data.content)
|
||||||
sub.unshift(content)
|
} else {
|
||||||
typedJSFn.init(sub)
|
throw new Error('Failed to parse the return value of Jinrishici API')
|
||||||
} else {
|
}
|
||||||
document.getElementById('subtitle').textContent = result.data.content
|
})
|
||||||
}
|
})
|
||||||
|
.catch(err => {
|
||||||
|
console.error('Failed to get the Jinrishici API:', err)
|
||||||
|
typedJSFn.processSubtitle(!{JSON.stringify(subContent.length)})
|
||||||
})
|
})
|
||||||
})
|
|
||||||
}
|
}
|
||||||
typedJSFn.run(subtitleType)
|
typedJSFn.run(subtitleType)
|
||||||
|
|
||||||
default
|
default
|
||||||
- subContent = subContent.length ? subContent : new Array(config.subtitle)
|
if subContent.length > 0
|
||||||
script.
|
script.
|
||||||
function subtitleType () {
|
function subtitleType () {
|
||||||
if (!{effect}) {
|
typedJSFn.processSubtitle(!{JSON.stringify(subContent)})
|
||||||
typedJSFn.init(!{JSON.stringify(subContent)})
|
|
||||||
} else {
|
|
||||||
document.getElementById("subtitle").textContent = !{JSON.stringify(subContent[0])}
|
|
||||||
}
|
}
|
||||||
}
|
typedJSFn.run(subtitleType)
|
||||||
typedJSFn.run(subtitleType)
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "5.3.3",
|
"version": "5.3.4",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
12
plugins.yml
12
plugins.yml
@@ -9,7 +9,7 @@ activate_power_mode:
|
|||||||
algolia_search:
|
algolia_search:
|
||||||
name: algoliasearch
|
name: algoliasearch
|
||||||
file: dist/lite/builds/browser.umd.js
|
file: dist/lite/builds/browser.umd.js
|
||||||
version: 5.20.2
|
version: 5.20.3
|
||||||
aplayer_css:
|
aplayer_css:
|
||||||
name: aplayer
|
name: aplayer
|
||||||
file: dist/APlayer.min.css
|
file: dist/APlayer.min.css
|
||||||
@@ -45,7 +45,7 @@ canvas_ribbon:
|
|||||||
chartjs:
|
chartjs:
|
||||||
name: chart.js
|
name: chart.js
|
||||||
file: dist/chart.umd.js
|
file: dist/chart.umd.js
|
||||||
version: 4.4.7
|
version: 4.4.8
|
||||||
clickShowText:
|
clickShowText:
|
||||||
name: butterfly-extsrc
|
name: butterfly-extsrc
|
||||||
file: dist/click-show-text.min.js
|
file: dist/click-show-text.min.js
|
||||||
@@ -66,12 +66,12 @@ docsearch_css:
|
|||||||
name: '@docsearch/css'
|
name: '@docsearch/css'
|
||||||
other_name: docsearch-css
|
other_name: docsearch-css
|
||||||
file: dist/style.css
|
file: dist/style.css
|
||||||
version: 3.8.3
|
version: 3.9.0
|
||||||
docsearch_js:
|
docsearch_js:
|
||||||
name: '@docsearch/js'
|
name: '@docsearch/js'
|
||||||
other_name: docsearch-js
|
other_name: docsearch-js
|
||||||
file: dist/umd/index.js
|
file: dist/umd/index.js
|
||||||
version: 3.8.3
|
version: 3.9.0
|
||||||
egjs_infinitegrid:
|
egjs_infinitegrid:
|
||||||
name: '@egjs/infinitegrid'
|
name: '@egjs/infinitegrid'
|
||||||
other_name: egjs-infinitegrid
|
other_name: egjs-infinitegrid
|
||||||
@@ -203,9 +203,9 @@ waline_css:
|
|||||||
name: '@waline/client'
|
name: '@waline/client'
|
||||||
file: dist/waline.css
|
file: dist/waline.css
|
||||||
other_name: waline
|
other_name: waline
|
||||||
version: 3.5.2
|
version: 3.5.5
|
||||||
waline_js:
|
waline_js:
|
||||||
name: '@waline/client'
|
name: '@waline/client'
|
||||||
file: dist/waline.js
|
file: dist/waline.js
|
||||||
other_name: waline
|
other_name: waline
|
||||||
version: 3.5.2
|
version: 3.5.5
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ hexo.extend.helper.register('inject_head_js', function () {
|
|||||||
darkmodeJs += `
|
darkmodeJs += `
|
||||||
const mediaQueryDark = window.matchMedia('(prefers-color-scheme: dark)')
|
const mediaQueryDark = window.matchMedia('(prefers-color-scheme: dark)')
|
||||||
const mediaQueryLight = window.matchMedia('(prefers-color-scheme: light)')
|
const mediaQueryLight = window.matchMedia('(prefers-color-scheme: light)')
|
||||||
|
|
||||||
if (theme === undefined) {
|
if (theme === undefined) {
|
||||||
if (mediaQueryLight.matches) activateLightMode()
|
if (mediaQueryLight.matches) activateLightMode()
|
||||||
else if (mediaQueryDark.matches) activateDarkMode()
|
else if (mediaQueryDark.matches) activateDarkMode()
|
||||||
|
|||||||
@@ -6,17 +6,45 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const score = (args, content) => {
|
const score = (args, content) => {
|
||||||
|
// Escape HTML tags and some special characters, including curly braces
|
||||||
const escapeHtmlTags = s => {
|
const escapeHtmlTags = s => {
|
||||||
const lookup = {
|
const lookup = {
|
||||||
'&': '&',
|
'&': '&',
|
||||||
'"': '"',
|
'"': '"',
|
||||||
'\'': ''',
|
"'": ''',
|
||||||
'<': '<',
|
'<': '<',
|
||||||
'>': '>'
|
'>': '>',
|
||||||
|
'{': '{',
|
||||||
|
'}': '}'
|
||||||
}
|
}
|
||||||
return s.replace(/[&"'<>]/g, c => lookup[c])
|
return s.replace(/[&"'<>{}]/g, c => lookup[c])
|
||||||
}
|
}
|
||||||
return `<div class="abc-music-sheet">${escapeHtmlTags(content)}</div>`
|
|
||||||
|
const trimmed = content.trim()
|
||||||
|
// Split content using six dashes as a delimiter
|
||||||
|
const parts = trimmed.split('------')
|
||||||
|
|
||||||
|
if (parts.length < 2) {
|
||||||
|
// If no delimiter is found, treat the entire content as the score
|
||||||
|
return `<div class="abc-music-sheet">${escapeHtmlTags(trimmed)}</div>`
|
||||||
|
}
|
||||||
|
|
||||||
|
// First part is parameters (JSON string), the rest is the score content
|
||||||
|
const paramPart = parts[0].trim()
|
||||||
|
const scorePart = parts.slice(1).join('------').trim()
|
||||||
|
|
||||||
|
let paramsObj = {}
|
||||||
|
try {
|
||||||
|
paramsObj = JSON.parse(paramPart)
|
||||||
|
} catch (e) {
|
||||||
|
console.error("Failed to parse JSON in score tag:", e)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Use double quotes for data-params attribute value,
|
||||||
|
// ensuring JSON internal double quotes are escaped
|
||||||
|
return `<div class="abc-music-sheet" data-params="${escapeHtmlTags(JSON.stringify(paramsObj))}">
|
||||||
|
${escapeHtmlTags(scorePart)}
|
||||||
|
</div>`
|
||||||
}
|
}
|
||||||
|
|
||||||
hexo.extend.tag.register('score', score, { ends: true })
|
hexo.extend.tag.register("score", score, { ends: true })
|
||||||
@@ -10,8 +10,8 @@
|
|||||||
--preloader-bg: $preloader-bg
|
--preloader-bg: $preloader-bg
|
||||||
--preloader-color: $preloader-word-color
|
--preloader-color: $preloader-word-color
|
||||||
--tab-border-color: $tab-border-color
|
--tab-border-color: $tab-border-color
|
||||||
--tab-botton-bg: $tab-botton-bg
|
--tab-button-bg: $tab-button-bg
|
||||||
--tab-botton-color: $tab-botton-color
|
--tab-button-color: $tab-button-color
|
||||||
--tab-button-hover-bg: $tab-button-hover-bg
|
--tab-button-hover-bg: $tab-button-hover-bg
|
||||||
--tab-button-active-bg: $tab-button-active-bg
|
--tab-button-active-bg: $tab-button-active-bg
|
||||||
--card-bg: $card-bg
|
--card-bg: $card-bg
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
|
|||||||
--preloader-bg: darken(#121212, 2)
|
--preloader-bg: darken(#121212, 2)
|
||||||
--preloader-color: alpha(#FFFFFF, .7)
|
--preloader-color: alpha(#FFFFFF, .7)
|
||||||
--tab-border-color: #2c2c2c
|
--tab-border-color: #2c2c2c
|
||||||
--tab-botton-bg: #2c2c2c
|
--tab-button-bg: #2c2c2c
|
||||||
--tab-botton-color: alpha(#FFFFFF, .7)
|
--tab-button-color: alpha(#FFFFFF, .7)
|
||||||
--tab-button-hover-bg: lighten(#121212, 15)
|
--tab-button-hover-bg: lighten(#121212, 15)
|
||||||
--tab-button-active-bg: #121212
|
--tab-button-active-bg: #121212
|
||||||
--card-bg: #121212
|
--card-bg: #121212
|
||||||
|
|||||||
@@ -14,14 +14,14 @@
|
|||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
margin: 0
|
margin: 0
|
||||||
padding: 0
|
padding: 0
|
||||||
background: var(--tab-botton-bg)
|
background: var(--tab-button-bg)
|
||||||
|
|
||||||
> .tab
|
> .tab
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
padding: 8px 18px
|
padding: 8px 18px
|
||||||
border-top: 2px solid var(--tab-border-color)
|
border-top: 2px solid var(--tab-border-color)
|
||||||
background: var(--tab-botton-bg)
|
background: var(--tab-button-bg)
|
||||||
color: var(--tab-botton-color)
|
color: var(--tab-button-color)
|
||||||
line-height: 2
|
line-height: 2
|
||||||
transition: all .4s
|
transition: all .4s
|
||||||
|
|
||||||
|
|||||||
@@ -14,18 +14,18 @@ $code-background = $themeColorEnable && hexo-config('theme_color.code_background
|
|||||||
$theme-toc-color = $themeColorEnable && hexo-config('theme_color.toc_color') ? convert(hexo-config('theme_color.toc_color')) : $strong-cyan
|
$theme-toc-color = $themeColorEnable && hexo-config('theme_color.toc_color') ? convert(hexo-config('theme_color.toc_color')) : $strong-cyan
|
||||||
// font
|
// font
|
||||||
|
|
||||||
$chinseFont = $language == 'zh-CN' ? 'Microsoft YaHei' : 'Microsoft JhengHei'
|
$chineseFont = $language == 'zh-CN' ? 'Microsoft YaHei' : 'Microsoft JhengHei'
|
||||||
$dafault-font-family = -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Lato, Roboto, 'PingFang SC', $chinseFont, sans-serif
|
$default-font-family = -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Lato, Roboto, 'PingFang SC', $chineseFont, sans-serif
|
||||||
$dafault-code-font = consolas, Menlo, monospace, 'PingFang SC', $chinseFont, sans-serif
|
$default-code-font = consolas, Menlo, monospace, 'PingFang SC', $chineseFont, sans-serif
|
||||||
|
|
||||||
$font-family = hexo-config('font.font_family') ? unquote(hexo-config('font.font_family')) : $dafault-font-family
|
$font-family = hexo-config('font.font_family') ? unquote(hexo-config('font.font_family')) : $default-font-family
|
||||||
$code-font-family = hexo-config('font.code_font_family') ? unquote(hexo-config('font.code_font_family')) : $dafault-code-font
|
$code-font-family = hexo-config('font.code_font_family') ? unquote(hexo-config('font.code_font_family')) : $default-code-font
|
||||||
$site-name-font = hexo-config('blog_title_font.font_family') && unquote(hexo-config('blog_title_font.font_family'))
|
$site-name-font = hexo-config('blog_title_font.font_family') && unquote(hexo-config('blog_title_font.font_family'))
|
||||||
// hr
|
// hr
|
||||||
$hrEnable = hexo-config('hr_icon') && hexo-config('hr_icon.enable')
|
$hrEnable = hexo-config('hr_icon') && hexo-config('hr_icon.enable')
|
||||||
$hr-icon = $hrEnable && hexo-config('hr_icon.icon') ? hexo-config('hr_icon.icon') : '\f0c4'
|
$hr-icon = $hrEnable && hexo-config('hr_icon.icon') ? hexo-config('hr_icon.icon') : '\f0c4'
|
||||||
$hr-icon-top = $hrEnable && hexo-config('hr_icon.icon_top') ? convert(hexo-config('hr_icon.icon_top')) : -10px
|
$hr-icon-top = $hrEnable && hexo-config('hr_icon.icon_top') ? convert(hexo-config('hr_icon.icon_top')) : -10px
|
||||||
// page beatutify
|
// page beautify
|
||||||
$beautifyEnable = hexo-config('beautify.enable')
|
$beautifyEnable = hexo-config('beautify.enable')
|
||||||
$title-prefix-icon = $beautifyEnable && hexo-config('beautify.title_prefix_icon') ? hexo-config('beautify.title_prefix_icon') : '\f0c1'
|
$title-prefix-icon = $beautifyEnable && hexo-config('beautify.title_prefix_icon') ? hexo-config('beautify.title_prefix_icon') : '\f0c1'
|
||||||
$title-prefix-icon-color = $beautifyEnable && hexo-config('beautify.title_prefix_icon_color') ? convert(hexo-config('beautify.title_prefix_icon_color')) : $light-red
|
$title-prefix-icon-color = $beautifyEnable && hexo-config('beautify.title_prefix_icon_color') ? convert(hexo-config('beautify.title_prefix_icon_color')) : $light-red
|
||||||
@@ -175,8 +175,8 @@ $tagsP-purple-color = #6f42c1
|
|||||||
$tagsP-green-color = #5cb85c
|
$tagsP-green-color = #5cb85c
|
||||||
// Tag Plugins - Tab
|
// Tag Plugins - Tab
|
||||||
$tab-border-color = #f0f0f0
|
$tab-border-color = #f0f0f0
|
||||||
$tab-botton-bg = #f0f0f0
|
$tab-button-bg = #f0f0f0
|
||||||
$tab-botton-color = $font-color
|
$tab-button-color = $font-color
|
||||||
$tab-button-hover-bg = darken($tab-border-color, 8)
|
$tab-button-hover-bg = darken($tab-border-color, 8)
|
||||||
$tab-active-border-color = $theme-color
|
$tab-active-border-color = $theme-color
|
||||||
$tab-button-active-bg = $card-bg
|
$tab-button-active-bg = $card-bg
|
||||||
|
|||||||
Reference in New Issue
Block a user