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