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.
Files changed (73) hide show
  1. package/.github/logo.svg +18 -42
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +7 -19
  4. package/README_en-US.md +16 -26
  5. package/README_zh-Hant.md +15 -25
  6. package/SECURITY.md +1 -1
  7. package/_config.yml +52 -37
  8. package/languages/default.yml +15 -0
  9. package/languages/en.yml +15 -1
  10. package/languages/zh-CN.yml +14 -0
  11. package/languages/zh-TW.yml +14 -0
  12. package/layout/includes/body/mode.pug +3 -3
  13. package/layout/includes/console.pug +4 -3
  14. package/layout/includes/inject/body.pug +2 -3
  15. package/layout/includes/inject/head.pug +3 -2
  16. package/layout/includes/widgets/aside/asideNewstComments.pug +9 -0
  17. package/layout/includes/widgets/aside/asideSwitch.pug +2 -0
  18. package/layout/includes/widgets/home/carousel.pug +18 -1
  19. package/layout/includes/widgets/home/postList.pug +4 -3
  20. package/layout/includes/widgets/post/copyright.pug +46 -0
  21. package/layout/includes/widgets/post/postMeta.pug +1 -1
  22. package/layout/includes/widgets/post/postNav.pug +4 -4
  23. package/layout/includes/widgets/third-party/comments/comment.pug +3 -1
  24. package/layout/includes/widgets/third-party/comments/giscus.pug +60 -0
  25. package/layout/includes/widgets/third-party/comments/js.pug +3 -1
  26. package/layout/includes/widgets/third-party/news-comment/artalk.pug +10 -12
  27. package/layout/includes/widgets/third-party/news-comment/newest-comment.pug +6 -5
  28. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +10 -9
  29. package/layout/includes/widgets/third-party/news-comment/valine.pug +9 -7
  30. package/layout/includes/widgets/third-party/news-comment/waline.pug +9 -7
  31. package/layout/post.pug +0 -22
  32. package/package.json +3 -3
  33. package/plugins.yml +6 -1
  34. package/scripts/event/merge_config.js +17 -16
  35. package/scripts/event/welcome.js +1 -1
  36. package/scripts/filter/default.js +2 -2
  37. package/scripts/filter/post_image.js +13 -0
  38. package/scripts/helper/page.js +6 -2
  39. package/source/css/_highlight/color.styl +69 -131
  40. package/source/css/_highlight/highlight/diff.styl +34 -62
  41. package/source/css/_highlight/index.styl +1 -1
  42. package/source/css/_highlight/prismjs/diff.styl +60 -59
  43. package/source/css/_layout/article-container.styl +1 -5
  44. package/source/css/_layout/aside.styl +52 -5
  45. package/source/css/_layout/console.styl +3 -78
  46. package/source/css/_page/_home/carousel.styl +2 -0
  47. package/source/css/_page/message.styl +2 -1
  48. package/source/css/_page/music.styl +8 -1
  49. package/source/css/_page/other.styl +1 -0
  50. package/source/css/_post/commentBarrage.styl +2 -11
  51. package/source/css/_post/copyright.styl +129 -2
  52. package/source/css/_post/meta.styl +4 -44
  53. package/source/css/_post/pagination.styl +13 -0
  54. package/source/css/_post/postAI.styl +2 -3
  55. package/source/css/_post/relatedPost.styl +115 -129
  56. package/source/css/_post/tools.styl +168 -271
  57. package/source/css/third_party/snackbar.min.css +1 -1
  58. package/source/img/404.avif +0 -0
  59. package/source/img/avatar.avif +0 -0
  60. package/source/img/default.avif +0 -0
  61. package/source/img/error_load.avif +0 -0
  62. package/source/img/happy-sticker.avif +0 -0
  63. package/source/img/loading.avif +0 -0
  64. package/source/img/recent_c.avif +0 -0
  65. package/source/js/main.js +98 -277
  66. package/source/js/music.js +1 -0
  67. package/source/js/right_menu.js +163 -136
  68. package/source/img/404.webp +0 -0
  69. package/source/img/avatar.png +0 -0
  70. package/source/img/default.png +0 -0
  71. package/source/img/error_load.webp +0 -0
  72. package/source/img/happy-sticker.png +0 -0
  73. 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.11.3",
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/valor-x/hexo-theme-solitude.git"
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/valor-x/hexo-theme-solitude/issues",
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
@@ -114,4 +114,9 @@ mermaid_js:
114
114
  blueimp_md5:
115
115
  name: blueimp-md5
116
116
  file: js/md5.min.js
117
- version: 2.19.0
117
+ version: 2.19.0
118
+ qrcode:
119
+ name: qrcodejs
120
+ file: qrcode.min.js
121
+ version: 1.0.0
122
+ other_name: qrcodejs
@@ -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.png',
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.png',
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.png'],
116
+ cover: ['/img/default.avif'],
112
117
  }
113
118
  },
114
119
  post: {
115
120
  default: {
116
- cover: ['/img/default.png'],
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/valor-x/hexo-theme-solitude',
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.gif',
240
- errorimg: '/img/error_load.webp'
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/logo.png',
351
- apple_touch_icon: '/img/logo.png',
352
- bookmark_icon: '/img/logo.png',
353
- favicon_32_32: '/img/logo.png',
354
- favicon_16_16: '/img/logo.png'
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,
@@ -9,6 +9,6 @@ hexo.on('ready', () => {
9
9
  ###### #### ##### ##### # ### ###### ######
10
10
  ${version}
11
11
  ===================================================================
12
- GitHub: https://github.com/valor-x/hexo-theme-solitude
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.png']
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.png']
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
+ })
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const { stripHTML, escapeHTML } = require('hexo-util')
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-comment = #969896
5
- $highlight-red = #FF5370
6
- $highlight-orange = #F78C6C
7
- $highlight-yellow = #FFCB6B
8
- $highlight-green = #C3E88D
9
- $highlight-aqua = #89DDFF
10
- $highlight-blue = #82AAFF
11
- $highlight-purple = #C792EA
12
- $highlight-deletion = #BF42BF
13
- $highlight-addition = #105EDE
14
- else if $highlight_color == "dark"
15
- $highlight-comment = #6272A4
16
- $highlight-red = #FF5370
17
- $highlight-orange = #F78C6C
18
- $highlight-yellow = #FFCB6B
19
- $highlight-green = #C3E88D
20
- $highlight-aqua = #89DDFF
21
- $highlight-blue = #82AAFF
22
- $highlight-purple = #C792EA
23
- $highlight-deletion = #BF42BF
24
- $highlight-addition = #105EDE
25
- else if $highlight_color == "funky"
26
- $highlight-comment = #6272A4
27
- $highlight-red = #FF5370
28
- $highlight-orange = #FFCB6B
29
- $highlight-yellow = #C3E88D
30
- $highlight-green = #89DDFF
31
- $highlight-aqua = #82AAFF
32
- $highlight-blue = #C792EA
33
- $highlight-purple = #FF5370
34
- $highlight-deletion = #F07178
35
- $highlight-addition = #C3E88D
36
- else if $highlight_color == "okaidia"
37
- $highlight-comment = #6272A4
38
- $highlight-red = #FF5370
39
- $highlight-orange = #FFCB6B
40
- $highlight-yellow = #C3E88D
41
- $highlight-green = #89DDFF
42
- $highlight-aqua = #82AAFF
43
- $highlight-blue = #C792EA
44
- $highlight-purple = #FF5370
45
- $highlight-deletion = #F07178
46
- $highlight-addition = #C3E88D
47
- else if $highlight_color == "tomorrow"
48
- $highlight-comment = #6272A4
49
- $highlight-red = #FF5370
50
- $highlight-orange = #F78C6C
51
- $highlight-yellow = #FFCB6B
52
- $highlight-green = #C3E88D
53
- $highlight-aqua = #89DDFF
54
- $highlight-blue = #82AAFF
55
- $highlight-purple = #C792EA
56
- $highlight-deletion = #BF42BF
57
- $highlight-addition = #105EDE
58
- else if $highlight_color == "twilight"
59
- $highlight-comment = #6272A4
60
- $highlight-red = #FF5370
61
- $highlight-orange = #F78C6C
62
- $highlight-yellow = #FFCB6B
63
- $highlight-green = #C3E88D
64
- $highlight-aqua = #89DDFF
65
- $highlight-blue = #82AAFF
66
- $highlight-purple = #C792EA
67
- $highlight-deletion = #BF42BF
68
- $highlight-addition = #105EDE
69
- else if $highlight_color == "darcula"
70
- $highlight-comment = #6272A4
71
- $highlight-red = #FF5370
72
- $highlight-orange = #F78C6C
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
- pre .addition
12
- color $highlight-addition
9
+ .keyword
10
+ .attr
11
+ .variable
12
+ .literal
13
+ .property
14
+ color $highlight-variable-light
13
15
 
14
- pre .meta
15
- color $highlight-purple
16
+ .number
17
+ color $highlight-number-light
16
18
 
17
- pre
18
- .comment
19
- color $highlight-comment
19
+ .string
20
+ color $highlight-string-light
20
21
 
21
- .variable,
22
- .attribute,
23
- .regexp,
24
- .ruby .constant,
25
- .xml .tag .title,
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
- .tag
36
- color $highlight-aqua
28
+ .emphasis
29
+ color $highlight-emphasis-light
37
30
 
38
- .number,
39
- .preprocessor,
40
- .literal,
41
- .params,
42
- .constant,
43
- .command
44
- color $highlight-orange
31
+ [data-theme=dark] &
32
+ .keyword
33
+ .attr
34
+ .variable
35
+ .property
36
+ color $highlight-variable-dark
45
37
 
46
- .built_in
47
- color $highlight-yellow
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
- .keyword,
63
- .title,
64
- .css .hexcolor
65
- color: $highlight-aqua
41
+ .string
42
+ color $highlight-string-dark
66
43
 
67
- .function,
68
- .python .decorator,
69
- .python .title,
70
- .ruby .function .title,
71
- .ruby .title .keyword,
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
- .tag .attr,
78
- .javascript .function
79
- color $highlight-purple
50
+ .emphasis
51
+ color $highlight-emphasis-dark
@@ -86,7 +86,7 @@ figure
86
86
  border-top var(--style-border-always)
87
87
  position absolute
88
88
  bottom 0
89
- z-index 10
89
+ z-index 1
90
90
  width 100%
91
91
  text-align center
92
92
  font-size 16px