hexo-theme-solitude 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +2 -2
- package/.github/logo.png +0 -0
- package/.github/screenshot.png +0 -0
- package/.github/workflows/stale.yml +19 -0
- package/README.md +39 -70
- package/README_EN.md +39 -70
- package/README_zh-tw.md +60 -0
- package/layout/includes/inject/head.pug +1 -1
- package/package.json +1 -1
- package/source/img/logo.png +0 -0
- package/source/js/covercolor/api.js +11 -11
- package/source/js/covercolor/local.js +11 -11
- package/source/js/utils.js +1 -1
package/.github/FUNDING.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# These are supported funding model platforms
|
2
2
|
|
3
|
-
github:
|
3
|
+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
4
4
|
patreon: # Replace with a single Patreon username
|
5
5
|
open_collective: # Replace with a single Open Collective username
|
6
6
|
ko_fi: # Replace with a single Ko-fi username
|
@@ -10,4 +10,4 @@ liberapay: # Replace with a single Liberapay username
|
|
10
10
|
issuehunt: # Replace with a single IssueHunt username
|
11
11
|
otechie: # Replace with a single Otechie username
|
12
12
|
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
13
|
-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
13
|
+
custom: ['https://afdian.net/a/efu0u0'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
package/.github/logo.png
ADDED
Binary file
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
name: 'Close stale issues and PRs'
|
2
|
+
on:
|
3
|
+
schedule:
|
4
|
+
- cron: '30 1 * * *'
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
stale:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- uses: actions/stale@v5
|
11
|
+
with:
|
12
|
+
days-before-issue-stale: 30
|
13
|
+
days-before-pr-stale: -1
|
14
|
+
days-before-close: 7
|
15
|
+
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
|
16
|
+
close-pr-message: 'This issue has not seen any activity since it was marked stale. Closing.'
|
17
|
+
stale-issue-label: 'Stale'
|
18
|
+
exempt-issue-labels: 'pinned,bug,enhancement,documentation,Plan'
|
19
|
+
operations-per-run: 1000
|
package/README.md
CHANGED
@@ -1,91 +1,60 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
简体中文丨[繁体中文](README_zh-tw.md)丨[English](README_EN.md)
|
2
|
+
|
3
|
+
<div align="center">
|
4
|
+
<img width="200" style="border-radius:10%;" src="./.github/logo.png" alt="Solitude logo"/>
|
5
|
+
|
6
|
+
<h1 align="center">Hexo Theme Solitude</h1>
|
4
7
|
|
5
|
-
|
8
|
+
<p align="center">一款优雅的 Hexo 主题,支持懒加载、PWA、Latex以及多种评论系统。</p>
|
6
9
|
|
7
|
-

|
10
|
+

|
9
11
|

|
12
|
+

|
10
13
|

|
14
|
+
[](https://github.com/valor-x/hexo-theme-solitude/stargazers)
|
11
15
|
[](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
|
12
|
-

|
13
|
-

|
14
|
-
|
15
|
-

|
16
|
-
|
17
|
-
主题预览: ✨ [亦封](https://blog.meuicat.cn/) | 🐞 [Demo](https://solitude-demo.efu.me/)
|
18
|
-
|
19
|
-
主题文档: [中文](https://solitude-docs.efu.me/)
|
20
16
|
|
21
|
-
|
17
|
+
[预览](https://solitude-demo.efu.me/) 丨 [文档](https://solitude-docs.efu.me/)
|
22
18
|
|
23
|
-
|
24
|
-
|
25
|
-
> 本仓库同时上传到 [Gitee](https://gitee.com/nsjjd_w/hexo-theme-solitude),如果你访问 Github 缓慢,可从 Gitee 中下载。
|
26
|
-
|
27
|
-
在博客根目录里安装稳定版【推荐】
|
28
|
-
|
29
|
-
```powershell
|
30
|
-
git clone -b main https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
|
31
|
-
```
|
32
|
-
|
33
|
-
如果想要安装比较新的 dev 分支,可以在博客根目录里安装开发版
|
34
|
-
|
35
|
-
```powershell
|
36
|
-
git clone -b dev https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
|
37
|
-
```
|
38
|
-
|
39
|
-
### NPM 安装
|
40
|
-
|
41
|
-
> 此方法只支持 Hexo 5.0.0 以上版本。通过 npm 安装并不会在 themes 里生成主题文件夹,而是在 node_modules 里生成
|
19
|
+
</div>
|
42
20
|
|
43
|
-
|
21
|
+

|
44
22
|
|
45
|
-
|
46
|
-
npm install hexo-theme-solitude
|
47
|
-
```
|
23
|
+
## 特性
|
48
24
|
|
49
|
-
|
25
|
+
- 页面懒加载(Pjax)、图片懒加载(LazyLoad)、离线应用(PWA)
|
26
|
+
- 评论(Twikoo、Waline)
|
27
|
+
- 显示切换(ColorMode)
|
28
|
+
- 灯箱(medium-zoom、fancybox)
|
29
|
+
- 数学公式(Latex)
|
30
|
+
- 特色页面:即刻短文、我的装备、在线工具、音乐馆、友链鱼塘、相册页、豆瓣页
|
31
|
+
- 文章功能:AI 摘要、代码高亮
|
50
32
|
|
51
|
-
|
33
|
+
## Todo
|
52
34
|
|
53
|
-
|
54
|
-
|
55
|
-
|
35
|
+
- [x] Waline 评论支持
|
36
|
+
- [ ] Tags plugin 插件化
|
37
|
+
- [ ] 相册页重构
|
56
38
|
|
57
|
-
##
|
39
|
+
## 应用
|
58
40
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
- [x] 支持沉浸式状态栏
|
70
|
-
- [x] 支持百度分析
|
71
|
-
- [x] 支持图片大图查看
|
72
|
-
- [x] 支持瀑布流即刻说说
|
73
|
-
- [x] 瀑布流相册
|
74
|
-
- [x] 支持自定义图标(iconfont、CoDeSign、fontawesome)
|
75
|
-
- [x] 支持高速缓存的swpp,pwa特性
|
76
|
-
- [x] 优秀的隐私协议支持
|
77
|
-
- [x] 文章摘要AI支持
|
78
|
-
- [x] 支持全局中控台
|
79
|
-
- [x] 支持本地搜索/algolia搜索🔍
|
80
|
-
- [x] 支持 Latex 数学公式
|
81
|
-
- [x] 支持 PWA
|
41
|
+
1. 使用 NPM 包进行安装
|
42
|
+
```bash
|
43
|
+
npm i hexo-theme-solitude
|
44
|
+
```
|
45
|
+
2. 应用主题
|
46
|
+
```yaml
|
47
|
+
theme: solitude
|
48
|
+
```
|
49
|
+
|
50
|
+
前往 [文档](https://solitude-docs.efu.me/) 获取更多信息。
|
82
51
|
|
83
|
-
##
|
52
|
+
## 贡献者
|
84
53
|
|
85
54
|
<a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
|
86
|
-
<img src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
|
55
|
+
<img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
|
87
56
|
</a>
|
88
57
|
|
89
58
|
**主题由 [@张洪Heo](https://github.com/zhheo) 作者全权授权、设计!**
|
90
59
|
|
91
|
-
> 欢迎你对本主题做出贡献
|
60
|
+
> 欢迎你对本主题做出贡献
|
package/README_EN.md
CHANGED
@@ -1,91 +1,60 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
[简体中文](README.md)丨[繁体中文](README_EN.md)丨English
|
2
|
+
|
3
|
+
<div align="center">
|
4
|
+
<img width="200" style="border-radius:10%;" src="./.github/logo.png" alt="Solitude logo"/>
|
4
5
|
|
6
|
+
<h1 align="center">Hexo Theme Solitude</h1>
|
5
7
|
|
6
|
-
|
8
|
+
<p align="center">An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple comment systems.</p>
|
7
9
|
|
8
|
-

|
10
|
+

|
10
11
|

|
11
|
-
[](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
|
12
|
-

|
13
12
|

|
13
|
+

|
14
|
+
[](https://github.com/valor-x/hexo-theme-solitude/stargazers)
|
15
|
+
[](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
Theme Preview: [亦封](https://blog.meuicat.cn/)|[Demo](https://solitude-demo.efu.me/)
|
18
|
-
|
19
|
-
Theme Document: [中文](https://solitude-docs.efu.me/)
|
20
|
-
|
21
|
-
## 💻 Installation
|
22
|
-
|
23
|
-
### Installation via Git
|
24
|
-
|
25
|
-
> This repository is also uploaded to [Gitee](https://gitee.com/nsjjd_w/hexo-theme-solitude). If you have trouble accessing Github, you can download it from Gitee.
|
26
|
-
|
27
|
-
Install the stable version in the root of your blog directory 【Recommended】
|
28
|
-
|
29
|
-
```powershell
|
30
|
-
git clone -b main https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
|
31
|
-
```
|
32
|
-
|
33
|
-
If you want to install the latest development version, you can install the dev branch in the root of your blog directory
|
34
|
-
|
35
|
-
```powershell
|
36
|
-
git clone -b dev https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
|
37
|
-
```
|
17
|
+
[Preview](https://solitude-demo.efu.me/) 丨 [Documentation](https://solitude-docs.efu.me/)
|
38
18
|
|
39
|
-
|
19
|
+
</div>
|
40
20
|
|
41
|
-
|
21
|
+

|
42
22
|
|
43
|
-
|
23
|
+
## Features
|
44
24
|
|
45
|
-
|
46
|
-
|
47
|
-
|
25
|
+
- Pjax、LazyLoad、PWA
|
26
|
+
- Comments(Twikoo、Waline)
|
27
|
+
- ColorMode
|
28
|
+
- Lightbox(medium-zoom、fancybox)
|
29
|
+
- Mathematical formulas(Latex)
|
30
|
+
- Featured pages: Instant Short Article, My Equipment, Online Tools, Music Gallery, Friend Chain Fish Pond, Photo Album Page, Douban Page
|
31
|
+
- Article features: AI summary, code highlighting
|
48
32
|
|
49
|
-
##
|
33
|
+
## Todo
|
50
34
|
|
51
|
-
|
35
|
+
- [x] Support Waline
|
36
|
+
- [ ] Tags plugin
|
37
|
+
- [ ] Album reconstruction
|
52
38
|
|
53
|
-
|
54
|
-
theme: solitude
|
55
|
-
```
|
39
|
+
## Setup
|
56
40
|
|
57
|
-
|
41
|
+
1. Use the NPM package
|
42
|
+
```bash
|
43
|
+
npm i hexo-theme-solitude
|
44
|
+
```
|
45
|
+
2. Apply
|
46
|
+
```yaml
|
47
|
+
theme: solitude
|
48
|
+
```
|
58
49
|
|
59
|
-
|
60
|
-
- [x] Lazy loading of images
|
61
|
-
- [x] Multiple code highlighting schemes
|
62
|
-
- [x] Multi-language configuration
|
63
|
-
- [x] Support for multiple comment plugins
|
64
|
-
- [x] Built-in web page access statistics
|
65
|
-
- [x] Support for dark mode
|
66
|
-
- [x] Support for footnote syntax
|
67
|
-
- [x] Support for custom CDN static resources
|
68
|
-
- [x] Support multi-function right-click menu
|
69
|
-
- [x] Support for customizing the main color to change with the color of the cover image
|
70
|
-
- [x] Support for immersive status bars
|
71
|
-
- [x] Support for Baidu Analytics
|
72
|
-
- [x] Support viewing large images
|
73
|
-
- [x] Support for waterfall instant talk
|
74
|
-
- [x] Support for custom icons (iconfont, CoDeSign, fontawesome)
|
75
|
-
- [x] Support SWPP and PWA features for caching
|
76
|
-
- [x] Excellent privacy protocol support
|
77
|
-
- [x] Article abstract AI support
|
78
|
-
- [x] Support for global center consoles
|
79
|
-
- [x] Support local search/algolia search 🔍
|
80
|
-
- [x] Support for Katex math formulas
|
81
|
-
- [x] PWA support
|
50
|
+
Check out the [Documentation](https://solitude-docs.efu.me/) for more information.
|
82
51
|
|
83
|
-
##
|
52
|
+
## Contributors
|
84
53
|
|
85
54
|
<a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
|
86
|
-
<img src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
|
55
|
+
<img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
|
87
56
|
</a>
|
88
57
|
|
89
|
-
**
|
58
|
+
**Theme is fully licensed and designed by the author of [@张洪Heo](https://github.com/zhheo)!**
|
90
59
|
|
91
|
-
>
|
60
|
+
> You are welcome to contribute to this topic! [Contribution Guide](/CONTRIBUTING.md)
|
package/README_zh-tw.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
[简体中文](README.md)丨繁体中文丨[English](README_EN.md)
|
2
|
+
|
3
|
+
<div align="center">
|
4
|
+
<img width="200" style="border-radius:10%;" src="./.github/logo.png" alt="Solitude logo"/>
|
5
|
+
|
6
|
+
<h1 align="center">Hexo Theme Solitude</h1>
|
7
|
+
|
8
|
+
<p align="center">一款優雅的 Hexo 主題,支援懶載入、PWA、Latex以及多種評論系統。</p>
|
9
|
+
|
10
|
+

|
11
|
+

|
12
|
+

|
13
|
+

|
14
|
+
[](https://github.com/valor-x/hexo-theme-solitude/stargazers)
|
15
|
+
[](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
|
16
|
+
|
17
|
+
[預覽](https://solitude-demo.efu.me/) 丨 [文档](https://solitude-docs.efu.me/)
|
18
|
+
|
19
|
+
</div>
|
20
|
+
|
21
|
+

|
22
|
+
|
23
|
+
## 特性
|
24
|
+
|
25
|
+
- 頁面懶載入(Pjax)、圖片懶載入(LazyLoad)、離線應用(PWA)
|
26
|
+
- 評論(Twikoo、Waline)
|
27
|
+
- 顯示切換(ColorMode)
|
28
|
+
- 燈箱(medium-zoom、fancybox)
|
29
|
+
- 數學公式(Latex)
|
30
|
+
- 特色頁面:即刻短文、我的裝備、在線工具、音樂館、友鏈魚塘、相冊頁、豆瓣頁
|
31
|
+
- 文章功能:AI 摘要、代碼高亮
|
32
|
+
|
33
|
+
## Todo
|
34
|
+
|
35
|
+
- [x] Waline 評論支援
|
36
|
+
- [ ] Tags plugin 外掛程式化
|
37
|
+
- [ ] 相冊頁重構
|
38
|
+
|
39
|
+
## 應用
|
40
|
+
|
41
|
+
1. 使用 NPM 包進行安裝
|
42
|
+
```bash
|
43
|
+
npm i hexo-theme-solitude
|
44
|
+
```
|
45
|
+
2. 應用主題
|
46
|
+
```yaml
|
47
|
+
theme: solitude
|
48
|
+
```
|
49
|
+
|
50
|
+
前往 [文檔](https://solitude-docs.efu.me) 獲取更多資訊。
|
51
|
+
|
52
|
+
## 貢獻者
|
53
|
+
|
54
|
+
<a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
|
55
|
+
<img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
|
56
|
+
</a>
|
57
|
+
|
58
|
+
**主題由 [@张洪Heo](https://github.com/zhheo) 全權授權、設計!**
|
59
|
+
|
60
|
+
> 歡迎你對本主題做出貢獻
|
@@ -78,7 +78,7 @@ script.
|
|
78
78
|
)(window)
|
79
79
|
|
80
80
|
console.log(
|
81
|
-
"%c Program: Hexo %c Theme: Solitude %c Version: v1.5.
|
81
|
+
"%c Program: Hexo %c Theme: Solitude %c Version: v1.5.3",
|
82
82
|
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
|
83
83
|
"padding: 5px 10px;color:white;background:#3e9f50;",
|
84
84
|
"border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
|
package/package.json
CHANGED
package/source/img/logo.png
CHANGED
Binary file
|
@@ -3,10 +3,10 @@ const coverColor = () => {
|
|
3
3
|
if (path) {
|
4
4
|
handleApiColor(path);
|
5
5
|
} else {
|
6
|
-
document.documentElement.style.setProperty('--st-main', 'var(--
|
7
|
-
document.documentElement.style.setProperty('--st-main-op', 'var(--
|
8
|
-
document.documentElement.style.setProperty('--st-main-op-deep', 'var(--
|
9
|
-
document.documentElement.style.setProperty('--st-main-none', 'var(--
|
6
|
+
document.documentElement.style.setProperty('--st-main', 'var(--efu-theme)');
|
7
|
+
document.documentElement.style.setProperty('--st-main-op', 'var(--efu-theme-op)');
|
8
|
+
document.documentElement.style.setProperty('--st-main-op-deep', 'var(--efu-theme-op-deep)');
|
9
|
+
document.documentElement.style.setProperty('--st-main-none', 'var(--efu-theme-none)');
|
10
10
|
initThemeColor()
|
11
11
|
}
|
12
12
|
}
|
@@ -53,13 +53,13 @@ function setThemeColors(value, r = null, g = null, b = null) {
|
|
53
53
|
if (brightness < 125) {
|
54
54
|
let cardContents = document.getElementsByClassName('card-content');
|
55
55
|
for (let i = 0; i < cardContents.length; i++) {
|
56
|
-
cardContents[i].style.setProperty('--st-card-bg', 'var(--
|
56
|
+
cardContents[i].style.setProperty('--st-card-bg', 'var(--efu-white)');
|
57
57
|
}
|
58
58
|
|
59
59
|
let authorInfo = document.getElementsByClassName('author-info__sayhi');
|
60
60
|
for (let i = 0; i < authorInfo.length; i++) {
|
61
|
-
authorInfo[i].style.setProperty('background', 'var(--
|
62
|
-
authorInfo[i].style.setProperty('color', 'var(--
|
61
|
+
authorInfo[i].style.setProperty('background', 'var(--efu-white-op)');
|
62
|
+
authorInfo[i].style.setProperty('color', 'var(--efu-white)');
|
63
63
|
}
|
64
64
|
}
|
65
65
|
}
|
@@ -67,10 +67,10 @@ function setThemeColors(value, r = null, g = null, b = null) {
|
|
67
67
|
document.getElementById("coverdiv").classList.add("loaded");
|
68
68
|
initThemeColor();
|
69
69
|
} else {
|
70
|
-
document.documentElement.style.setProperty('--st-main', 'var(--
|
71
|
-
document.documentElement.style.setProperty('--st-main-op', 'var(--
|
72
|
-
document.documentElement.style.setProperty('--st-main-op-deep', 'var(--
|
73
|
-
document.documentElement.style.setProperty('--st-main-none', 'var(--
|
70
|
+
document.documentElement.style.setProperty('--st-main', 'var(--efu-theme)');
|
71
|
+
document.documentElement.style.setProperty('--st-main-op', 'var(--efu-theme-op)');
|
72
|
+
document.documentElement.style.setProperty('--st-main-op-deep', 'var(--efu-theme-op-deep)');
|
73
|
+
document.documentElement.style.setProperty('--st-main-none', 'var(--efu-theme-none)');
|
74
74
|
initThemeColor();
|
75
75
|
}
|
76
76
|
}
|
@@ -3,10 +3,10 @@ const coverColor = () => {
|
|
3
3
|
if (path) {
|
4
4
|
localColor(path);
|
5
5
|
} else {
|
6
|
-
document.documentElement.style.setProperty('--st-main', 'var(--
|
7
|
-
document.documentElement.style.setProperty('--st-main-op', 'var(--
|
8
|
-
document.documentElement.style.setProperty('--st-main-op-deep', 'var(--
|
9
|
-
document.documentElement.style.setProperty('--st-main-none', 'var(--
|
6
|
+
document.documentElement.style.setProperty('--st-main', 'var(--efu-theme)');
|
7
|
+
document.documentElement.style.setProperty('--st-main-op', 'var(--efu-theme-op)');
|
8
|
+
document.documentElement.style.setProperty('--st-main-op-deep', 'var(--efu-theme-op-deep)');
|
9
|
+
document.documentElement.style.setProperty('--st-main-none', 'var(--efu-theme-none)');
|
10
10
|
initThemeColor()
|
11
11
|
}
|
12
12
|
}
|
@@ -118,13 +118,13 @@ function setThemeColors(value, r = null, g = null, b = null) {
|
|
118
118
|
if (brightness < 125) {
|
119
119
|
let cardContents = document.getElementsByClassName('card-content');
|
120
120
|
for (let i = 0; i < cardContents.length; i++) {
|
121
|
-
cardContents[i].style.setProperty('--st-card-bg', 'var(--
|
121
|
+
cardContents[i].style.setProperty('--st-card-bg', 'var(--efu-white)');
|
122
122
|
}
|
123
123
|
|
124
124
|
let authorInfo = document.getElementsByClassName('author-info__sayhi');
|
125
125
|
for (let i = 0; i < authorInfo.length; i++) {
|
126
|
-
authorInfo[i].style.setProperty('background', 'var(--
|
127
|
-
authorInfo[i].style.setProperty('color', 'var(--
|
126
|
+
authorInfo[i].style.setProperty('background', 'var(--efu-white-op)');
|
127
|
+
authorInfo[i].style.setProperty('color', 'var(--efu-white)');
|
128
128
|
}
|
129
129
|
}
|
130
130
|
}
|
@@ -132,10 +132,10 @@ function setThemeColors(value, r = null, g = null, b = null) {
|
|
132
132
|
document.getElementById("coverdiv").classList.add("loaded");
|
133
133
|
initThemeColor();
|
134
134
|
} else {
|
135
|
-
document.documentElement.style.setProperty('--st-main', 'var(--
|
136
|
-
document.documentElement.style.setProperty('--st-main-op', 'var(--
|
137
|
-
document.documentElement.style.setProperty('--st-main-op-deep', 'var(--
|
138
|
-
document.documentElement.style.setProperty('--st-main-none', 'var(--
|
135
|
+
document.documentElement.style.setProperty('--st-main', 'var(--efu-theme)');
|
136
|
+
document.documentElement.style.setProperty('--st-main-op', 'var(--efu-theme-op)');
|
137
|
+
document.documentElement.style.setProperty('--st-main-op-deep', 'var(--efu-theme-op-deep)');
|
138
|
+
document.documentElement.style.setProperty('--st-main-none', 'var(--efu-theme-none)');
|
139
139
|
initThemeColor();
|
140
140
|
}
|
141
141
|
}
|
package/source/js/utils.js
CHANGED
@@ -185,7 +185,7 @@ const utils = {
|
|
185
185
|
const lightbox = GLOBAL_CONFIG.lightbox
|
186
186
|
|
187
187
|
if (lightbox === 'mediumZoom' && mediumZoom) {
|
188
|
-
mediumZoom(selector, {background: "var(--
|
188
|
+
mediumZoom(selector, {background: "var(--efu-card-bg)"});
|
189
189
|
}
|
190
190
|
|
191
191
|
if (lightbox === 'fancybox') {
|