hexo-theme-solitude 1.5.10 → 1.6.0
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 +44 -10
- package/README.md +22 -2
- package/README_zh-cn.md +22 -2
- package/README_zh-tw.md +22 -2
- package/_config.yml +89 -73
- package/layout/includes/footer.pug +1 -1
- package/layout/includes/inject/head.pug +1 -2
- package/layout/includes/loading.pug +1 -1
- package/layout/includes/widgets/home/banner.pug +1 -1
- package/layout/includes/widgets/home/categoryGroup.pug +0 -1
- package/layout/includes/widgets/home/postList.pug +74 -29
- package/layout/includes/widgets/nav/group.pug +1 -1
- package/layout/page.pug +1 -1
- package/package.json +1 -1
- package/plugins.yml +0 -4
- package/scripts/event/cdn.js +4 -4
- package/scripts/event/merge_config.js +211 -0
- package/scripts/event/welcome.js +2 -2
- package/scripts/filter/checkThemeConfig.js +2 -2
- package/scripts/filter/default.js +7 -5
- package/scripts/filter/lazyload.js +18 -5
- package/scripts/filter/randomPosts.js +1 -1
- package/scripts/helper/stylus.js +9 -15
- package/source/css/_global/index.styl +362 -1
- package/source/css/_highlight/color.styl +111 -45
- package/source/css/_highlight/prismjs/diff.styl +80 -184
- package/source/css/_highlight/prismjs/index.styl +2 -0
- package/source/css/_highlight/prismjs/line-number.styl +0 -3
- package/source/css/_layout/aside.styl +751 -0
- package/source/css/_layout/capsule.styl +213 -0
- package/source/css/_layout/fullpage.styl +47 -0
- package/source/css/_layout/keyboard.styl +60 -0
- package/source/css/_layout/pace.styl +40 -0
- package/source/css/_layout/rightmenu.styl +79 -0
- package/source/css/_layout/universe.styl +18 -0
- package/source/css/_page/_home/home-top.styl +1 -3
- package/source/css/_page/_home/recent-post.styl +407 -170
- package/source/css/_page/douban.styl +111 -109
- package/source/css/_page/share.styl +1 -17
- package/source/css/{_widgets/_post → _post}/content.styl +0 -3
- package/source/css/index.styl +20 -5
- package/source/css/third_party/snackbar.min.css +1 -0
- package/source/css/{_global/var.styl → var.styl} +11 -7
- package/source/img/avatar.png +0 -0
- package/source/img/default.png +0 -0
- package/source/img/happy-sticker.png +0 -0
- package/source/img/pwa/favicon.ico +0 -0
- package/source/img/pwa/favicon_128.ico +0 -0
- package/source/img/pwa/favicon_16.ico +0 -0
- package/source/img/pwa/favicon_256.ico +0 -0
- package/source/img/pwa/favicon_32.ico +0 -0
- package/source/js/main.js +1 -0
- package/layout/includes/recent-posts.pug +0 -9
- package/source/css/_layout/basic.styl +0 -308
- package/source/css/_layout/index.styl +0 -125
- package/source/css/_widgets/_aside/allinfo.styl +0 -168
- package/source/css/_widgets/_aside/flip.styl +0 -67
- package/source/css/_widgets/_aside/index.styl +0 -90
- package/source/css/_widgets/_aside/info.styl +0 -263
- package/source/css/_widgets/_aside/newPost.styl +0 -61
- package/source/css/_widgets/_aside/toc.styl +0 -108
- package/source/css/_widgets/_aside/welcome.styl +0 -14
- package/source/css/_widgets/_extra/fullpage.styl +0 -46
- package/source/css/_widgets/_extra/music.styl +0 -218
- package/source/css/_widgets/_extra/pace.styl +0 -39
- package/source/css/_widgets/_extra/rightmenu.styl +0 -78
- package/source/css/_widgets/_mixins/keyboard.styl +0 -59
- package/source/css/_widgets/index.styl +0 -56
- package/source/img/logo.png +0 -0
- /package/source/css/{_widgets/_comment → _comments}/index.styl +0 -0
- /package/source/css/{_widgets/_comment → _comments}/twikoo.styl +0 -0
- /package/source/css/{_widgets/_comment → _comments}/waline.styl +0 -0
- /package/source/css/{_widgets/_mixins → _layout}/article-sort.styl +0 -0
- /package/source/css/{_widgets/_extra → _layout}/console.styl +0 -0
- /package/source/css/{_widgets/_mixins → _layout}/footer.styl +0 -0
- /package/source/css/{_widgets/_mixins → _layout}/other.styl +0 -0
- /package/source/css/{_widgets/_mixins → _layout}/sidebar.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/commentBarrage.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/copyright.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/index.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/meta.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/pagination.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/postAI.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/relatedPost.styl +0 -0
- /package/source/css/{_widgets/_post → _post}/tools.styl +0 -0
- /package/source/css/{_widgets/_search → _search}/algolia-search.styl +0 -0
- /package/source/css/{_widgets/_search → _search}/local-search.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/button.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/checkbox.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/fold.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/gallery.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/index.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/label.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/link.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/media.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/mermaid.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/note.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/span.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/tabs.styl +0 -0
- /package/source/css/{_widgets/_tags → _tags}/timeline.styl +0 -0
- /package/source/js/{lately.min.js → third_party/lately.min.js} +0 -0
- /package/source/js/{sco-ai.min.js → third_party/sco-ai.min.js} +0 -0
- /package/source/js/{universe.min.js → third_party/universe.min.js} +0 -0
- /package/source/js/{waterfall.min.js → third_party/waterfall.min.js} +0 -0
@@ -1,184 +1,80 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
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
|
@@ -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
|
|