hexo-theme-solitude 1.12.0 → 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/README.md +4 -15
- package/README_en-US.md +6 -16
- package/README_zh-Hant.md +12 -22
- package/_config.yml +26 -23
- package/languages/default.yml +14 -0
- package/languages/en.yml +14 -1
- package/languages/zh-CN.yml +13 -0
- package/languages/zh-TW.yml +13 -0
- package/layout/includes/body/mode.pug +3 -3
- package/layout/includes/inject/body.pug +2 -0
- package/layout/includes/inject/head.pug +2 -1
- 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/news-comment/twikoo.pug +1 -0
- package/layout/includes/widgets/third-party/news-comment/valine.pug +1 -0
- package/layout/includes/widgets/third-party/news-comment/waline.pug +1 -0
- package/layout/post.pug +0 -22
- package/package.json +1 -1
- package/plugins.yml +6 -1
- 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/prismjs/diff.styl +60 -59
- package/source/css/_layout/article-container.styl +1 -5
- package/source/css/_page/_home/carousel.styl +2 -0
- 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 +1 -31
- 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 +166 -274
- package/source/css/third_party/snackbar.min.css +1 -1
- package/source/js/main.js +98 -277
- package/source/js/music.js +1 -0
- package/source/js/right_menu.js +163 -136
@@ -15,6 +15,52 @@
|
|
15
15
|
a.reward-link-button(href=url_for(theme.post.rss))
|
16
16
|
i.solitude.st-plant-fill
|
17
17
|
= _p('footer.rss')
|
18
|
+
if theme.post.share.enable
|
19
|
+
.social-share
|
20
|
+
- const path = config.url + url_for(page.path);
|
21
|
+
- const encodedPath = encodeURIComponent(path);
|
22
|
+
- const encodedTitle = encodeURIComponent(page.title);
|
23
|
+
- const encodedDescription = encodeURIComponent(page.description);
|
24
|
+
- const encodedIcon = encodeURIComponent(page.cover || theme.site.icon);
|
25
|
+
each item in theme.post.share.list || []
|
26
|
+
case item
|
27
|
+
when 'qq'
|
28
|
+
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=_p('post.share.qq'))
|
29
|
+
i.solitude.st-qq-fill
|
30
|
+
when 'weibo'
|
31
|
+
a.social-share-ico.icon-weibo(href=`http://service.weibo.com/share/share.php?url=${encodedPath}&title=${encodedTitle}&pic=${encodedIcon}` title=_p('post.share.weibo'))
|
32
|
+
i.solitude.st-weibo-fill
|
33
|
+
when 'telegram'
|
34
|
+
a.social-share-ico.icon-telegram(href=`https://t.me/share/url?url=${encodedPath}&text=${encodedTitle}` title=_p('post.share.telegram'))
|
35
|
+
i.solitude.st-telegram-fill
|
36
|
+
when 'whatsapp'
|
37
|
+
a.social-share-ico.icon-whatsapp(href=`https://api.whatsapp.com/send?text=${encodedTitle} ${encodedPath}` title=_p('post.share.whatsapp'))
|
38
|
+
i.solitude.st-whatsapp-fill
|
39
|
+
when 'linkedin'
|
40
|
+
a.social-share-ico.icon-linkedin(href=`https://www.linkedin.com/shareArticle?mini=true&url=${encodedPath}&title=${encodedTitle}&summary=${encodedDescription}&source=${encodedTitle}` title=_p('post.share.linkedin'))
|
41
|
+
i.solitude.st-linkedin-box-fill
|
42
|
+
when 'facebook'
|
43
|
+
a.social-share-ico.icon-facebook(href=`https://www.facebook.com/sharer/sharer.php?u=${encodedPath}` title=_p('post.share.facebook'))
|
44
|
+
i.solitude.st-facebook-fill
|
45
|
+
when 'twitter'
|
46
|
+
a.social-share-ico.icon-twitter(href=`https://twitter.com/intent/tweet?url=${encodedPath}&text=${encodedTitle}` title=_p('post.share.twitter'))
|
47
|
+
i.solitude.st-twitter-x-fill
|
48
|
+
when 'link'
|
49
|
+
.social-share-ico.icon-link(onclick=`utils.copy("${path}")` title=_p('post.share.link'))
|
50
|
+
i.solitude.st-links-line
|
51
|
+
when 'qrcode'
|
52
|
+
.social-share-ico.icon-qrcode(title=_p('post.share.qrcode'))
|
53
|
+
i.solitude.st-qr-code-fill
|
54
|
+
.share-main
|
55
|
+
.share-main-all
|
56
|
+
#qrcode
|
57
|
+
.reward-dec=_p('post.share.qrcode')
|
58
|
+
script(pjax).
|
59
|
+
typeof QRCode === 'function' && new QRCode(document.getElementById("qrcode"), '!{path}');
|
60
|
+
window.addEventListener('DOMContentLoaded', () => {
|
61
|
+
new QRCode(document.getElementById("qrcode"), '!{path}');
|
62
|
+
});
|
63
|
+
|
18
64
|
if copyright.enable || page.copyright
|
19
65
|
.post-copyright__notice
|
20
66
|
span.post-copyright-info
|
@@ -3,23 +3,23 @@ nav.needEndHide.pagination-post#pagination
|
|
3
3
|
.prev-post.pull-left
|
4
4
|
a(href=url_for(page.prev.path))
|
5
5
|
.pagination-info
|
6
|
-
.label
|
6
|
+
.label=_p('post.nav.prev')
|
7
7
|
.prev_info= page.prev.title
|
8
8
|
.next-post.pull-right
|
9
9
|
a(href=url_for(page.next.path))
|
10
10
|
.pagination-info
|
11
|
-
.label
|
11
|
+
.label=_p('post.nav.next')
|
12
12
|
.next_info= page.next.title
|
13
13
|
else
|
14
14
|
if !page.prev && page.next
|
15
15
|
.next-post.pull-full
|
16
16
|
a(href=url_for(page.next.path))
|
17
17
|
div.pagination-info
|
18
|
-
.label
|
18
|
+
.label=_p('post.nav.next')
|
19
19
|
.next_info= page.next.title
|
20
20
|
if !page.next && page.prev
|
21
21
|
.prev-post.pull-full
|
22
22
|
a(href=url_for(page.prev.path))
|
23
23
|
.pagination-info
|
24
|
-
.label
|
24
|
+
.label=_p('post.nav.prev')
|
25
25
|
.prev_info= page.prev.title
|
@@ -21,6 +21,7 @@ script.
|
|
21
21
|
|
22
22
|
const $asideList = document.querySelector('.card-recent-comment .aside-list')
|
23
23
|
const newestCommentInit = () => {
|
24
|
+
if (!document.querySelector('.card-recent-comment')) return
|
24
25
|
const data = utils.saveToLocal.get('valine-newest-comment')
|
25
26
|
if (data) {
|
26
27
|
generateHtml(data)
|
@@ -20,6 +20,7 @@ script.
|
|
20
20
|
|
21
21
|
const $asideList = document.querySelector('.card-recent-comment .aside-list')
|
22
22
|
const newestCommentInit = () => {
|
23
|
+
if (!document.querySelector('.card-recent-comment')) return
|
23
24
|
const data = utils.saveToLocal.get('waline-newest-comment')
|
24
25
|
if (data) {
|
25
26
|
generateHtml(data)
|
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
package/plugins.yml
CHANGED
@@ -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
|
@@ -1,79 +1,80 @@
|
|
1
1
|
pre[class*='language-']
|
2
|
-
.token
|
3
|
-
&.function,
|
4
|
-
&.punctuation
|
5
|
-
color $highlight-blue
|
6
2
|
|
7
|
-
.
|
8
|
-
.
|
9
|
-
|
10
|
-
.token.cdata
|
11
|
-
color $highlight-comment
|
3
|
+
.keyword
|
4
|
+
.function
|
5
|
+
color $highlight-variable-light
|
12
6
|
|
13
|
-
.
|
14
|
-
|
7
|
+
.operator
|
8
|
+
color $highlight-variable-light
|
15
9
|
|
16
|
-
.
|
17
|
-
|
18
|
-
.token.number
|
19
|
-
color: $highlight-orange
|
10
|
+
.number
|
11
|
+
color $highlight-number-light
|
20
12
|
|
21
|
-
.
|
22
|
-
|
13
|
+
.property
|
14
|
+
.class-name
|
15
|
+
.title
|
16
|
+
color $highlight-title-light
|
23
17
|
|
24
|
-
.
|
25
|
-
color
|
18
|
+
.string
|
19
|
+
color $highlight-string-light
|
20
|
+
|
21
|
+
.parameter
|
22
|
+
color $highlight-parameter-light
|
26
23
|
|
27
|
-
.
|
28
|
-
|
24
|
+
.blockquote
|
25
|
+
cikir $highlight-emphasis-light
|
29
26
|
|
30
|
-
.
|
31
|
-
color
|
27
|
+
.comment
|
28
|
+
color $highlight-comment-light
|
32
29
|
|
33
|
-
.
|
34
|
-
color
|
30
|
+
.atrule
|
31
|
+
color $highlight-emphasis-light
|
35
32
|
|
36
|
-
.
|
37
|
-
|
38
|
-
.language-css .token.string,
|
39
|
-
.style .token.string
|
40
|
-
color: $highlight-aqua
|
33
|
+
.boolean
|
34
|
+
color $highlight-important-light
|
41
35
|
|
42
|
-
.
|
43
|
-
|
44
|
-
.token.control,
|
45
|
-
.token.directive,
|
46
|
-
.token.unit
|
47
|
-
color: $highlight-yellow
|
36
|
+
.deleted
|
37
|
+
color $highlight-deleted
|
48
38
|
|
49
|
-
.
|
50
|
-
|
51
|
-
.token.atrule
|
52
|
-
color: $highlight-aqua
|
39
|
+
.inserted
|
40
|
+
color $highlight-inserted
|
53
41
|
|
54
|
-
|
55
|
-
|
56
|
-
|
42
|
+
[data-theme='dark'] &
|
43
|
+
.keyword
|
44
|
+
.function
|
45
|
+
color $highlight-variable-dark
|
57
46
|
|
58
|
-
|
59
|
-
|
47
|
+
.operator
|
48
|
+
color $highlight-variable-dark
|
60
49
|
|
61
|
-
|
62
|
-
|
50
|
+
.number
|
51
|
+
color $highlight-number-dark
|
63
52
|
|
64
|
-
|
65
|
-
|
53
|
+
.property
|
54
|
+
.class-name
|
55
|
+
.title
|
56
|
+
color $highlight-title-dark
|
66
57
|
|
67
|
-
|
68
|
-
|
69
|
-
|
58
|
+
.string
|
59
|
+
color $highlight-string-dark
|
60
|
+
|
61
|
+
.parameter
|
62
|
+
color $highlight-parameter-dark
|
70
63
|
|
71
|
-
|
72
|
-
|
64
|
+
.blockquote
|
65
|
+
color $highlight-emphasis-dark
|
73
66
|
|
74
|
-
|
75
|
-
|
67
|
+
.comment
|
68
|
+
color $highlight-comment-dark
|
76
69
|
|
77
|
-
|
78
|
-
|
79
|
-
|
70
|
+
.atrule
|
71
|
+
color $highlight-emphasis-dark
|
72
|
+
|
73
|
+
.boolean
|
74
|
+
color $highlight-important-dark
|
75
|
+
|
76
|
+
.deleted
|
77
|
+
color $highlight-deleted
|
78
|
+
|
79
|
+
.inserted
|
80
|
+
color $highlight-inserted
|