hexo-theme-solitude 1.12.0 → 1.12.2
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 +7 -16
- package/README_en-US.md +7 -17
- package/README_zh-Hant.md +13 -23
- package/_config.yml +27 -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/page/about/other.pug +71 -70
- 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/event/merge_config.js +1 -0
- package/scripts/filter/post_image.js +13 -0
- package/scripts/helper/page.js +6 -2
- package/scripts/tags/btns.js +35 -0
- package/source/css/_global/index.styl +1 -0
- 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/_layout/recent-post.styl +19 -7
- 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/_tags/btns.styl +212 -0
- package/source/css/third_party/snackbar.min.css +1 -1
- package/source/css/third_party/tianli_talk.styl +16 -1
- package/source/js/main.js +97 -277
- package/source/js/music.js +1 -0
- package/source/js/right_menu.js +163 -136
@@ -1,82 +1,83 @@
|
|
1
1
|
- var tj = site.data.about.tj
|
2
2
|
- var oneself = site.data.about.oneself
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
.
|
8
|
-
.
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
.
|
20
|
-
|
21
|
-
|
22
|
-
|
4
|
+
if tj || oneself
|
5
|
+
.author-content
|
6
|
+
if tj
|
7
|
+
.about-statistic.author-content-item(style=`background: url(${tj.img});`)
|
8
|
+
.card-content
|
9
|
+
.author-content-item-tips=_p('about.other.tj.tip')
|
10
|
+
span.author-content-item-title=_p('about.other.tj.title')
|
11
|
+
#statistic
|
12
|
+
.post-tips
|
13
|
+
= _p('about.other.tj.post_tip')
|
14
|
+
case tj.provider
|
15
|
+
when '51la'
|
16
|
+
a(href="https://v6.51.la/") 51la网站统计
|
17
|
+
when 'baidu'
|
18
|
+
a(href="https://tongji.baidu.com/") 百度统计
|
19
|
+
if tj.button
|
20
|
+
.banner-button-group
|
21
|
+
a.banner-button(href=url_for(tj.button_link))
|
22
|
+
i.solitude.st-right-btn-fill
|
23
|
+
span.banner-button-text= tj.button_text
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
25
|
+
case tj.provider
|
26
|
+
when '51la'
|
27
|
+
script.
|
28
|
+
fetch("#{tj.url}")
|
29
|
+
.then(res => res.text())
|
30
|
+
.then(data => {
|
31
|
+
const title = ["最近活跃", "今日人数", "今日访问", "昨日人数", "昨日访问", "本月访问", "总访问量"];
|
32
|
+
let num = data.match(/(<\/span><span>).*?(\/span><\/p>)/g);
|
33
|
+
num = num.map(el => {
|
34
|
+
let val = el.replace(/(<\/span><span>)/g, "");
|
35
|
+
return val.replace(/(<\/span><\/p>)/g, "");
|
36
|
+
});
|
37
|
+
const s = document.getElementById("statistic");
|
38
|
+
let html = '';
|
39
|
+
for (let i = 0; i < num.length; i++) {
|
40
|
+
if (i === 0 || i === num.length - 1) continue;
|
41
|
+
html += `<div><span>${title[i]}</span><span id="${title[i]}">${num[i]}</span></div>`;
|
42
|
+
}
|
43
|
+
s.innerHTML = html;
|
35
44
|
});
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
s.innerHTML = html;
|
43
|
-
});
|
44
|
-
when 'baidu'
|
45
|
-
script.
|
46
|
-
fetch("#{tj.url}")
|
47
|
-
.then(res => res.json())
|
48
|
-
.then(data => {
|
49
|
-
const title = {"today_uv": "今日人数", "today_pv": "今日访问", "yesterday_uv": "昨日人数", "yesterday_pv": "昨日访问", "last_month_pv": "最近月访问", "last_year_pv": "最近年访问"};
|
45
|
+
when 'baidu'
|
46
|
+
script.
|
47
|
+
fetch("#{tj.url}")
|
48
|
+
.then(res => res.json())
|
49
|
+
.then(data => {
|
50
|
+
const title = {"today_uv": "今日人数", "today_pv": "今日访问", "yesterday_uv": "昨日人数", "yesterday_pv": "昨日访问", "last_month_pv": "最近月访问", "last_year_pv": "最近年访问"};
|
50
51
|
|
51
|
-
|
52
|
+
let s = document.getElementById("statistic");
|
52
53
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
54
|
+
for (let key in data) {
|
55
|
+
if (data.hasOwnProperty(key) && title[key]) {
|
56
|
+
s.innerHTML += `<div><span>${title[key]}</span><span id="${key}">${data[key]}</span></div>`;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
});
|
59
60
|
|
60
61
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
62
|
+
if oneself
|
63
|
+
style.
|
64
|
+
:root {
|
65
|
+
--site-about-oneself-map--light: url(#{oneself.map.light});
|
66
|
+
--site-about-oneself-map--dark: url(#{oneself.map.dark});
|
67
|
+
}
|
68
|
+
.author-content-item-group.column.mapAndInfo
|
69
|
+
.author-content-item.map.single
|
70
|
+
span.map-title=_p('about.other.oneself.map_title') + oneself.location
|
71
|
+
.author-content-item.selfInfo.single
|
72
|
+
div
|
73
|
+
span.selfInfo-title=_p('about.other.oneself.info_title1')
|
74
|
+
span.selfInfo-content(style="color: #43a6c6;")= oneself.birthYear
|
75
|
+
div
|
76
|
+
span.selfInfo-title= oneself.university
|
77
|
+
span.selfInfo-content(style="color: #c69043;")= oneself.major
|
78
|
+
div
|
79
|
+
span.selfInfo-title=_p('about.other.oneself.info_title2')
|
80
|
+
span.selfInfo-content(style="color: #b04fe6;")= oneself.occupation
|
80
81
|
|
81
82
|
- var cause = site.data.about.cause
|
82
83
|
|
@@ -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
|
+
});
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function postBtns(args, content) {
|
4
|
+
return `<div class="btns ${args.join(" ")}">
|
5
|
+
${content}
|
6
|
+
</div>`;
|
7
|
+
}
|
8
|
+
|
9
|
+
function postCell(args, content) {
|
10
|
+
args = args.join(" ").split(",");
|
11
|
+
let text = args[0] || "";
|
12
|
+
let url = args[1] || "";
|
13
|
+
text = text.trim();
|
14
|
+
url = url.trim();
|
15
|
+
if (url.length > 0) {
|
16
|
+
url = "href='" + url + "'";
|
17
|
+
}
|
18
|
+
let icon = "";
|
19
|
+
let img = "https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus/lib/assets/default.svg";
|
20
|
+
if (args.length > 2) {
|
21
|
+
if (args[2].indexOf(" solitude") > -1) {
|
22
|
+
icon = args[2].trim();
|
23
|
+
} else {
|
24
|
+
img = args[2].trim();
|
25
|
+
}
|
26
|
+
}
|
27
|
+
if (icon.length > 0) {
|
28
|
+
return `<a class="button no-text-decoration" ${url} title='${text}'><i class='${icon}'></i>${text}</a>`;
|
29
|
+
} else {
|
30
|
+
return `<a class="button no-text-decoration" ${url} title='${text}'><img src='${img}'>${text}</a>`;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
hexo.extend.tag.register("btns", postBtns, { ends: true });
|
35
|
+
hexo.extend.tag.register("cell", postCell);
|
@@ -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
|