hexo-theme-solitude 1.11.3 → 1.12.1
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/logo.svg +18 -42
- package/CONTRIBUTING.md +1 -1
- package/README.md +7 -19
- package/README_en-US.md +16 -26
- package/README_zh-Hant.md +15 -25
- package/SECURITY.md +1 -1
- package/_config.yml +52 -37
- package/languages/default.yml +15 -0
- package/languages/en.yml +15 -1
- package/languages/zh-CN.yml +14 -0
- package/languages/zh-TW.yml +14 -0
- package/layout/includes/body/mode.pug +3 -3
- package/layout/includes/console.pug +4 -3
- package/layout/includes/inject/body.pug +2 -3
- package/layout/includes/inject/head.pug +3 -2
- package/layout/includes/widgets/aside/asideNewstComments.pug +9 -0
- package/layout/includes/widgets/aside/asideSwitch.pug +2 -0
- package/layout/includes/widgets/home/carousel.pug +18 -1
- package/layout/includes/widgets/home/postList.pug +4 -3
- package/layout/includes/widgets/post/copyright.pug +46 -0
- package/layout/includes/widgets/post/postMeta.pug +1 -1
- package/layout/includes/widgets/post/postNav.pug +4 -4
- package/layout/includes/widgets/third-party/comments/comment.pug +3 -1
- package/layout/includes/widgets/third-party/comments/giscus.pug +60 -0
- package/layout/includes/widgets/third-party/comments/js.pug +3 -1
- package/layout/includes/widgets/third-party/news-comment/artalk.pug +10 -12
- package/layout/includes/widgets/third-party/news-comment/newest-comment.pug +6 -5
- package/layout/includes/widgets/third-party/news-comment/twikoo.pug +10 -9
- package/layout/includes/widgets/third-party/news-comment/valine.pug +9 -7
- package/layout/includes/widgets/third-party/news-comment/waline.pug +9 -7
- package/layout/post.pug +0 -22
- package/package.json +3 -3
- package/plugins.yml +6 -1
- package/scripts/event/merge_config.js +17 -16
- package/scripts/event/welcome.js +1 -1
- package/scripts/filter/default.js +2 -2
- package/scripts/filter/post_image.js +13 -0
- package/scripts/helper/page.js +6 -2
- package/source/css/_highlight/color.styl +69 -131
- package/source/css/_highlight/highlight/diff.styl +34 -62
- package/source/css/_highlight/index.styl +1 -1
- package/source/css/_highlight/prismjs/diff.styl +60 -59
- package/source/css/_layout/article-container.styl +1 -5
- package/source/css/_layout/aside.styl +52 -5
- package/source/css/_layout/console.styl +3 -78
- package/source/css/_page/_home/carousel.styl +2 -0
- package/source/css/_page/message.styl +2 -1
- package/source/css/_page/music.styl +8 -1
- package/source/css/_page/other.styl +1 -0
- package/source/css/_post/commentBarrage.styl +2 -11
- package/source/css/_post/copyright.styl +129 -2
- package/source/css/_post/meta.styl +4 -44
- package/source/css/_post/pagination.styl +13 -0
- package/source/css/_post/postAI.styl +2 -3
- package/source/css/_post/relatedPost.styl +115 -129
- package/source/css/_post/tools.styl +168 -271
- package/source/css/third_party/snackbar.min.css +1 -1
- package/source/img/404.avif +0 -0
- package/source/img/avatar.avif +0 -0
- package/source/img/default.avif +0 -0
- package/source/img/error_load.avif +0 -0
- package/source/img/happy-sticker.avif +0 -0
- package/source/img/loading.avif +0 -0
- package/source/img/recent_c.avif +0 -0
- package/source/js/main.js +98 -277
- package/source/js/music.js +1 -0
- package/source/js/right_menu.js +163 -136
- package/source/img/404.webp +0 -0
- package/source/img/avatar.png +0 -0
- package/source/img/default.png +0 -0
- package/source/img/error_load.webp +0 -0
- package/source/img/happy-sticker.png +0 -0
- package/source/img/loading.gif +0 -0
package/layout/post.pug
CHANGED
@@ -15,28 +15,6 @@ block content
|
|
15
15
|
span.tags-punctuation
|
16
16
|
| #{data.name}
|
17
17
|
span.tagsPageCount #{data.length}
|
18
|
-
.social-share
|
19
|
-
- const path = config.url + url_for(page.path);
|
20
|
-
- const encodedPath = encodeURIComponent(path);
|
21
|
-
- const encodedTitle = encodeURIComponent(page.title);
|
22
|
-
- const encodedDescription = encodeURIComponent(page.description);
|
23
|
-
- const encodedIcon = encodeURIComponent(page.cover || theme.site.icon);
|
24
|
-
each item in theme.post.share.list || []
|
25
|
-
case item
|
26
|
-
when 'qq'
|
27
|
-
a.social-share-ico.icon-qq(href=`https://connect.qq.com/widget/shareqq/index.html?url=${encodedPath}&title=${encodedTitle}&desc=${encodedDescription}&summary=${encodedDescription}&site=${encodedTitle}&pics=${encodedIcon}` title="QQ")
|
28
|
-
when 'weibo'
|
29
|
-
a.social-share-ico.icon-weibo(href=`http://service.weibo.com/share/share.php?url=${encodedPath}&title=${encodedTitle}&pic=${encodedIcon}` title="Weibo")
|
30
|
-
when 'telegram'
|
31
|
-
a.social-share-ico.icon-telegram(href=`https://t.me/share/url?url=${encodedPath}&text=${encodedTitle}` title="Telegram")
|
32
|
-
when 'whatsapp'
|
33
|
-
a.social-share-ico.icon-whatsapp(href=`https://api.whatsapp.com/send?text=${encodedTitle} ${encodedPath}` title="WhatsApp")
|
34
|
-
when 'linkedin'
|
35
|
-
a.social-share-ico.icon-linkedin(href=`https://www.linkedin.com/shareArticle?mini=true&url=${encodedPath}&title=${encodedTitle}&summary=${encodedDescription}&source=${encodedTitle}` title="LinkedIn")
|
36
|
-
when 'facebook'
|
37
|
-
a.social-share-ico.icon-facebook(href=`https://www.facebook.com/sharer/sharer.php?u=${encodedPath}` title="Facebook")
|
38
|
-
when 'twitter'
|
39
|
-
a.social-share-ico.icon-twitter(href=`https://twitter.com/intent/tweet?url=${encodedPath}&text=${encodedTitle}` title="Twitter")
|
40
18
|
if theme.google_adsense.enable && !theme.google_adsense.auto_ads && theme.google_adsense.post_content
|
41
19
|
div.google-ads-warp
|
42
20
|
ins.adsbygoogle(style="display:block; text-align:center; height:284px", data-ad-layout="in-article", data-ad-format="fluid", hide-unfilled="true", data-ad-client=theme.google_adsense.client, data-ad-slot=theme.google_adsense.slot)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "hexo-theme-solitude",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.12.1",
|
4
4
|
"description": "A beautiful, powerful, and efficient Hexo theme developed by EverFu.",
|
5
5
|
"main": "package.json",
|
6
6
|
"scripts": {
|
@@ -16,14 +16,14 @@
|
|
16
16
|
],
|
17
17
|
"repository": {
|
18
18
|
"type": "git",
|
19
|
-
"url": "https://github.com/
|
19
|
+
"url": "https://github.com/everfu/hexo-theme-solitude"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
22
|
"hexo-renderer-stylus": "^3.0.0",
|
23
23
|
"hexo-renderer-pug": "^3.0.0"
|
24
24
|
},
|
25
25
|
"bugs": {
|
26
|
-
"url": "https://github.com/
|
26
|
+
"url": "https://github.com/everfu/hexo-theme-solitude/issues",
|
27
27
|
"email": "o@efu.me"
|
28
28
|
},
|
29
29
|
"homepage": "https://www.efu.me/",
|
package/plugins.yml
CHANGED
@@ -29,7 +29,7 @@ hexo.extend.filter.register('before_generate', () => {
|
|
29
29
|
sup: 'Recommend',
|
30
30
|
title: 'Solitude Docs',
|
31
31
|
url: 'https://solitude.js.org/',
|
32
|
-
img: '/img/default.
|
32
|
+
img: '/img/default.avif',
|
33
33
|
color: 'none',
|
34
34
|
}
|
35
35
|
},
|
@@ -50,7 +50,7 @@ hexo.extend.filter.register('before_generate', () => {
|
|
50
50
|
style: 0,
|
51
51
|
author: {
|
52
52
|
img: '/img/logo.png',
|
53
|
-
sticker: '/img/happy-sticker.
|
53
|
+
sticker: '/img/happy-sticker.avif',
|
54
54
|
},
|
55
55
|
url: '/about/',
|
56
56
|
background: null,
|
@@ -72,6 +72,11 @@ hexo.extend.filter.register('before_generate', () => {
|
|
72
72
|
backface: '',
|
73
73
|
backcolor: 'var(--efu-blue)'
|
74
74
|
},
|
75
|
+
newest_comment: {
|
76
|
+
enable: false,
|
77
|
+
storage: .5,
|
78
|
+
limit: 5
|
79
|
+
},
|
75
80
|
toc: {
|
76
81
|
post: true,
|
77
82
|
page: false,
|
@@ -108,12 +113,12 @@ hexo.extend.filter.register('before_generate', () => {
|
|
108
113
|
tags: true,
|
109
114
|
categories: true,
|
110
115
|
default: {
|
111
|
-
cover: ['/img/default.
|
116
|
+
cover: ['/img/default.avif'],
|
112
117
|
}
|
113
118
|
},
|
114
119
|
post: {
|
115
120
|
default: {
|
116
|
-
cover: ['/img/default.
|
121
|
+
cover: ['/img/default.avif'],
|
117
122
|
locate: 'China, Changsha',
|
118
123
|
copyright: {
|
119
124
|
enable: true,
|
@@ -186,7 +191,7 @@ hexo.extend.filter.register('before_generate', () => {
|
|
186
191
|
license: null,
|
187
192
|
links: [{
|
188
193
|
name: 'Solitude',
|
189
|
-
url: 'https://github.com/
|
194
|
+
url: 'https://github.com/everfu/hexo-theme-solitude',
|
190
195
|
}]
|
191
196
|
},
|
192
197
|
errorpage: {
|
@@ -236,8 +241,8 @@ hexo.extend.filter.register('before_generate', () => {
|
|
236
241
|
lazyload: {
|
237
242
|
enable: false,
|
238
243
|
field: 'site',
|
239
|
-
placeholder: '/img/loading.
|
240
|
-
errorimg: '/img/error_load.
|
244
|
+
placeholder: '/img/loading.avif',
|
245
|
+
errorimg: '/img/error_load.avif'
|
241
246
|
},
|
242
247
|
loading: {
|
243
248
|
fullpage: false,
|
@@ -300,10 +305,6 @@ hexo.extend.filter.register('before_generate', () => {
|
|
300
305
|
lazyload: false,
|
301
306
|
count: false,
|
302
307
|
avatar: 'https://cravatar.cn',
|
303
|
-
newest_comment: {
|
304
|
-
enable: false,
|
305
|
-
storage: .2
|
306
|
-
}
|
307
308
|
},
|
308
309
|
twikoo: {
|
309
310
|
envId: 'your envId',
|
@@ -347,11 +348,11 @@ hexo.extend.filter.register('before_generate', () => {
|
|
347
348
|
enable: false,
|
348
349
|
manifest: '/manifest.json',
|
349
350
|
theme_color: "#006a73",
|
350
|
-
mask_icon: '/img/
|
351
|
-
apple_touch_icon: '/img/
|
352
|
-
bookmark_icon: '/img/
|
353
|
-
favicon_32_32: '/img/
|
354
|
-
favicon_16_16: '/img/
|
351
|
+
mask_icon: '/img/pwa/favicon.ico',
|
352
|
+
apple_touch_icon: '/img/pwa/favicon.ico',
|
353
|
+
bookmark_icon: '/img/pwa/favicon.ico',
|
354
|
+
favicon_32_32: '/img/pwa/favicon_32.ico',
|
355
|
+
favicon_16_16: '/img/pwa/favicon_16.ico'
|
355
356
|
},
|
356
357
|
google_adsense: {
|
357
358
|
enable: false,
|
package/scripts/event/welcome.js
CHANGED
@@ -9,6 +9,6 @@ hexo.on('ready', () => {
|
|
9
9
|
###### #### ##### ##### # ### ###### ######
|
10
10
|
${version}
|
11
11
|
===================================================================
|
12
|
-
GitHub: https://github.com/
|
12
|
+
GitHub: https://github.com/everfu/hexo-theme-solitude
|
13
13
|
`)
|
14
14
|
})
|
@@ -5,7 +5,7 @@ hexo.extend.filter.register('after_post_render', function (data) {
|
|
5
5
|
const {config} = hexo.theme;
|
6
6
|
if (data.layout === 'post') {
|
7
7
|
let {copyright, locate, cover} = hexo.theme.config.post.default
|
8
|
-
cover = cover !== null ? cover : ['/img/default.
|
8
|
+
cover = cover !== null ? cover : ['/img/default.avif']
|
9
9
|
data.locate = data.locate || locate
|
10
10
|
data.cc = data.cc || copyright
|
11
11
|
data.cover = data.cover || cover[getRandomInt(0, cover?.length)]
|
@@ -15,7 +15,7 @@ hexo.extend.filter.register('after_post_render', function (data) {
|
|
15
15
|
}
|
16
16
|
if (data.layout === 'page') {
|
17
17
|
let {cover} = hexo.theme.config.page.default
|
18
|
-
cover = cover !== null ? cover : ['/img/default.
|
18
|
+
cover = cover !== null ? cover : ['/img/default.avif']
|
19
19
|
data.cover = data.cover || cover[getRandomInt(0, cover?.length)]
|
20
20
|
data.excerpt = data.title
|
21
21
|
data.toc = !!(config.aside.toc.page && data.toc !== false && data.aside);
|
@@ -0,0 +1,13 @@
|
|
1
|
+
'use strict'
|
2
|
+
|
3
|
+
hexo.extend.filter.register('before_post_render', data => {
|
4
|
+
const imgTestReg = /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i
|
5
|
+
let { cover: coverVal } = data
|
6
|
+
|
7
|
+
// Add path to top_img and cover if post_asset_folder is enabled
|
8
|
+
if (hexo.config.post_asset_folder) {
|
9
|
+
if (coverVal && coverVal.indexOf('/') === -1 && imgTestReg.test(coverVal)) data.cover = `${data.path}${coverVal}`
|
10
|
+
}
|
11
|
+
|
12
|
+
return data
|
13
|
+
})
|
package/scripts/helper/page.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
const { stripHTML, escapeHTML } = require(
|
2
|
+
const { stripHTML, escapeHTML, prettyUrls } = require("hexo-util");
|
3
3
|
hexo.extend.helper.register('page_description', function () {
|
4
4
|
const { config, page } = this
|
5
5
|
let description = page.description || page.content || page.title || config.description
|
@@ -10,4 +10,8 @@ hexo.extend.helper.register('page_description', function () {
|
|
10
10
|
).replace(/\n/g, ' ').replace(/\s+/g, ' ');
|
11
11
|
return description
|
12
12
|
}
|
13
|
-
})
|
13
|
+
})
|
14
|
+
|
15
|
+
hexo.extend.helper.register("urlNoIndex", function (url = null) {
|
16
|
+
return prettyUrls(url || this.url, { trailing_index: false, trailing_html: true });
|
17
|
+
});
|
@@ -1,134 +1,72 @@
|
|
1
1
|
$highlight_color = hexo-config('highlight.color')
|
2
2
|
|
3
3
|
if $highlight_color == "default"
|
4
|
-
$highlight-
|
5
|
-
$highlight-
|
6
|
-
$highlight-
|
7
|
-
$highlight-
|
8
|
-
$highlight-
|
9
|
-
$highlight-
|
10
|
-
$highlight-
|
11
|
-
$highlight-
|
12
|
-
$highlight-
|
13
|
-
$highlight-
|
14
|
-
|
15
|
-
$highlight-
|
16
|
-
$highlight-
|
17
|
-
$highlight-
|
18
|
-
$highlight-
|
19
|
-
$highlight-
|
20
|
-
|
21
|
-
$highlight-
|
22
|
-
$highlight-
|
23
|
-
$highlight-
|
24
|
-
$highlight-
|
25
|
-
|
26
|
-
$highlight-
|
27
|
-
$highlight-
|
28
|
-
$highlight-
|
29
|
-
$highlight-
|
30
|
-
$highlight-
|
31
|
-
$highlight-
|
32
|
-
$highlight-
|
33
|
-
$highlight-
|
34
|
-
$highlight-
|
35
|
-
$highlight-
|
36
|
-
|
37
|
-
|
38
|
-
$highlight-
|
39
|
-
$highlight-
|
40
|
-
$highlight-
|
41
|
-
$highlight-
|
42
|
-
$highlight-
|
43
|
-
$highlight-
|
44
|
-
$highlight-
|
45
|
-
$highlight-
|
46
|
-
$highlight-
|
47
|
-
|
48
|
-
$highlight-
|
49
|
-
$highlight-
|
50
|
-
$highlight-
|
51
|
-
$highlight-
|
52
|
-
$highlight-
|
53
|
-
$highlight-
|
54
|
-
$highlight-
|
55
|
-
$highlight-
|
56
|
-
|
57
|
-
$highlight-
|
58
|
-
|
59
|
-
$highlight-
|
60
|
-
$highlight-
|
61
|
-
$highlight-
|
62
|
-
$highlight-
|
63
|
-
$highlight-
|
64
|
-
$highlight-
|
65
|
-
$highlight-
|
66
|
-
$highlight-
|
67
|
-
$highlight-
|
68
|
-
$highlight-
|
69
|
-
|
70
|
-
$highlight-comment =
|
71
|
-
$highlight-
|
72
|
-
$highlight-
|
73
|
-
$highlight-yellow = #FFCB6B
|
74
|
-
$highlight-green = #C3E88D
|
75
|
-
$highlight-aqua = #89DDFF
|
76
|
-
$highlight-blue = #82AAFF
|
77
|
-
$highlight-purple = #C792EA
|
78
|
-
$highlight-deletion = #BF42BF
|
79
|
-
$highlight-addition = #105EDE
|
80
|
-
else if $highlight_color == "material"
|
81
|
-
$highlight-comment = #546E7A
|
82
|
-
$highlight-red = #FF5370
|
83
|
-
$highlight-orange = #FFCB6B
|
84
|
-
$highlight-yellow = #C3E88D
|
85
|
-
$highlight-green = #89DDFF
|
86
|
-
$highlight-aqua = #82AAFF
|
87
|
-
$highlight-blue = #C792EA
|
88
|
-
$highlight-purple = #FF5370
|
89
|
-
$highlight-deletion = #F07178
|
90
|
-
$highlight-addition = #C3E88D
|
91
|
-
else if $highlight_color == "solarized-light"
|
92
|
-
$highlight-comment = #93A1A1
|
93
|
-
$highlight-red = #DC322F
|
94
|
-
$highlight-orange = #CB4B16
|
95
|
-
$highlight-yellow = #B58900
|
96
|
-
$highlight-green = #859900
|
97
|
-
$highlight-aqua = #2AA198
|
98
|
-
$highlight-blue = #268BD2
|
99
|
-
$highlight-purple = #6C71C4
|
100
|
-
$highlight-deletion = #D33682
|
101
|
-
$highlight-addition = #859900
|
102
|
-
else if $highlight_color == "solarized-dark"
|
103
|
-
$highlight-comment = #657B83
|
104
|
-
$highlight-red = #DC322F
|
105
|
-
$highlight-orange = #CB4B16
|
106
|
-
$highlight-yellow = #B58900
|
107
|
-
$highlight-green = #859900
|
108
|
-
$highlight-aqua = #2AA198
|
109
|
-
$highlight-blue = #268BD2
|
110
|
-
$highlight-purple = #6C71C4
|
111
|
-
$highlight-deletion = #D33682
|
112
|
-
$highlight-addition = #859900
|
113
|
-
else if $highlight_color == "github"
|
114
|
-
$highlight-comment = #969896
|
115
|
-
$highlight-red = #D73A49
|
116
|
-
$highlight-orange = #BD2C00
|
117
|
-
$highlight-yellow = #E5C07B
|
118
|
-
$highlight-green = #28A745
|
119
|
-
$highlight-aqua = #00A9C0
|
120
|
-
$highlight-blue = #0366D6
|
121
|
-
$highlight-purple = #6F42C1
|
122
|
-
$highlight-deletion = #D73A49
|
123
|
-
$highlight-addition = #28A745
|
124
|
-
else
|
125
|
-
$highlight-comment = #6272A4
|
126
|
-
$highlight-red = #FF5370
|
127
|
-
$highlight-orange = #F78C6C
|
128
|
-
$highlight-yellow = #FFCB6B
|
129
|
-
$highlight-green = #C3E88D
|
130
|
-
$highlight-aqua = #89DDFF
|
131
|
-
$highlight-blue = #82AAFF
|
132
|
-
$highlight-purple = #C792EA
|
133
|
-
$highlight-deletion = #BF42BF
|
134
|
-
$highlight-addition = #105EDE
|
4
|
+
$highlight-variable-dark = #569CD6
|
5
|
+
$highlight-number-dark = #B5CEA8
|
6
|
+
$highlight-string-dark = #CE9178
|
7
|
+
$highlight-title-dark = #DCDCAA
|
8
|
+
$highlight-emphasis-dark = #6A9955
|
9
|
+
$highlight-variable-light = #0000FF
|
10
|
+
$highlight-number-light = #098658
|
11
|
+
$highlight-string-light = #A31515
|
12
|
+
$highlight-title-light = #795E26
|
13
|
+
$highlight-emphasis-light = #0451A5
|
14
|
+
$highlight-parameter-dark = #FFB86C
|
15
|
+
$highlight-parameter-light = #FFB86C
|
16
|
+
$highlight-comment-dark = $highlight-string-dark
|
17
|
+
$highlight-comment-light = $highlight-string-light
|
18
|
+
$highlight-deleted = #f00
|
19
|
+
$highlight-inserted = #35cd4b
|
20
|
+
else if $highlight_color == "solidity"
|
21
|
+
$highlight-variable-dark = #D74BDE
|
22
|
+
$highlight-number-dark = #8DA1A0
|
23
|
+
$highlight-string-dark = #5B876D
|
24
|
+
$highlight-title-dark = #D74BDE
|
25
|
+
$highlight-emphasis-dark = #BA9C23
|
26
|
+
$highlight-variable-light = #0000FF
|
27
|
+
$highlight-number-light = #098658
|
28
|
+
$highlight-string-light = #A31515
|
29
|
+
$highlight-title-light = #795E26
|
30
|
+
$highlight-emphasis-light = #0451A5
|
31
|
+
$highlight-parameter-dark = #FFB86C
|
32
|
+
$highlight-parameter-light = #FFB86C
|
33
|
+
$highlight-comment-dark = $highlight-string-dark
|
34
|
+
$highlight-comment-light = $highlight-string-light
|
35
|
+
$highlight-deleted = #f00
|
36
|
+
$highlight-inserted = #35cd4b
|
37
|
+
else if $highlight_color == "dracula"
|
38
|
+
$highlight-variable-dark = #FF79C6
|
39
|
+
$highlight-number-dark = #BD93F9
|
40
|
+
$highlight-string-dark = #F1FA8C
|
41
|
+
$highlight-title-dark = #50FA7B
|
42
|
+
$highlight-emphasis-dark = #8BE9FD
|
43
|
+
$highlight-variable-light = #FF79C6
|
44
|
+
$highlight-number-light = #BD93F9
|
45
|
+
$highlight-string-light = #A31515
|
46
|
+
$highlight-title-light = #795E26
|
47
|
+
$highlight-emphasis-light = #0451A5
|
48
|
+
$highlight-parameter-dark = #FFB86C
|
49
|
+
$highlight-parameter-light = #FFB86C
|
50
|
+
$highlight-comment-dark = #6272A4
|
51
|
+
$highlight-comment-light = #6272A4
|
52
|
+
$highlight-important-dark = #BD93F9
|
53
|
+
$highlight-important-light = #BD93F9
|
54
|
+
$highlight-deleted = #f00
|
55
|
+
$highlight-inserted = #35cd4b
|
56
|
+
else
|
57
|
+
$highlight-variable-dark = #569CD6
|
58
|
+
$highlight-number-dark = #B5CEA8
|
59
|
+
$highlight-string-dark = #CE9178
|
60
|
+
$highlight-title-dark = #DCDCAA
|
61
|
+
$highlight-emphasis-dark = #6A9955
|
62
|
+
$highlight-variable-light = #0000FF
|
63
|
+
$highlight-number-light = #098658
|
64
|
+
$highlight-string-light = #A31515
|
65
|
+
$highlight-title-light = #795E26
|
66
|
+
$highlight-emphasis-light = #0451A5
|
67
|
+
$highlight-parameter-dark = #FFB86C
|
68
|
+
$highlight-parameter-light = #FFB86C
|
69
|
+
$highlight-comment-dark = $highlight-string-dark
|
70
|
+
$highlight-comment-light = $highlight-string-light
|
71
|
+
$highlight-deleted = #f00
|
72
|
+
$highlight-inserted = #35cd4b
|
@@ -5,75 +5,47 @@ figure.highlight
|
|
5
5
|
background var(--efu-hl-bg)
|
6
6
|
border-radius 6px
|
7
7
|
display initial
|
8
|
-
pre .deletion
|
9
|
-
color $highlight-deletion
|
10
8
|
|
11
|
-
|
12
|
-
|
9
|
+
.keyword
|
10
|
+
.attr
|
11
|
+
.variable
|
12
|
+
.literal
|
13
|
+
.property
|
14
|
+
color $highlight-variable-light
|
13
15
|
|
14
|
-
|
15
|
-
color $highlight-
|
16
|
+
.number
|
17
|
+
color $highlight-number-light
|
16
18
|
|
17
|
-
|
18
|
-
|
19
|
-
color $highlight-comment
|
19
|
+
.string
|
20
|
+
color $highlight-string-light
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
.xml .pi,
|
27
|
-
.xml .doctype,
|
28
|
-
.html .doctype,
|
29
|
-
.css .id,
|
30
|
-
.tag .name,
|
31
|
-
.css .class,
|
32
|
-
.css .pseudo
|
33
|
-
color $highlight-red
|
22
|
+
.built_in
|
23
|
+
.title
|
24
|
+
.params
|
25
|
+
.name
|
26
|
+
color $highlight-title-light
|
34
27
|
|
35
|
-
|
36
|
-
|
28
|
+
.emphasis
|
29
|
+
color $highlight-emphasis-light
|
37
30
|
|
38
|
-
|
39
|
-
.
|
40
|
-
.
|
41
|
-
.
|
42
|
-
.
|
43
|
-
|
44
|
-
color $highlight-orange
|
31
|
+
[data-theme=dark] &
|
32
|
+
.keyword
|
33
|
+
.attr
|
34
|
+
.variable
|
35
|
+
.property
|
36
|
+
color $highlight-variable-dark
|
45
37
|
|
46
|
-
.
|
47
|
-
color $highlight-
|
48
|
-
|
49
|
-
.ruby .class .title,
|
50
|
-
.css .rules .attribute,
|
51
|
-
.string,
|
52
|
-
.value,
|
53
|
-
.inheritance,
|
54
|
-
.header,
|
55
|
-
.ruby .symbol,
|
56
|
-
.xml .cdata,
|
57
|
-
.special,
|
58
|
-
.number,
|
59
|
-
.formula
|
60
|
-
color $highlight-green
|
38
|
+
.number
|
39
|
+
color $highlight-number-dark
|
61
40
|
|
62
|
-
.
|
63
|
-
|
64
|
-
.css .hexcolor
|
65
|
-
color: $highlight-aqua
|
41
|
+
.string
|
42
|
+
color $highlight-string-dark
|
66
43
|
|
67
|
-
.
|
68
|
-
.
|
69
|
-
.
|
70
|
-
.
|
71
|
-
|
72
|
-
.perl .sub,
|
73
|
-
.javascript .title,
|
74
|
-
.coffeescript .title
|
75
|
-
color $highlight-blue
|
44
|
+
.built_in
|
45
|
+
.built_in
|
46
|
+
.title
|
47
|
+
.params
|
48
|
+
color $highlight-title-dark
|
76
49
|
|
77
|
-
.
|
78
|
-
|
79
|
-
color $highlight-purple
|
50
|
+
.emphasis
|
51
|
+
color $highlight-emphasis-dark
|