hexo-theme-stellar 1.11.0 → 1.12.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 (62) hide show
  1. package/_config.yml +15 -12
  2. package/_data/widgets.yml +30 -6
  3. package/languages/zh-CN.yml +4 -4
  4. package/languages/zh-TW.yml +4 -4
  5. package/layout/_partial/main/article/read_next.ejs +16 -17
  6. package/layout/_partial/main/navbar/breadcrumb.ejs +1 -1
  7. package/layout/_partial/main/post_list/post_card.ejs +21 -15
  8. package/layout/_partial/main/post_list/wiki_card.ejs +1 -1
  9. package/layout/_partial/sidebar/header.ejs +2 -26
  10. package/layout/_partial/sidebar/logo.ejs +2 -2
  11. package/layout/_partial/sidebar/menu.ejs +27 -0
  12. package/layout/_partial/sidebar/widgets/ghissues.ejs +46 -0
  13. package/layout/_partial/sidebar/widgets/ghrepo.ejs +3 -3
  14. package/layout/_partial/sidebar/widgets/ghuser.ejs +4 -0
  15. package/layout/_partial/sidebar/widgets/markdown.ejs +1 -1
  16. package/layout/_partial/sidebar/widgets/recent.ejs +8 -11
  17. package/layout/_partial/sidebar/widgets/{wiki_more.ejs → related.ejs} +7 -7
  18. package/layout/_partial/sidebar/widgets/tagcloud.ejs +24 -0
  19. package/layout/_partial/sidebar/widgets/timeline.ejs +27 -0
  20. package/layout/_partial/sidebar/widgets/toc.ejs +1 -5
  21. package/layout/index.ejs +1 -1
  22. package/package.json +1 -1
  23. package/scripts/events/lib/doc_tree.js +3 -0
  24. package/scripts/helpers/related_posts.js +11 -39
  25. package/scripts/tags/about.js +10 -7
  26. package/scripts/tags/{grid.js → border.js} +4 -4
  27. package/scripts/tags/link.js +11 -9
  28. package/scripts/tags/navbar.js +1 -1
  29. package/scripts/tags/sites.js +1 -1
  30. package/scripts/tags/split.js +51 -0
  31. package/source/css/_common/base.styl +2 -2
  32. package/source/css/_common/blur.styl +3 -0
  33. package/source/css/_common/device.styl +2 -0
  34. package/source/css/_common/highlight.styl +1 -1
  35. package/source/css/_common/loading.styl +16 -3
  36. package/source/css/_common/title.styl +0 -13
  37. package/source/css/_custom.styl +4 -4
  38. package/source/css/_layout/list.styl +40 -9
  39. package/source/css/_layout/md.styl +1 -1
  40. package/source/css/_layout/partial/related.styl +62 -93
  41. package/source/css/_layout/sidebar/footer.styl +4 -2
  42. package/source/css/_layout/sidebar/ghrepo.styl +11 -5
  43. package/source/css/_layout/sidebar/ghuser.styl +19 -1
  44. package/source/css/_layout/sidebar/sidebar.styl +4 -90
  45. package/source/css/_layout/sidebar/toc_common.styl +5 -3
  46. package/source/css/_layout/sidebar/widgets.styl +104 -0
  47. package/source/css/_layout/tag-plugins/about.styl +21 -18
  48. package/source/css/_layout/tag-plugins/common.styl +36 -31
  49. package/source/css/_layout/tag-plugins/link.styl +41 -27
  50. package/source/css/_layout/tag-plugins/navbar.styl +10 -4
  51. package/source/css/_layout/tag-plugins/quot.styl +1 -1
  52. package/source/css/_layout/tag-plugins/split.styl +28 -0
  53. package/source/css/_layout/tag-plugins/timeline.styl +18 -9
  54. package/source/css/_plugins/comments/twikoo.styl +11 -5
  55. package/source/css/_plugins/comments/valine.styl +4 -0
  56. package/source/css/_plugins/comments/waline.styl +1 -1
  57. package/source/js/main.js +14 -8
  58. package/source/js/plugins/friends.js +3 -2
  59. package/source/js/plugins/ghinfo.js +14 -2
  60. package/source/js/plugins/linkcard.js +124 -0
  61. package/source/js/plugins/sites.js +4 -3
  62. package/source/js/plugins/timeline.js +11 -6
@@ -1,5 +1,6 @@
1
1
  .related-wrap
2
- padding: 2rem 1rem
2
+ padding: 1rem
3
+ margin: 2rem 0
3
4
  &:empty
4
5
  display: none
5
6
  section.header
@@ -18,108 +19,76 @@
18
19
  color: var(--text-p1)
19
20
 
20
21
 
21
- .related-wrap#related-posts
22
- .related-posts
23
- width: 100%
24
- display: flex
25
- margin: 1rem 0
26
- overflow-x: scroll
27
- align-items: flex-start
28
- scrollbar(8px, 4px)
29
- padding-bottom: 8px
30
- border-radius: $border-block
31
- a
32
- flex-grow: 0
33
- flex-shrink: 0
34
- background: var(--card)
35
- border-radius: $border-block
36
- padding-bottom: 1rem
37
- line-height: 1.2
38
- display: flex
39
- flex-direction: column
22
+
23
+ .related-posts
24
+ width: 100%
25
+ margin: 1rem 0
26
+ .item
27
+ line-height: 1.2
28
+ display: block
29
+ border-left: 0
30
+ margin-top: 1rem
31
+ .title
32
+ color: var(--text-p1)
33
+ font-weight: 500
34
+ font-size: 1rem
35
+ trans1 color
36
+ position: relative
37
+ padding-bottom: 4px
38
+ &:after
39
+ content: ''
40
+ position: absolute
41
+ left: 0
42
+ width: 0
43
+ height: 2px
44
+ bottom: 0
45
+ border-radius: 2px
46
+ background: $color-hover
47
+ trans1 width
48
+ .excerpt
49
+ color: var(--text-p3)
50
+ font-size: $fs-12
51
+ margin-top: 0.5rem
52
+ display: -webkit-box
53
+ -webkit-box-orient: vertical
40
54
  overflow: hidden
41
- min-width: 280px
42
- width: 40vw
43
- max-width: 460px
44
- border: 1px solid var(--block-hover)
45
- z-index: 1
46
- .img
47
- min-width: 100%
48
- min-height: 140px
49
- height: "calc(%s * 0.5)" % @width
50
- max-height: 230px
51
- overflow: hidden
52
- img
53
- width: 100%
54
- height: 100%
55
- object-fit: cover
56
- &:not(.lazy)
57
- trans1: transform 1s
58
- @media screen and (max-width: $device-tablet)
59
- width: 70vw
60
- .img
61
- height: "calc(%s * 0.5)" % @width
55
+ -webkit-line-clamp: 2
56
+ &:hover
62
57
  .title
63
- color: var(--text-p1)
64
- font-weight: 500
65
- font-size: $fs-15
66
- margin: .75rem .75rem 0 .75rem
67
- display: -webkit-box
68
- -webkit-box-orient: vertical
69
- overflow: hidden
70
- -webkit-line-clamp: 2
71
- .excerpt
72
- color: var(--text-p2)
73
- font-size: $fs-13
74
- margin: 0.4rem .75rem 0 .75rem
75
- display: -webkit-box
76
- -webkit-box-orient: vertical
77
- overflow: hidden
78
- -webkit-line-clamp: 3
79
- &:hover
80
- img
81
- transform: scale(1.04)
82
- a+a
83
- margin-left: 1rem
58
+ color: $color-hover
59
+ &:after
60
+ width: 100%
84
61
 
85
62
 
86
63
  .related-wrap#read-next
87
64
  .body
88
- background: var(--block)
89
- border-radius: $border-block
90
- border: 1px solid var(--block-border)
91
- margin-top: 1rem
92
- overflow: hidden
93
- .line
94
- margin: 0
95
- height: 1px
96
- background: var(--block-border)
97
- &+.line,&:first-child,&:last-child
98
- display: none
99
- >a
100
- display: flex
65
+ display: grid
66
+ grid-gap: 16px
67
+ grid-template-columns: repeat(auto-fill, "calc((100% - 1 * %s) / 2)" % 16px)
68
+ .item
69
+ border-top: 1px dashed var(--block-border)
70
+ border-bottom: 1px dashed var(--block-border)
71
+ padding: 1rem 0
72
+ .note
73
+ margin-bottom: 0.75rem
74
+ font-size: $fs-12
75
+ color: var(--text-p4)
76
+ font-weight: 500
77
+ a
101
78
  margin: 0
102
79
  line-height: 1.2
103
- padding: 0.75rem 0.5rem
104
- color: var(--text-p3)
105
- justify-content: space-between
106
- align-items: center
107
- font-weight: 500
108
- font-size: $fs-12
109
- &:first-child
110
- color: var(--text-p1)
111
- font-size: $fs-h4
112
- font-weight: 400
113
- .note
114
- flex-shrink: 0
115
- margin-left: 4px
116
- font-size: $fs-12
117
- color: var(--text-p4)
118
- font-weight: 500
80
+ color: var(--text-p1)
81
+ font-size: $fs-h4
119
82
  &:hover
120
83
  color: $color-hover !important
121
- background: var(--card)
122
-
84
+ #next
85
+ text-align: right
86
+ .wiki+.related-wrap#read-next
87
+ .item
88
+ a
89
+ font-size: $fs-h3
90
+ &#prev a
91
+ color: var(--text-p3)
123
92
 
124
93
 
125
94
  .related-wrap#comments
@@ -1,5 +1,5 @@
1
- .l_left .footer
2
- margin-top: .5rem
1
+ .l_left>.footer
2
+ margin: 0.5rem var(--gap-l) 0
3
3
  @media screen and (max-width: $device-tablet)
4
4
  margin-bottom: 1rem
5
5
 
@@ -26,6 +26,8 @@
26
26
  if hexo-config('style.darkmode') == 'auto'
27
27
  @media (prefers-color-scheme: dark)
28
28
  box-shadow: none
29
+ if hexo-config('style.darkmode') == 'always'
30
+ box-shadow: none
29
31
 
30
32
  .proj-wrap
31
33
  display: grid
@@ -2,16 +2,19 @@
2
2
  .widget-body
3
3
  a.repo
4
4
  display: block
5
- border: 1px solid var(--block-border)
5
+ padding: 0.75rem 0.5rem
6
6
  color: var(--text-p2)
7
- background: var(--block)
7
+ background: var(--card)
8
8
  border-radius: $border-block
9
- >div
10
- margin: 0.75rem 0.5rem
9
+ box-shadow: $boxshadow-card
10
+ trans2 box-shadow transform
11
+ >div+div
12
+ margin-top: 0.5rem
11
13
  span
12
14
  color: var(--text-p2)
13
15
  &:hover
14
- background: var(--block-hover)
16
+ box-shadow: $boxshadow-card-float
17
+ transform: translateY(-1px)
15
18
  a.repo
16
19
  svg
17
20
  margin-right: 4px
@@ -21,8 +24,11 @@
21
24
  .repo-name
22
25
  font-size: $fs-14
23
26
  font-weight: 700
27
+ color: var(--text-p1)
24
28
  .repo-desc
25
29
  font-size: $fs-13
30
+ margin-left: 2px
31
+ margin-right: 2px
26
32
  .grid
27
33
  font-size: $fs-13
28
34
  display: grid
@@ -6,6 +6,7 @@
6
6
  background: var(--card)
7
7
  border-radius: $border-card
8
8
  padding: 1rem
9
+ box-shadow: $boxshadow-card
9
10
 
10
11
  .widget-wrap#github-user .widget-body .avatar
11
12
  display: block
@@ -47,7 +48,24 @@
47
48
  &:hover
48
49
  background: $color-hover
49
50
 
50
-
51
+ .widget-wrap#github-user .widget-body .menu
52
+ margin-bottom: 0
53
+ background: none
54
+ a:hover
55
+ box-shadow: none
56
+ background: var(--block)
57
+ a.active
58
+ box-shadow: none
59
+ position: relative
60
+ &:after
61
+ content: ''
62
+ position: absolute
63
+ height: 3px
64
+ bottom: 0
65
+ width: 32px
66
+ left: 'calc(50% - 0.5 * %s)' % @width
67
+ border-radius: 4px
68
+ background: $color-theme
51
69
 
52
70
  .widget-wrap#github-user .widget-body .buttons
53
71
  margin: 1rem 0
@@ -3,12 +3,14 @@
3
3
  flex-direction: column
4
4
  word-break: break-all
5
5
  text-align: justify
6
- padding: var(--gap-l)
6
+ padding: var(--gap-l) 0
7
7
  padding-top: "calc(2 * %s)" % var(--gap-l)
8
8
  height: "calc(100vh - 3 * %s)" % var(--gap-l)
9
9
  @media screen and (max-width: $device-mobile-max)
10
10
  padding-top: "calc(1 * %s)" % var(--gap-l)
11
11
  height: "calc(100% - 2 * %s)" % var(--gap-l)
12
+ .header
13
+ margin: 0 var(--gap-l)
12
14
 
13
15
  .l_left[layout=wiki]
14
16
  padding-bottom: 0
@@ -134,7 +136,7 @@ nav.menu
134
136
  font-size: $fs-14
135
137
  font-weight: 500
136
138
  overflow: hidden
137
- padding: 0.375rem 0.75rem
139
+ padding: 0.375rem 0.5rem
138
140
  color: var(--text-p3)
139
141
  text-align: center
140
142
  &.active, &:hover
@@ -145,91 +147,3 @@ nav.menu
145
147
  .l_left .menu a.nav-item
146
148
  flex-grow: 1
147
149
 
148
- .l_left .widgets
149
- overflow: scroll
150
- flex-grow: 1
151
- scrollbar-width: none
152
- scrollbar(0, 0)
153
- z-index: 1
154
- .widget-wrap
155
- margin: 1rem 0 3rem 0
156
- .widget-header
157
- display: flex
158
- justify-content: space-between
159
- align-items: center
160
- font-weight: 500
161
- position: sticky
162
- position: -webkit-sticky
163
- top: -2px
164
- background: var(--site-bg)
165
- padding-top: 2px
166
- z-index 1
167
- line-height: 2
168
- color: var(--text-p4)
169
- font-size: $fs-14
170
- &:empty
171
- display: none
172
- .cap-action
173
- hover-block 4px 4px
174
- line-height: 0
175
- color: var(--text-meta)
176
- trans2: color background
177
- .icon
178
- fill: var(--text-meta)
179
- &:hover
180
- color: $color-hover
181
- .icon
182
- fill: $color-hover
183
-
184
- .widget-body
185
- margin: 0.5rem 0
186
- color: var(--text-p1)
187
- p
188
- margin-top: .5em
189
- margin-bottom: .5em
190
- line-height: 1.5
191
- .widget-header+.widget-body
192
- margin-top: 0
193
-
194
- .widget-wrap .widget-body
195
- .more-item
196
- margin: .5rem 0
197
- .cap
198
- margin-bottom: .25rem
199
- .widget-wrap#recent .widget-body
200
- a
201
- line-height: 1.2
202
- font-weight: 500
203
- color: var(--text-p2)
204
- font-size: $fs-13
205
- &:hover
206
- color: $color-hover
207
- .widget-wrap#related .widget-body
208
- >a
209
- padding 0.5rem
210
- display: block
211
- line-height: 1.2
212
- color: var(--text-p2)
213
- font-weight: 500
214
- border: 1px solid var(--block-border)
215
- border-radius: $border-block
216
- margin: 4px 0
217
- background: var(--block)
218
- div.cap
219
- margin-bottom: 0.25rem
220
- color: var(--text-p4)
221
- display: flex
222
- justify-content: space-between
223
- &:hover
224
- background: var(--block-hover)
225
- &.wiki
226
- font-weight: 700
227
- div.excerpt
228
- margin-top: .5rem
229
- color: var(--text-p3)
230
- font-size: $fs-12
231
- font-weight: 400
232
- display: -webkit-box
233
- -webkit-box-orient: vertical
234
- overflow: hidden
235
- -webkit-line-clamp: 5
@@ -1,8 +1,10 @@
1
- .widget-wrap#toc .widget-header
2
- line-height: 2.4
1
+ .widget-wrap.single#toc .widget-header
2
+ font-weight: 500
3
+ font-size: $fs-12
4
+ >span
5
+ margin: 0.5rem 0
3
6
 
4
7
  #toc .widget-body
5
- line-height: 1.2
6
8
  margin-top: 0
7
9
  ul ul, ul ol
8
10
  padding-left: 0
@@ -0,0 +1,104 @@
1
+ .widgets .loading-wrap
2
+ margin: 0.5rem 0
3
+
4
+ .l_left .widgets
5
+ overflow: scroll
6
+ flex-grow: 1
7
+ scrollbar-width: none
8
+ scrollbar(0, 0)
9
+ z-index: 1
10
+ line-height: 1.2
11
+ .widget-wrap
12
+ margin: 1rem var(--gap-l) 3rem var(--gap-l)
13
+ .widget-header
14
+ display: flex
15
+ justify-content: space-between
16
+ align-items: center
17
+ font-weight: 500
18
+ position: sticky
19
+ top: -2px
20
+ background: var(--site-bg)
21
+ padding-top: 2px
22
+ z-index 1
23
+ .item
24
+ display: block
25
+ >span
26
+ margin: 0.25rem 0
27
+ text-align: left
28
+ &:empty
29
+ display: none
30
+ .cap-action
31
+ hover-block 4px 4px
32
+ line-height: 0
33
+ color: var(--text-meta)
34
+ trans2: color background
35
+ .icon
36
+ fill: var(--text-meta)
37
+ &:hover
38
+ color: $color-hover
39
+ .icon
40
+ fill: $color-hover
41
+
42
+ .widget-body
43
+ margin: 0.5rem 0
44
+ color: var(--text-p1)
45
+ p
46
+ margin-top: .5em
47
+ margin-bottom: .5em
48
+ line-height: 1.5
49
+ .widget-header+.widget-body
50
+ margin-top: 0
51
+
52
+
53
+
54
+ .l_left .widgets
55
+ .widget-wrap#recent .widget-body
56
+ display: flex
57
+ flex-direction: column
58
+ align-items: flex-start
59
+ margin-top: 0.25rem
60
+ a
61
+ line-height: 1.2
62
+ font-size: $fs-13
63
+ margin: 0.25rem 0
64
+ padding: 2px 0
65
+ .title
66
+ font-size: $fs-13
67
+ color: var(--text-p2)
68
+ &:hover
69
+ color: $color-hover
70
+ .widget-wrap#related .widget-body a
71
+ margin-top: 0.5rem
72
+ margin-bottom: 1rem
73
+ .title
74
+ font-weight: 700
75
+ font-size: $fs-14
76
+ .excerpt
77
+ -webkit-line-clamp: 3
78
+
79
+ .widget-wrap#tagcloud .widget-body
80
+ margin-top: 0.25rem
81
+ a
82
+ word-break: break-word
83
+ color: var(--text-p2)
84
+ line-height: 1.5
85
+ &:hover
86
+ color: $color-hover
87
+
88
+ .widget-wrap#timeline .widget-body
89
+ margin-top: 0.5rem
90
+ .tag-plugin.timeline .timenode
91
+ .header
92
+ margin-bottom: 0.5rem
93
+ txt-ellipsis()
94
+ .user-info
95
+ background: var(--block)
96
+ &:hover
97
+ background: $color-hover
98
+ color: var(--card)
99
+ &:before
100
+ display: none
101
+ &+.timenode
102
+ margin-top: 0.75rem
103
+ .body
104
+ max-height: 40vh
@@ -2,11 +2,25 @@
2
2
  background: var(--block)
3
3
  border-radius: $border-card
4
4
  padding: 2rem
5
+ position: relative
6
+ .nav-back
7
+ display: none
8
+ position: absolute
9
+ line-height: 1
10
+ overflow: hidden
11
+ left: 0.75rem
12
+ top: 0.75rem
13
+ align-items: center
14
+ @media screen and (max-width: $device-mobile-max)
15
+ display: flex
16
+ svg
17
+ width: 1rem
18
+ height: 1rem
5
19
  .about-header
6
20
  display flex
7
21
  justify-content: center
8
22
  flex-wrap: wrap
9
- margin: 1.5rem 0 3rem
23
+ margin: 1.5rem 0
10
24
  img
11
25
  object-fit: contain
12
26
  >img
@@ -27,27 +41,16 @@
27
41
  .about-body
28
42
  >p
29
43
  line-height: 1.5
30
- .tag-plugin.navbar:last-child
31
- text-align: center
32
- nav.cap
33
- margin-top: 1rem
34
- background: var(--card)
35
- box-shadow: $boxshadow-button
36
- a
37
- color: var(--text-p2)
38
- &:hover
39
- background: var(--block)
40
- &.active
41
- background: var(--block)
42
- box-shadow: none
43
- color: var(--text-p1)
44
+ &:first-child
45
+ margin-top: 2.5rem
46
+ p+.tag-plugin.navbar .cap
47
+ margin-top: 1rem
44
48
  .about-header+.about-body
45
- margin-top: 1.5rem
49
+ margin-top: 2rem
46
50
 
47
51
  @media screen and (max-width: $device-mobile)
48
52
  .tag-plugin.about
49
- padding: 1.5rem 1rem
53
+ padding: 2rem 1rem
50
54
  .about-header
51
- margin: 2.5rem 0 3rem
52
55
  p
53
56
  width 100%
@@ -47,43 +47,48 @@
47
47
  --theme-bg: #444
48
48
  color: var(--card) !important
49
49
 
50
- if hexo-config('style.darkmode') == 'auto'
51
- @media (prefers-color-scheme: dark)
52
- .tag-plugin[color='red']
53
- --theme-border: mix($c-red, $dark-card, 80)
54
- --theme-bg: mix($c-red, $dark-card, 10)
50
+ set_darkmode_tags()
51
+ .tag-plugin[color='red']
52
+ --theme-border: mix($c-red, $dark-card, 80)
53
+ --theme-bg: mix($c-red, $dark-card, 10)
54
+
55
+ .tag-plugin[color='orange']
56
+ --theme-border: mix($c-orange, $dark-card, 80)
57
+ --theme-bg: mix($c-orange, $dark-card, 10)
55
58
 
56
- .tag-plugin[color='orange']
57
- --theme-border: mix($c-orange, $dark-card, 80)
58
- --theme-bg: mix($c-orange, $dark-card, 10)
59
+ .tag-plugin[color='yellow']
60
+ --theme-border: mix($c-yellow, $dark-card, 80)
61
+ --theme-bg: mix($c-yellow, $dark-card, 10)
59
62
 
60
- .tag-plugin[color='yellow']
61
- --theme-border: mix($c-yellow, $dark-card, 80)
62
- --theme-bg: mix($c-yellow, $dark-card, 10)
63
+ .tag-plugin[color='green']
64
+ --theme-border: mix($c-green, $dark-card, 80)
65
+ --theme-bg: mix($c-green, $dark-card, 10)
63
66
 
64
- .tag-plugin[color='green']
65
- --theme-border: mix($c-green, $dark-card, 80)
66
- --theme-bg: mix($c-green, $dark-card, 10)
67
+ .tag-plugin[color='cyan']
68
+ --theme-border: mix($c-cyan, $dark-card, 80)
69
+ --theme-bg: mix($c-cyan, $dark-card, 10)
67
70
 
68
- .tag-plugin[color='cyan']
69
- --theme-border: mix($c-cyan, $dark-card, 80)
70
- --theme-bg: mix($c-cyan, $dark-card, 10)
71
+ .tag-plugin[color='blue']
72
+ --theme-border: mix($c-blue, $dark-card, 80)
73
+ --theme-bg: mix($c-blue, $dark-card, 10)
71
74
 
72
- .tag-plugin[color='blue']
73
- --theme-border: mix($c-blue, $dark-card, 80)
74
- --theme-bg: mix($c-blue, $dark-card, 10)
75
+ .tag-plugin[color='purple']
76
+ --theme-border: mix($c-purple, $dark-card, 80)
77
+ --theme-bg: mix($c-purple, $dark-card, 10)
75
78
 
76
- .tag-plugin[color='purple']
77
- --theme-border: mix($c-purple, $dark-card, 80)
78
- --theme-bg: mix($c-purple, $dark-card, 10)
79
+ .tag-plugin[color='light']
80
+ --theme-border: white
81
+ --theme-bg: #ddd
82
+ color: var(--card) !important
79
83
 
84
+ .tag-plugin[color='dark']
85
+ --theme-border: black
86
+ --theme-bg: #222
87
+ color: var(--text-p1) !important
80
88
 
81
- .tag-plugin[color='light']
82
- --theme-border: white
83
- --theme-bg: #ddd
84
- color: var(--card) !important
89
+ if hexo-config('style.darkmode') == 'auto'
90
+ @media (prefers-color-scheme: dark)
91
+ set_darkmode_tags()
85
92
 
86
- .tag-plugin[color='dark']
87
- --theme-border: black
88
- --theme-bg: #222
89
- color: var(--text-p1) !important
93
+ if hexo-config('style.darkmode') == 'always'
94
+ set_darkmode_tags()