hexo-theme-solitude 1.5.10 → 1.5.11

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/_config.yml CHANGED
@@ -274,7 +274,7 @@ aside:
274
274
  postcount: true
275
275
  # 总字数
276
276
  # The number of words on the web site
277
- wordcount: true
277
+ wordcount: false
278
278
  # 访问量
279
279
  # PV
280
280
  pv: true
@@ -310,7 +310,7 @@ post:
310
310
  # 文章默认图片
311
311
  # default cover
312
312
  cover:
313
- # - /img/default.png # 默认图片 / default cover
313
+ # - # 默认图片 / default cover
314
314
  # 文章发布默认地址
315
315
  # default post locate
316
316
  locate: 衡阳
@@ -595,7 +595,7 @@ highlight:
595
595
  theme: default # default: 默认 / mac : apple terminal
596
596
  # 代码配色
597
597
  # Code color
598
- color: default # default: 默认 / vscode / solarized-dark / solarized-light / dracula / monokai
598
+ color: default # default: 默认 / dark / funky / okaidia / tomorrow / twilight / darcula / solarized-dark / solarized-light / material / github
599
599
 
600
600
  # 图片灯箱
601
601
  # image lightbox
@@ -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.10",
81
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.5.11",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the wleelw",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -0,0 +1,203 @@
1
+ hexo.extend.filter.register('before_generate', () => {
2
+ const defaultConfig = {
3
+ site: {
4
+ name: {
5
+ class: 'text', custom: 'Solitude'
6
+ }, siteIcon: '/img/logo.png', icon: 'icon'
7
+ }, nav: {
8
+ group: null, menu: null, right: {
9
+ random: false, console: false, custom: [],
10
+ }
11
+ }, hometop: {
12
+ enable: false, banner: {
13
+ title: 'Solitude', url: 'A simple theme for Hexo', icon: null,
14
+ }, group: null, recommendList: {
15
+ sup: 'Recommend',
16
+ title: 'Solitude Docs',
17
+ url: 'https://solitude-docs.efu.me/',
18
+ img: '/img/default.png',
19
+ color: 'none',
20
+ }
21
+ }, aside: {
22
+ home: {
23
+ noSticky: 'about', Sticky: 'allInfo'
24
+ }, post: {
25
+ noSticky: 'about', Sticky: 'allInfo'
26
+ }, page: {
27
+ noSticky: 'about', Sticky: 'allInfo'
28
+ }, card: {
29
+ author: {
30
+ img: '/img/logo.png', sticker: '/img/happy-sticker.png',
31
+ },
32
+ url: '/about/',
33
+ content1: 'Solitude',
34
+ content2: 'A simple theme for Hexo',
35
+ sayhello: {
36
+ morning: 'Good Morning',
37
+ noon: 'Good Noon',
38
+ afternoon: 'Good Afternoon',
39
+ night: 'Good Night',
40
+ goodnight: 'Good Night',
41
+ },
42
+ sayhello2: ['Welcome to Solitude', 'A simple theme for Hexo', 'Enjoy your time', 'Have a nice day', 'Good luck'],
43
+ information: null,
44
+ }, flip: {
45
+ favicon: '', face: '', backface: '', backcolor: 'var(--efu-blue)'
46
+ }, toc: {
47
+ post: true, page: false, vague: true,
48
+ }, tags: {
49
+ enable: true, limit: 20, highlight: false, list: [],
50
+ }, archive: {
51
+ enable: true, type: 'month'
52
+ }, siteinfo: {
53
+ postcount: true,
54
+ wordcount: false,
55
+ pv: true,
56
+ uv: true,
57
+ updatetime: true,
58
+ runtimeenable: true,
59
+ runtime: "2023-04-20 00:00:00",
60
+ },
61
+ }, page: {
62
+ error: true, tags: true, categories: true, default: {
63
+ cover: ['/img/default.png'],
64
+ }
65
+ }, post: {
66
+ default: {
67
+ cover: ['/img/default.png'], locate: 'China, Changsha', copyright: {
68
+ enable: true,
69
+ license: 'CC BY-NC-SA 4.0',
70
+ licenurl: 'https://creativecommons.org/licenses/by-nc-sa/4.0/',
71
+ }
72
+ }, meta: {
73
+ date: false,
74
+ updated: false,
75
+ locate: false,
76
+ wordcount: false,
77
+ readtime: false,
78
+ pv: false,
79
+ uv: false,
80
+ comment: false,
81
+ }, award: {
82
+ enable: false,
83
+ wechat: 'https://7.isyangs.cn/34/65f2e5814db1a-34.png',
84
+ alipay: 'https://7.isyangs.cn/34/65f2e5a6d2ef5-34.png',
85
+ url: '/about/',
86
+ }, rss: null, covercolor: {
87
+ enable: false, mode: 'local', api: 'https://api.qjqq.cn/api/Imgcolor?img=', time: 43200000,
88
+ }
89
+ }, theme_color: {
90
+ dark: "#ffc848",
91
+ dark_op: "#f2b94b23",
92
+ dark_op_deep: "#f2b94bdd",
93
+ dark_none: "#f2b94b00",
94
+ light: "#425AEF",
95
+ light_op: "#4259ef23",
96
+ light_op_deep: "#4259efdd",
97
+ light_none: "#4259ef01"
98
+ }, display_mode: {
99
+ type: 'auto', universe: false
100
+ }, related_post: {
101
+ enable: false, limit: 2, date_type: 'created'
102
+ }, footer: {
103
+ information: {
104
+ left: null, right: null,
105
+ }, group: null, randomlink: false, privacy: null, license: null, links: [{
106
+ name: 'Solitude', url: 'https://github.com/valor-x/hexo-theme-solitude',
107
+ }]
108
+ }, errorpage: {
109
+ img: 'https://7.isyangs.cn/34/65f2e65eae32a-34.png', text: '404 Not Found', recommendList: true
110
+ }, says: {
111
+ enable: false, home_mini: false, style: 1, strip: 30
112
+ }, meting_api: "https://meting.qjqq.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r", music: {
113
+ enable: false, id: '8407304077', server: 'netease', type: 'playlist', volume: 0.8, mutex: true,
114
+ }, capsule: {
115
+ enable: false, id: '8407304077', server: 'netease', type: 'playlist',
116
+ }, moments: {
117
+ enable: false,
118
+ api: '',
119
+ error_img: '/img/logo.png',
120
+ sort_rule: 'created',
121
+ expire_days: 1,
122
+ page_init_number: 10,
123
+ page_turning_number: 5,
124
+ angle: false,
125
+ appjs: 'https://cdn.cbd.int/st-source@1.0.3/js/fcircle.min.js',
126
+ bundlejs: 'https://cdn.cbd.int/st-source/js/moment/bundle.min.js',
127
+ randompostjs: 'https://cdn.cbd.int/st-source/js/moment/random_post.min.js'
128
+ }, keyboard: {
129
+ enable: false, list: []
130
+ }, lazyload: {
131
+ enable: false, placeholder: '/img/loading.gif', errorimg: '/img/error_load.png'
132
+ }, loading: {
133
+ fullpage: false, pace: true,
134
+ }, highlight: {
135
+ enable: true, limit: 200, copy: true, expand: true, theme: 'default', color: 'default',
136
+ }, lightbox: false, fancybox: false, mediumZoom: false, mermaid: false, translate: {
137
+ enable: false, defaultEncoding: 2, translateDelay: 0,
138
+ }, opengraph: {
139
+ enable: false, options: null
140
+ }, wordcount: false, busuanzi: false, search: {
141
+ enable: false, type: 'local', tags: [], algolia: null, local: {
142
+ preload: false, CDN: null,
143
+ }
144
+ }, rightside: {
145
+ enable: false
146
+ }, post_ai: {
147
+ enable: false,
148
+ modelName: 'GPT 3',
149
+ key: 'your key',
150
+ talk: 'I am a AI.',
151
+ randomPost: false,
152
+ tips: 'AI is not perfect, please use it with caution.'
153
+ }, katex: {
154
+ enable: false, per_page: false, copytex: false,
155
+ }, comment: {
156
+ enable: false,
157
+ type: 'twikoo',
158
+ commentBarrage: false,
159
+ newComment: false,
160
+ randomInfoStart: [`baby's`, `little`, `my`,],
161
+ randomInfoEnd: [`home`, `world`, `heart`,],
162
+ twikoo: {
163
+ envId: 'your envId', lang: 'zh-CN', accessToken: null,
164
+ },
165
+ waline: {
166
+ envId: 'your envId', pageview: true, option: null,
167
+ },
168
+ verify_site: [],
169
+ css_prefix: false,
170
+ extends: {
171
+ head: [], body: [],
172
+ },
173
+ pwa: {
174
+ enable: false,
175
+ manifest: '/manifest.json',
176
+ theme_color: "#006a73",
177
+ mask_icon: '/img/logo.png',
178
+ apple_touch_icon: '/img/logo.png',
179
+ bookmark_icon: '/img/logo.png',
180
+ favicon_32_32: '/img/logo.png',
181
+ favicon_16_16: '/img/logo.png'
182
+ },
183
+ google_adsense: {
184
+ enable: false,
185
+ auto_ads: false,
186
+ enable_page_level_ads: true,
187
+ js: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js',
188
+ client: '',
189
+ slot: '',
190
+ },
191
+ CDN: {
192
+ internal: 'local',
193
+ third_party: 'cdnjs',
194
+ version: true,
195
+ custom_format: 'https://cdn.staticfile.net/${cdnjs_name}/${version}/${min_cdnjs_file}',
196
+ option: {
197
+ solitude_css: 'https://cdn2.codesign.qq.com/icons/7pOrz0WXB5ZWJPX/latest/iconfont.css',
198
+ }
199
+ }
200
+ }
201
+ }
202
+ hexo.theme.config = Object.assign(defaultConfig, hexo.theme.config)
203
+ }, 1)
@@ -2,18 +2,18 @@
2
2
 
3
3
  hexo.extend.filter.register('after_post_render', function (data) {
4
4
  data.title = data.title || 'Untitled';
5
- const { config } = hexo.theme;
5
+ const {config} = hexo.theme;
6
6
  if (data.layout === 'post') {
7
- const { copyright, locate,cover } = hexo.theme.config.post.default
7
+ const {copyright, locate, cover} = hexo.theme.config.post.default
8
8
  data.locate = data.locate || locate
9
9
  data.cc = data.cc || copyright
10
- data.cover = data.cover || cover ? cover[getRandomInt(0, cover?.length)] : '/img/default.png'
10
+ data.cover = data.cover || cover[getRandomInt(0, cover?.length)]
11
11
  data.excerpt = data.description || data.excerpt
12
12
  data.toc = !!(config.aside.toc.post && data.toc !== false);
13
13
  }
14
14
  if (data.layout === 'page') {
15
- const { cover } = hexo.theme.config.page.default
16
- data.cover = data.cover || cover ? cover[getRandomInt(0, cover?.length)] :'/img/default.png'
15
+ const {cover} = hexo.theme.config.page.default
16
+ data.cover = data.cover || cover[getRandomInt(0, cover?.length)]
17
17
  data.excerpt = data.title
18
18
  data.toc = !!(config.aside.toc.page && data.toc !== false && data.aside);
19
19
  }
@@ -24,7 +24,7 @@ hexo.extend.filter.register('stylus:renderer', function (style) {
24
24
 
25
25
  initGroupColor(theme.config.hometop.group,style);
26
26
 
27
- // hightlight
27
+ // highlight
28
28
  const { syntax_highlighter: syntaxHighlighter, highlight, prismjs } = hexo.config
29
29
  let { enable: highlightEnable, line_number: highlightLineNumber } = highlight
30
30
  let { enable: prismjsEnable, line_number: prismjsLineNumber } = prismjs
@@ -11,18 +11,16 @@ $light_theme_none = hexo-config('theme_color.light_none')
11
11
 
12
12
  $todayCardColor = convert(hexo-config('hometop.recommendList.color'))
13
13
 
14
- // highlight code
15
- if hexo-config('hightlight.theme') == 'default'
14
+ // code
15
+ if hexo-config('highlight.theme') == 'default'
16
16
  $hl_bg_light = #fff
17
17
  $hltools_bg_light = #f7f7f9
18
18
  $hl_bg_dark = #1b1c20
19
19
  $hltools_bg_dark = #21232a
20
-
21
- else if hexo-config('hightlight.theme') == 'mac'
20
+ else if hexo-config('highlight.theme') == 'mac'
22
21
  $hl_bg_light = #FFFFFF
23
22
  $hltools_bg_light = #E7E7E7
24
23
  $hl_bg_dark = #1C1E1E
25
- $hltools_bg_dark = #2A282A
24
+ $hltools_bg_dark = #454a50
26
25
 
27
- // code
28
26
  $line-height-code-block = 1.6
@@ -1,4 +1,4 @@
1
- $highlight_color = hexo-config('hightlight.color')
1
+ $highlight_color = hexo-config('highlight.color')
2
2
 
3
3
  if $highlight_color == "default"
4
4
  $highlight-comment = #969896
@@ -11,18 +11,84 @@ if $highlight_color == "default"
11
11
  $highlight-purple = #C792EA
12
12
  $highlight-deletion = #BF42BF
13
13
  $highlight-addition = #105EDE
14
- else if $highlight_color == "vscode"
15
- $highlight-comment = #6A9955
16
- $highlight-red = #D16969
17
- $highlight-orange = #D7BA7D
18
- $highlight-yellow = #D7BA7D
19
- $highlight-green = #608B4E
20
- $highlight-aqua = #4EC9B0
21
- $highlight-blue = #569CD6
22
- $highlight-purple = #C586C0
23
- $highlight-deletion = #D16969
24
- $highlight-addition = #608B4E
25
- else if $highlight_color == "solarized-dark"
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"
26
92
  $highlight-comment = #93A1A1
27
93
  $highlight-red = #DC322F
28
94
  $highlight-orange = #CB4B16
@@ -31,38 +97,38 @@ else if $highlight_color == "solarized-dark"
31
97
  $highlight-aqua = #2AA198
32
98
  $highlight-blue = #268BD2
33
99
  $highlight-purple = #6C71C4
34
- $highlight-deletion = #DC322F
100
+ $highlight-deletion = #D33682
35
101
  $highlight-addition = #859900
36
- else if $highlight_color == "solarized-light"
37
- $highlight-comment = #586E75
38
- $highlight-red = #D30102
39
- $highlight-orange = #BD3613
40
- $highlight-yellow = #A57705
41
- $highlight-green = #728A05
42
- $highlight-aqua = #259185
43
- $highlight-blue = #2176C7
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
44
110
  $highlight-purple = #6C71C4
45
- $highlight-deletion = #D30102
46
- $highlight-addition = #728A05
47
- else if $highlight_color == "dracula"
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
48
125
  $highlight-comment = #6272A4
49
- $highlight-red = #FF5555
50
- $highlight-orange = #FFB86C
51
- $highlight-yellow = #F1FA8C
52
- $highlight-green = #50FA7B
53
- $highlight-aqua = #8BE9FD
54
- $highlight-blue = #BD93F9
55
- $highlight-purple = #FF79C6
56
- $highlight-deletion = #FF5555
57
- $highlight-addition = #50FA7B
58
- else if $highlight_color == "monokai"
59
- $highlight-comment = #75715E
60
- $highlight-red = #F926
61
- $highlight-orange = #FD971F
62
- $highlight-yellow = #E6DB74
63
- $highlight-green = #A6E22E
64
- $highlight-aqua = #66D9EF
65
- $highlight-blue = #AE81FF
66
- $highlight-purple = #F92672
67
- $highlight-deletion = #F926
68
- $highlight-addition = #A6E22E
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
@@ -1,184 +1,80 @@
1
- if hexo-config('hightlight.color') == 'default'
2
- pre[class*='language-']
3
- .token.function
4
- color: #ffb62c
5
-
6
- .token.comment,
7
- .token.prolog,
8
- .token.doctype,
9
- .token.cdata
10
- color: rgba(149, 165, 166, .8)
11
-
12
- .token.punctuation
13
- color: #5e6687
14
-
15
- .token.namespace
16
- opacity: .7
17
-
18
- .token.operator,
19
- .token.boolean,
20
- .token.number
21
- color: #c76b29
22
-
23
- .token.property
24
- color: #c08b30
25
-
26
- .token.tag
27
- color: #3d8fd1
28
-
29
- .token.string
30
- color: #22a2c9
31
-
32
- .token.selector
33
- color: #6679cc
34
-
35
- .token.attr-name
36
- color: #c76b29
37
-
38
- .token.entity,
39
- .token.url,
40
- .language-css .token.string,
41
- .style .token.string
42
- color: #22a2c9
43
-
44
- .token.attr-value,
45
- .token.keyword,
46
- .token.control,
47
- .token.directive,
48
- .token.unit
49
- color: #ac9739
50
-
51
- .token.statement,
52
- .token.regex,
53
- .token.atrule
54
- color: #22a2c9
55
-
56
- .token.placeholder,
57
- .token.variable
58
- color: #3d8fd1
59
-
60
- .token.deleted
61
- text-decoration: line-through
62
-
63
- .token.inserted
64
- border-bottom: 1px dotted #202746
65
- text-decoration: none
66
-
67
- .token.italic
68
- font-style: italic
69
-
70
- .token.important,
71
- .token.bold
72
- font-weight: bold
73
-
74
- .token.important
75
- color: #c94922
76
-
77
- .token.entity
78
- cursor: help
79
-
80
- pre > code.highlight
81
- outline: .4em solid #c94922
82
- outline-offset: .4em
83
-
84
- if hexo-config('hightlight.color') == 'vscode'
85
- pre[class*='language-']
86
- .token.comment
87
- color #6a737d
88
-
89
- .token.prolog
90
- color #6a737d
91
-
92
- .token.doctype
93
- color #6a737d
94
-
95
- .token.cdata
96
- color #6a737d
97
-
98
- .token.punctuation
99
- color #d4d4d4
100
-
101
- .token.namespace
102
- opacity .7
103
-
104
- .token.operator
105
- color #d4d4d4
106
-
107
- .token.boolean
108
- color #4ec9b0
109
-
110
- .token.number
111
- color #4ec9b0
112
-
113
- .token.property
114
- color #c08b30
115
-
116
- .token.tag
117
- color #3d8fd1
118
-
119
- .token.string
120
- color #4ec9b0
121
-
122
- .token.selector
123
- color #6679cc
124
-
125
- .token.attr-name
126
- color #c76b29
127
-
128
- .token.entity
129
- color #c76b29
130
-
131
- .token.url
132
- color #22a2c9
133
-
134
- .token.attr-value
135
- color #4ec9b0
136
-
137
- .token.keyword
138
- color #c94922
139
-
140
- .token.control
141
- color #c94922
142
-
143
- .token.directive
144
- color #c94922
145
-
146
- .token.unit
147
- color #c94922
148
-
149
- .token.statement
150
- color #c94922
151
-
152
- .token.regex
153
- color #22a2c9
154
-
155
- .token.atrule
156
- color #22a2c9
157
-
158
- .token.placeholder
159
- color #3d8fd1
160
-
161
- .token.variable
162
- color #3d8fd1
163
-
164
- .token.deleted
165
- color #c94922
166
-
167
- .token.inserted
168
- color #4ec9b0
169
-
170
- .token.italic
171
- font-style italic
172
-
173
- .token.important
174
- font-weight bold
175
-
176
- .token.important
177
- color #c94922
178
-
179
- .token.entity
180
- cursor help
181
-
182
- pre > code.highlight
183
- outline .4em solid #c94922
184
- outline-offset .4em
1
+ pre[class*='language-']
2
+ .token
3
+ &.function,
4
+ &.punctuation
5
+ color $highlight-blue
6
+
7
+ .token.comment,
8
+ .token.prolog,
9
+ .token.doctype,
10
+ .token.cdata
11
+ color $highlight-comment
12
+
13
+ .token.namespace
14
+ opacity: .7
15
+
16
+ .token.operator,
17
+ .token.boolean,
18
+ .token.number
19
+ color: $highlight-orange
20
+
21
+ .token.property
22
+ color: $highlight-yellow
23
+
24
+ .token.tag
25
+ color: $highlight-blue
26
+
27
+ .token.string
28
+ color: $highlight-green
29
+
30
+ .token.selector
31
+ color: $highlight-deletion
32
+
33
+ .token.attr-name
34
+ color: $highlight-orange
35
+
36
+ .token.entity,
37
+ .token.url,
38
+ .language-css .token.string,
39
+ .style .token.string
40
+ color: $highlight-aqua
41
+
42
+ .token.attr-value,
43
+ .token.keyword,
44
+ .token.control,
45
+ .token.directive,
46
+ .token.unit
47
+ color: $highlight-yellow
48
+
49
+ .token.statement,
50
+ .token.regex,
51
+ .token.atrule
52
+ color: $highlight-aqua
53
+
54
+ .token.placeholder,
55
+ .token.variable
56
+ color: $highlight-blue
57
+
58
+ .token.deleted
59
+ text-decoration: line-through
60
+
61
+ .token.inserted
62
+ border-bottom: 1px dotted #202746
63
+ text-decoration: none
64
+
65
+ .token.italic
66
+ font-style: italic
67
+
68
+ .token.important,
69
+ .token.bold
70
+ font-weight: bold
71
+
72
+ .token.important
73
+ color: $highlight-orange
74
+
75
+ .token.entity
76
+ cursor: help
77
+
78
+ pre > code.highlight
79
+ outline: .4em solid $highlight-orange
80
+ outline-offset: .4em
@@ -4,6 +4,8 @@
4
4
 
5
5
  #article-container
6
6
  pre[class*='language-']
7
+ margin 0
8
+ overflow-x auto
7
9
  scrollbar-color var(--hlscrollbar-bg) transparent
8
10
 
9
11
  &::-webkit-scrollbar-thumb
@@ -2,8 +2,6 @@
2
2
  pre[class*='language-']
3
3
  &.line-numbers
4
4
  position relative
5
- margin 0
6
- overflow-x auto
7
5
 
8
6
  > code
9
7
  display block
@@ -15,7 +13,6 @@
15
13
  top 0
16
14
  left 0
17
15
  color var(--efu-secondtext)
18
- background var(--efu-hltools-bg)
19
16
  border-right var(--style-border-always)
20
17
  padding 8px 0
21
18
 
Binary file