hexo-theme-stellar 1.42.1 → 1.43.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 (117) hide show
  1. package/.claude/skills/stellar-theme-dev/SKILL.md +1 -0
  2. package/CHANGELOG.md +41 -0
  3. package/THIRD-PARTY-NOTICES.md +28 -0
  4. package/_config.yml +17 -7
  5. package/_data/icons.yml +10 -9
  6. package/languages/en.yml +11 -0
  7. package/languages/zh-CN.yml +11 -0
  8. package/languages/zh-TW.yml +11 -0
  9. package/layout/_partial/comments/artalk/layout.ejs +1 -1
  10. package/layout/_partial/comments/beaudar/layout.ejs +1 -1
  11. package/layout/_partial/comments/giscus/layout.ejs +1 -1
  12. package/layout/_partial/comments/twikoo/layout.ejs +1 -1
  13. package/layout/_partial/comments/utterances/layout.ejs +1 -1
  14. package/layout/_partial/comments/waline/layout.ejs +1 -1
  15. package/layout/_partial/components/collection-item.ejs +44 -0
  16. package/layout/_partial/components/collection.ejs +26 -0
  17. package/layout/_partial/components/widget-frame.ejs +35 -0
  18. package/layout/_partial/cover/wiki_cover.ejs +82 -26
  19. package/layout/_partial/dropdown.ejs +62 -0
  20. package/layout/_partial/head.ejs +9 -0
  21. package/layout/_partial/main/navbar/breadcrumb/blog.ejs +1 -1
  22. package/layout/_partial/main/post_list/archive_item.ejs +12 -0
  23. package/layout/_partial/main/post_list/topic_card.ejs +21 -9
  24. package/layout/_partial/main/post_list/wiki_card.ejs +49 -10
  25. package/layout/_partial/scripts/defines.ejs +2 -8
  26. package/layout/_partial/scripts/lazyload.ejs +0 -3
  27. package/layout/_partial/scripts.ejs +1 -0
  28. package/layout/_partial/sidebar/index_leftbar.ejs +12 -2
  29. package/layout/_partial/sidebar/logo.ejs +1 -1
  30. package/layout/_partial/sidebar/menu.ejs +21 -23
  31. package/layout/_partial/widgets/components/linklist.ejs +23 -21
  32. package/layout/_partial/widgets/linklist.ejs +7 -12
  33. package/layout/_partial/widgets/recent.ejs +52 -41
  34. package/layout/_partial/widgets/related.ejs +47 -36
  35. package/layout/_partial/widgets/tagtree.ejs +70 -54
  36. package/layout/_partial/widgets/toc.ejs +37 -62
  37. package/layout/_partial/widgets/tree.ejs +38 -51
  38. package/layout/_plugins/mermaid.ejs +3 -4
  39. package/layout/archive.ejs +11 -20
  40. package/layout/collection-preview.ejs +60 -0
  41. package/layout/index_topic.ejs +12 -6
  42. package/layout/index_wiki.ejs +49 -3
  43. package/layout/layout.ejs +4 -3
  44. package/package.json +1 -1
  45. package/scripts/events/index.js +0 -2
  46. package/scripts/generators/stellar-icons.js +1 -1
  47. package/scripts/lib/subtitle.js +5 -1
  48. package/scripts/tags/index.js +1 -0
  49. package/scripts/tags/lib/about.js +1 -1
  50. package/scripts/tags/lib/albums.js +1 -1
  51. package/scripts/tags/lib/banner.js +1 -1
  52. package/scripts/tags/lib/dropdown.js +64 -0
  53. package/scripts/tags/lib/friends.js +1 -1
  54. package/scripts/tags/lib/gallery.js +3 -3
  55. package/scripts/tags/lib/image.js +1 -1
  56. package/scripts/tags/lib/posters.js +1 -1
  57. package/scripts/tags/lib/sites.js +8 -4
  58. package/source/css/_common/base.styl +4 -4
  59. package/source/css/_common/blockquote.styl +2 -2
  60. package/source/css/_common/dropdown.styl +132 -0
  61. package/source/css/_common/html.styl +1 -1
  62. package/source/css/_common/loading.styl +5 -2
  63. package/source/css/_common/title.styl +8 -8
  64. package/source/css/_components/collection.styl +188 -0
  65. package/source/css/_components/layout.styl +1 -1
  66. package/source/css/_components/list.styl +44 -46
  67. package/source/css/_components/md.styl +3 -3
  68. package/source/css/_components/page-transition.styl +22 -0
  69. package/source/css/_components/pages/archives.styl +19 -18
  70. package/source/css/_components/pages/article-indent.styl +2 -2
  71. package/source/css/_components/pages/article-story.styl +9 -5
  72. package/source/css/_components/pages/collection-preview.styl +68 -0
  73. package/source/css/_components/pages/notebook.styl +11 -9
  74. package/source/css/_components/partial/article-footer.styl +7 -4
  75. package/source/css/_components/partial/cover.styl +280 -1
  76. package/source/css/_components/partial/related.styl +10 -6
  77. package/source/css/_components/sidebar/footer.styl +66 -12
  78. package/source/css/_components/sidebar/nav-area.styl +6 -1
  79. package/source/css/_components/sidebar/search.styl +6 -2
  80. package/source/css/_components/tag-plugins/chat.styl +1 -1
  81. package/source/css/_components/tag-plugins/folders.styl +4 -4
  82. package/source/css/_components/tag-plugins/folding.styl +3 -3
  83. package/source/css/_components/tag-plugins/hashtag.styl +2 -3
  84. package/source/css/_components/tag-plugins/mdrender.styl +1 -1
  85. package/source/css/_components/tag-plugins/note.styl +4 -4
  86. package/source/css/_components/tag-plugins/poetry.styl +5 -5
  87. package/source/css/_components/tag-plugins/quot.styl +1 -2
  88. package/source/css/_components/tag-plugins/quote.styl +1 -1
  89. package/source/css/_components/tag-plugins/tabs.styl +2 -2
  90. package/source/css/_components/tag-plugins/timeline.styl +4 -4
  91. package/source/css/_components/widgets/markdown.styl +1 -14
  92. package/source/css/_components/widgets/timeline.styl +2 -2
  93. package/source/css/_components/widgets/toc.styl +22 -20
  94. package/source/css/_components/widgets/widgets.styl +13 -1
  95. package/source/css/_components/wiki-card.styl +209 -0
  96. package/source/css/_custom.styl +22 -20
  97. package/source/css/_plugins/lazyload.styl +8 -5
  98. package/source/css/comments/utterances.styl +2 -2
  99. package/source/css/plugins/mermaid.styl +31 -12
  100. package/source/js/icons.js +1 -1
  101. package/source/js/main.js +62 -6
  102. package/source/js/plugins/adaptive-text.js +46 -2
  103. package/source/js/plugins/dropdown.js +435 -0
  104. package/source/js/plugins/galaxy.js +423 -0
  105. package/source/js/search/algolia-search.js +1 -1
  106. package/source/js/search/local-search.js +1 -1
  107. package/source/js/services/ghinfo.js +31 -3
  108. package/source/js/services/siteinfo.js +26 -0
  109. package/source/js/services/sites.js +6 -2
  110. package/source/js/services.js +5 -2
  111. package/source/js/tagtree.js +7 -7
  112. package/source/js/utils.js +1 -1
  113. package/layout/_partial/widgets/components/link.ejs +0 -21
  114. package/source/css/_components/sidebar/menu.styl +0 -77
  115. package/source/css/_components/widgets/components.styl +0 -68
  116. package/source/css/_components/widgets/list.styl +0 -46
  117. package/source/css/_components/widgets/related.styl +0 -40
@@ -16,7 +16,7 @@
16
16
  flex-direction: column
17
17
  justify-content: center
18
18
  align-items: center
19
- font-size: var(--fsp)
19
+ font-size: var(--fs-content)
20
20
  .cover-title
21
21
  font-weight: 700
22
22
  font-size: 1.5rem
@@ -64,3 +64,282 @@
64
64
  .cover-title
65
65
  &:first-child
66
66
  font-size: 3rem
67
+
68
+
69
+ .l_cover.wiki-hero
70
+ min-height: 640px
71
+ overflow: hidden
72
+ isolation: isolate
73
+ color: var(--text)
74
+ text-align: left
75
+ .wiki-cover-background
76
+ position: absolute
77
+ z-index: -1
78
+ inset: 0
79
+ overflow: hidden
80
+ background: var(--background)
81
+ &.image
82
+ .wiki-cover-background-image,
83
+ .wiki-cover-background-blur
84
+ position: absolute
85
+ inset: 0
86
+ width: 100%
87
+ height: 100%
88
+ object-fit: cover
89
+ .wiki-cover-background-image
90
+ z-index: 0
91
+ .wiki-cover-background-blur
92
+ z-index: 1
93
+ filter: blur(18px)
94
+ // 以透明度遮罩渐入模糊层;clip-path 会在 80% 处硬切,丢失过渡。
95
+ mask: linear-gradient(to top, black 0%, rgba(black, .75) 10%, transparent 20%)
96
+ -webkit-mask: linear-gradient(to top, black 0%, rgba(black, .75) 10%, transparent 20%)
97
+ transform: scale(1.03)
98
+ .wiki-cover-background-overlay
99
+ position: absolute
100
+ z-index: 2
101
+ inset: 0
102
+ pointer-events: none
103
+ background: linear-gradient(to bottom, transparent 0%, transparent 80%, var(--background) 100%)
104
+ &.galaxy
105
+ background: #000000
106
+ canvas
107
+ display: block
108
+ width: 100%
109
+ height: 100%
110
+ pointer-events: none
111
+ .wiki-navbar
112
+ position: absolute
113
+ top: 2rem
114
+ left: 0
115
+ right: 0
116
+ .wiki-cover-layout
117
+ width: calc(100% - 4rem)
118
+ max-width: 1120px
119
+ height: 100%
120
+ margin: 0 auto
121
+ position: relative
122
+ color: var(--text-banner, var(--text))
123
+ // 未配置背景时没有 data-text-adaptive,不会运行自适应取色。
124
+ .wiki-cover-layout:not([data-text-adaptive])
125
+ --text-banner-theme: var(--text-p2)
126
+ .wiki-cover-release,
127
+ .wiki-cover-actions a.button
128
+ border-color: var(--block-border)
129
+ .wiki-navbar-home
130
+ display: inline-flex
131
+ align-items: center
132
+ min-height: 1.5rem
133
+ padding: 0
134
+ border: 0
135
+ color: var(--text-banner, var(--text))
136
+ font-size: 1rem
137
+ font-weight: 700
138
+ line-height: 1.5rem
139
+ text-decoration: none
140
+ background: transparent
141
+ box-shadow: none
142
+ &:hover
143
+ color: var(--text-banner, var(--text))
144
+ background: transparent
145
+ opacity: .8
146
+ .wiki-cover-content
147
+ width: 100%
148
+ max-width: none
149
+ height: 100%
150
+ margin: 0
151
+ display: grid
152
+ grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr)
153
+ gap: clamp(3rem, 8vw, 8rem)
154
+ align-items: center
155
+ .wiki-cover-intro
156
+ max-width: 560px
157
+ display: flex
158
+ flex-direction: column
159
+ align-items: stretch
160
+ gap: 2rem
161
+ .wiki-cover-release
162
+ display: inline-flex
163
+ align-items: center
164
+ min-height: 1.75rem
165
+ align-self: flex-start
166
+ box-sizing: border-box
167
+ padding: .25rem .75rem
168
+ margin: 0
169
+ border: 1px solid unquote('color-mix(in srgb, var(--text-banner-theme, white) 50%, transparent)')
170
+ border-radius: 100px
171
+ color: inherit
172
+ font-size: $fs-12
173
+ font-weight: 700
174
+ line-height: 1.2
175
+ text-decoration: none
176
+ transition: opacity .25s ease
177
+ .wiki-cover-release-value
178
+ display: none
179
+ &.is-loading
180
+ // 请求期间仅保留标签高度,避免标题在数据返回时跳动。
181
+ opacity: 0
182
+ pointer-events: none
183
+ &.loaded
184
+ opacity: 1
185
+ .wiki-cover-release-value
186
+ display: inline
187
+ &:hover
188
+ color: inherit
189
+ background: unquote('color-mix(in srgb, var(--text-banner-theme, var(--background)) 20%, transparent)')
190
+ .cover-title
191
+ margin: 0
192
+ // 标题自身以 contrast 模式计算,始终在黑白之间切换,不继承容器主题色。
193
+ color: var(--text-banner, var(--text))
194
+ // 主题色仅作为外发光轮廓,保留黑白标题的对比度。
195
+ text-shadow: 0 0 16px unquote('color-mix(in srgb, var(--text-banner-theme, currentColor) 30%, transparent)'), 0 0 32px unquote('color-mix(in srgb, var(--text-banner-theme, currentColor) 20%, transparent)'), 0 0 64px unquote('color-mix(in srgb, var(--text-banner-theme, currentColor) 10%, transparent)')
196
+ font-size: clamp(2.5rem, 3vw, 4.75rem)
197
+ .description
198
+ margin: 0
199
+ color: var(--text-banner-theme, var(--text-p2))
200
+ line-height: 1.75
201
+ text-shadow: 0 0 8px unquote('color-mix(in srgb, var(--text-banner-theme, currentColor) 50%, transparent)'), 0 0 16px unquote('color-mix(in srgb, var(--text-banner-theme, currentColor) 10%, transparent)')
202
+ .wiki-cover-actions
203
+ display: flex
204
+ flex-wrap: wrap
205
+ gap: 1rem
206
+ a.button
207
+ display: inline-flex
208
+ align-items: center
209
+ gap: .5rem
210
+ padding: .5rem 1.25rem .5rem 1rem
211
+ border-radius: 100px
212
+ border: 1px solid unquote('color-mix(in srgb, var(--text-banner-theme, white) 50%, transparent)')
213
+ color: inherit
214
+ background: unquote('color-mix(in srgb, var(--text-banner-theme, var(--background)) 20%, transparent)')
215
+ backdrop-filter: blur(12px)
216
+ trans1 background
217
+ svg
218
+ width: 1.5rem
219
+ height: 1.5rem
220
+ &:hover
221
+ color: inherit
222
+ background: unquote('color-mix(in srgb, var(--text-banner-theme, var(--background)) 50%, transparent)')
223
+ &.wiki-cover-source
224
+ border-color: var(--text-banner, var(--text))
225
+ color: var(--text-banner, var(--text))
226
+ background: var(--text-banner, var(--text))
227
+ svg, span
228
+ filter: invert(1)
229
+ &:hover
230
+ color: var(--text-banner, var(--text))
231
+ background: var(--text-banner, var(--text))
232
+ .wiki-cover-preview
233
+ width: 100%
234
+ border-radius: 1.25rem
235
+ overflow: hidden
236
+ box-shadow: 0 24px 60px rgba(0,0,0,.18)
237
+ > img
238
+ display: block
239
+ width: 100%
240
+ max-height: 62vh
241
+ object-fit: contain
242
+ background: var(--card)
243
+ .wiki-cover-terminal
244
+ position: relative
245
+ min-height: 150px
246
+ padding: 1rem
247
+ color: var(--text-banner-theme)
248
+ background: unquote('color-mix(in srgb, var(--text-banner-theme, var(--background)) 20%, transparent)')
249
+ backdrop-filter: blur(12px) brightness(0.8)
250
+ font-family: $ff-code
251
+ .wiki-cover-terminal-toolbar
252
+ display: flex
253
+ align-items: center
254
+ justify-content: space-between
255
+ margin-bottom: 1.4rem
256
+ .wiki-cover-terminal-tabs
257
+ display: flex
258
+ gap: .5rem
259
+ button
260
+ padding: .5rem .75rem
261
+ border-radius: 8px
262
+ color: inherit
263
+ opacity 0.5
264
+ font-family: inherit
265
+ font-size: $fs-13
266
+ line-height: 1
267
+ font-weight: 500
268
+ &.active
269
+ opacity 1
270
+ background: unquote('color-mix(in srgb, var(--text-banner-theme, var(--background)) 20%, transparent)')
271
+ pre
272
+ margin: 0
273
+ padding: 0
274
+ overflow-x: auto
275
+ color: inherit
276
+ background: transparent
277
+ font: 1rem
278
+ line-height: 1.8
279
+ code span
280
+ display: block
281
+ code span:before
282
+ content: '$ '
283
+ color: #8ca5ff
284
+ .wiki-cover-copy
285
+ display: inline-flex
286
+ align-items: center
287
+ gap: .5rem
288
+ padding: .5rem .75rem .5rem .5rem
289
+ border-radius: 8px
290
+ color: var(--text-banner, var(--text))
291
+ font-family: inherit
292
+ font-size: $fs-13
293
+ line-height: 1
294
+ background: unquote('color-mix(in srgb, var(--text-banner-theme, var(--background)) 20%, transparent)')
295
+ trans1 background
296
+ &:hover
297
+ background: unquote('color-mix(in srgb, var(--text-banner-theme, var(--background)) 50%, transparent)')
298
+ &.without-preview .wiki-cover-content
299
+ grid-template-columns: minmax(0, 560px)
300
+ justify-content: center
301
+
302
+ @media screen and (max-width: $device-tablet)
303
+ .l_cover.wiki-hero
304
+ height: auto
305
+ min-height: 100vh
306
+ padding: 7rem 0 4rem
307
+ .wiki-cover-layout
308
+ width: calc(100% - 3rem)
309
+ max-width: 620px
310
+ height: auto
311
+ display: grid
312
+ grid-template-rows: auto 1fr
313
+ position: static
314
+ .wiki-navbar
315
+ position: absolute
316
+ top: 1.5rem
317
+ left: 1.5rem
318
+ right: 1.5rem
319
+ padding-top: 0
320
+ .wiki-cover-content
321
+ height: auto
322
+ margin-bottom: 5rem
323
+ grid-template-columns: 1fr
324
+ gap: 5rem
325
+ .wiki-cover-intro
326
+ max-width: none
327
+ .wiki-cover-preview
328
+ max-width: 620px
329
+
330
+ @media screen and (max-width: $device-mobile)
331
+ .l_cover.wiki-hero
332
+ .wiki-cover-layout
333
+ width: calc(100% - 2rem)
334
+ .wiki-navbar
335
+ left: 1rem
336
+ right: 1rem
337
+ .cover-title
338
+ font-size: 2rem
339
+ .wiki-cover-actions
340
+ a.button
341
+ padding: .25rem .75rem .25rem .5rem
342
+
343
+ @media (prefers-reduced-motion: reduce)
344
+ .l_cover.wiki-hero .wiki-cover-background.galaxy canvas
345
+ display: none
@@ -31,8 +31,8 @@ article.md-text.content+.related-wrap
31
31
  .title
32
32
  color: var(--text-p1)
33
33
  font-weight: 500
34
- --fsp: $fsp1
35
- font-size: var(--fsp)
34
+ --fs-content: $fs-content-1
35
+ font-size: var(--fs-content)
36
36
  trans2 color border
37
37
  position: relative
38
38
  padding-bottom: 2px
@@ -40,8 +40,8 @@ article.md-text.content+.related-wrap
40
40
  line-height: 1.6
41
41
  .excerpt
42
42
  color: var(--text-p3)
43
- --fsp: $fsp3
44
- font-size: var(--fsp)
43
+ --fs-content: $fs-content-3
44
+ font-size: var(--fs-content)
45
45
  margin-top: 0.5rem
46
46
  display: -webkit-box
47
47
  -webkit-box-orient: vertical
@@ -99,9 +99,13 @@ article.md-text.content+.related-wrap
99
99
  .cmt-body
100
100
  min-height: 150px
101
101
  position: relative
102
- svg.loading
102
+ .lazy-icon
103
+ position: absolute
103
104
  top: 60px
105
+ left: 50%
106
+ transform: translateX(-50%)
107
+ z-index: -1
104
108
  iframe
105
109
  border-radius: 4px
106
110
  border: none
107
- width: 100%
111
+ width: 100%
@@ -2,22 +2,76 @@
2
2
  margin: 0.5rem var(--gap-base) 1rem
3
3
 
4
4
  .social-wrap
5
- display: grid
6
- grid-gap: 0.25rem 0.25rem
7
- grid-template-columns: repeat(auto-fill, 32px)
5
+ display: flex
6
+ flex-wrap: wrap
7
+ gap: 0.5rem
8
+ align-items: center
8
9
  text-align: center
9
10
  .social
10
11
  line-height: 0
11
- display: inline-block
12
- padding: 6px
13
- border-radius: 32px
12
+ display: inline-flex
13
+ align-items: center
14
+ box-sizing: border-box
15
+ flex: 0 0 auto
16
+ height: 32px
17
+ padding: 4px
18
+ border-radius: 8px
14
19
  filter: grayscale(100%)
15
20
  overflow: hidden
16
- background: transparent
17
- trans3: box-shadow background transform
18
- &:hover
19
- z-index: 1
20
- filter: unset
21
- background: var(--bg-a100)
21
+ background: var(--ui-item-bg)
22
+ box-shadow: none
22
23
  img
24
+ flex: initial
25
+ width: 24px
26
+ height: 24px
27
+ object-fit: contain
23
28
  border-radius: 2px
29
+ svg
30
+ flex: initial
31
+ height: 24px
32
+ width: 24px
33
+
34
+ .social-spacer
35
+ flex: 1 1 0
36
+ min-width: 0
37
+ height: 32px
38
+ pointer-events: none
39
+
40
+ .social-dropdown
41
+ position: relative
42
+ box-sizing: border-box
43
+ flex: 0 0 auto
44
+ height: 32px
45
+ line-height: 0
46
+ >.dropdown-trigger.social
47
+ >img, >svg
48
+ opacity: .5
49
+ // JS 未加载时保留向上展开的原生 details 兜底;正常情况下菜单会移入全局浮层。
50
+ >.dropdown-menu
51
+ top: auto
52
+ bottom: calc(100% + 0.5rem)
53
+ &:first-child:not(:last-child) >.dropdown-menu, &:only-child >.dropdown-menu
54
+ left: 0
55
+ transform: none
56
+ &:last-child:not(:first-child) >.dropdown-menu
57
+ right: 0
58
+ left: auto
59
+ transform: none
60
+
61
+ .social:hover
62
+ background: var(--ui-item-bg-hover)
63
+ box-shadow: var(--ui-item-shadow-hover)
64
+
65
+ .social-dropdown[open] > .dropdown-trigger.social
66
+ background: var(--ui-item-bg-active)
67
+ box-shadow: var(--ui-item-shadow-active)
68
+
69
+ .social:hover, .social-dropdown[open] > .dropdown-trigger.social
70
+ z-index: 1
71
+ filter: unset
72
+ >img, >svg
73
+ opacity: 1
74
+ svg [fill="currentColor"]
75
+ fill: var(--item-grad)
76
+ svg [stroke="currentColor"]
77
+ stroke: var(--item-grad)
@@ -1,2 +1,7 @@
1
1
  .nav-area
2
- margin: 2rem 0
2
+ margin: 2rem 0
3
+ .menu
4
+ width: 100%
5
+ margin: 0
6
+ .ui-collection__title
7
+ font-size: $fs-15
@@ -118,13 +118,17 @@
118
118
  list-style-type: none
119
119
  li a
120
120
  display: block
121
- background: var(--bg-a20)
121
+ background: var(--ui-summary-item-bg)
122
122
  line-height: 1.2
123
123
  padding: 0.75rem 1rem
124
124
  border-radius: $border-card-s
125
125
  trans1 background
126
126
  &:hover
127
- background: var(--bg-a50)
127
+ background: var(--ui-adapter-bg-hover)
128
+ box-shadow: var(--ui-adapter-shadow-hover)
129
+ &:focus-visible
130
+ outline: 2px solid var(--theme)
131
+ outline-offset: 2px
128
132
  li+li
129
133
  margin-top: 8px
130
134
  .search-result-title
@@ -314,7 +314,7 @@ chat_dark()
314
314
  align-items: center
315
315
  >svg,
316
316
  >span
317
- height: $fs-12 + .05rem
317
+ height: 'calc(%s * 0.8)' % var(--fs-content-base)
318
318
 
319
319
  &.voice
320
320
  display: flex
@@ -1,7 +1,7 @@
1
1
  .tag-plugin.folders
2
2
  margin: var(--gap-p) 0
3
- --fsp: $fsp2
4
- font-size: var(--fsp)
3
+ --fs-content: $fs-content-2
4
+ font-size: var(--fs-content)
5
5
  border-top: 1px solid var(--block-border)
6
6
  overflow: hidden
7
7
  .folder
@@ -43,8 +43,8 @@
43
43
  content: '-'
44
44
 
45
45
  >div.body
46
- --fsp: $fsp1
46
+ --fs-content: $fs-content-1
47
47
  >:first-child
48
48
  margin-top: 1rem
49
49
  >:last-child
50
- margin-bottom: 0
50
+ margin-bottom: 0
@@ -11,8 +11,8 @@ details.folding
11
11
  margin: -1rem
12
12
  color: var(--text-p2)
13
13
  font-weight: 500
14
- --fsp: $fsp2
15
- font-size: var(--fsp)
14
+ --fs-content: $fs-content-2
15
+ font-size: var(--fs-content)
16
16
  position: relative
17
17
  line-height: 1.2
18
18
  outline: none
@@ -45,7 +45,7 @@ details.folding[open]
45
45
  padding: 0 1rem 1rem
46
46
  margin: 0 -1rem -1rem
47
47
  color: var(--text-p1)
48
- --fsp: $fsp1
48
+ --fs-content: $fs-content-1
49
49
  >:first-child
50
50
  margin-top: 1rem
51
51
  >:last-child
@@ -6,8 +6,8 @@
6
6
  margin: 2px 0
7
7
  display: inline-flex
8
8
  align-items: center
9
- --fsp: $fsp2
10
- font-size: var(--fsp)
9
+ --fs-content: $fs-content-2
10
+ font-size: var(--fs-content)
11
11
  font-weight: 500
12
12
  trans2 background color
13
13
  span
@@ -15,4 +15,3 @@
15
15
  &:hover
16
16
  background: var(--text-p2)
17
17
  color: var(--theme-block)
18
-
@@ -1,6 +1,6 @@
1
1
  .ds-mdrender
2
2
  p strong
3
- font-size: $fs-body
3
+ font-size: var(--fs-content)
4
4
  font-weight: 500
5
5
  color: var(--text)
6
6
 
@@ -8,16 +8,16 @@
8
8
  border: 1px solid var(--theme-border)
9
9
  color: var(--text-p1)
10
10
  >.title
11
- --fsp: $fsp1
12
- font-size: var(--fsp)
11
+ --fs-content: $fs-content-1
12
+ font-size: var(--fs-content)
13
13
  line-height: 1.5
14
14
  margin-top: var(--gap-p-compact)
15
15
  font-weight: 500
16
16
  color: var(--text)
17
17
  >.body
18
18
  &,p
19
- --fsp: $fsp2
20
- font-size: var(--fsp)
19
+ --fs-content: $fs-content-2
20
+ font-size: var(--fs-content)
21
21
  line-height: 1.5
22
22
  margin-top: var(--gap-p-compact)
23
23
  margin-bottom: var(--gap-p-compact)
@@ -3,15 +3,15 @@
3
3
  flex-direction: column
4
4
  align-items: center
5
5
  text-align: left
6
- --fsp: $fs-body
6
+ --fs-content: var(--fs-content-base)
7
7
  .content
8
8
  >.title
9
9
  font-weight: 500
10
10
  margin-top: var(--gap-p)
11
11
  >.meta
12
12
  color: var(--text-p2)
13
- --fsp: $fsp3
14
- font-size: var(--fsp)
13
+ --fs-content: $fs-content-3
14
+ font-size: var(--fs-content)
15
15
  font-weight: 500
16
16
  span+span
17
17
  margin-left: 4px
@@ -24,8 +24,8 @@
24
24
  font-style: italic
25
25
  color: var(--text-p4)
26
26
  margin: var(--gap-p) 0
27
- --fsp: $fsp3
28
- font-size: var(--fsp)
27
+ --fs-content: $fs-content-3
28
+ font-size: var(--fs-content)
29
29
 
30
30
  // 描边修饰
31
31
  .md-text .tag-plugin.poetry .content
@@ -29,7 +29,7 @@
29
29
  h3,h4,h5,h6
30
30
  font-size: $fsh3
31
31
  p
32
- font-size: calc(var(--fsp) + 2px)
32
+ font-size: calc(var(--fs-content) + 2px)
33
33
  color: var(--text)
34
34
 
35
35
  // type=icon
@@ -71,4 +71,3 @@
71
71
  opacity: 0.2
72
72
  filter: blur(8px)
73
73
  transform: translateY(4px) scale(1.2, 1.5)
74
-
@@ -4,4 +4,4 @@
4
4
  text-indent: 0 !important
5
5
  &[indent='true']
6
6
  p:not([class])
7
- text-indent: 'calc(%s * 2)' % var(--fsp) !important
7
+ text-indent: 'calc(%s * 2)' % var(--fs-content) !important
@@ -44,8 +44,8 @@
44
44
  display: block
45
45
  cursor: pointer
46
46
  padding: .25rem .75rem
47
- --fsp: $fsp3
48
- font-size: var(--fsp)
47
+ --fs-content: $fs-content-3
48
+ font-size: var(--fs-content)
49
49
  line-height: inherit
50
50
  font-weight: 500
51
51
  color: var(--text-p3)
@@ -96,7 +96,7 @@
96
96
  margin-top: 4px
97
97
  box-shadow: $boxshadow-block
98
98
  p
99
- --fsp: $fsp1
99
+ --fs-content: $fs-content-1
100
100
  img
101
101
  display: block
102
102
  &:empty
@@ -112,8 +112,8 @@
112
112
  color: var(--text-p1)
113
113
  line-height: 1.25
114
114
  padding: 0.75rem 1rem
115
- --fsp: $fsp1
116
- font-size: var(--fsp)
115
+ --fs-content: $fs-content-1
116
+ font-size: var(--fs-content)
117
117
  &.ds-artalk .body
118
118
  img
119
119
  max-height: 1.5em
@@ -218,7 +218,7 @@ aside .tag-plugin.timeline[data-api] .body .lazy-box
218
218
  padding: 0 0.5rem
219
219
  margin: 0.75rem 0
220
220
  p
221
- --fsp: $fsp2
221
+ --fs-content: $fs-content-2
222
222
  margin: 0.25rem
223
223
 
224
224
  .tag-plugin.timeline .body
@@ -6,18 +6,5 @@
6
6
  >*:first-child
7
7
  margin-top: .75rem
8
8
 
9
- .widget-wrapper.markdown .linklist
9
+ .widget-wrapper.markdown .ui-collection
10
10
  margin: 1em 0
11
- .link
12
- background: var(--bg-a50)
13
- .link:hover
14
- background: var(--bg-a100)
15
-
16
- .l_left .widget-wrapper.markdown .linklist .link:hover
17
- sidebar-light()
18
-
19
- .l_right .widget-wrapper.markdown .linklist
20
- .link
21
- background: var(--block)
22
- .link:hover
23
- background: var(--theme-a20)
@@ -9,7 +9,7 @@
9
9
  a
10
10
  trans1 all
11
11
  word-break: break-all
12
- --fsp: $fsp2
12
+ --fs-content: $fs-content-2
13
13
  .tag-plugin.timeline .timenode
14
14
  z-index 1
15
15
  margin-top: 0.25rem
@@ -27,7 +27,7 @@
27
27
  border-radius: $border-card
28
28
  padding: 0.5rem 1rem
29
29
  p,li
30
- --fsp: $fsp3
30
+ --fs-content: $fs-content-3
31
31
  code
32
32
  background: none
33
33
  padding: 0