@xingwangzhe/stalux 1.55.4 → 1.55.6

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 (53) hide show
  1. package/package.json +1 -1
  2. package/src/components/stalux/archives/archivesList.astro +60 -60
  3. package/src/components/stalux/archives/toArchive.astro +3 -2
  4. package/src/components/stalux/categories/categoriesCard.astro +34 -34
  5. package/src/components/stalux/categories/categoriesList.astro +3 -1
  6. package/src/components/stalux/common/Typewriter.astro +3 -2
  7. package/src/components/stalux/common/Weather.astro +3 -2
  8. package/src/components/stalux/common/date.astro +16 -12
  9. package/src/components/stalux/common/search.astro +3 -2
  10. package/src/components/stalux/footer/FooterBadges.astro +34 -24
  11. package/src/components/stalux/footer/FooterBeian.astro +3 -2
  12. package/src/components/stalux/footer/FooterStats.astro +3 -2
  13. package/src/components/stalux/footer/FooterThemeInfo.astro +3 -2
  14. package/src/components/stalux/layout/PageHeading.astro +5 -4
  15. package/src/components/stalux/layout/navs.astro +4 -3
  16. package/src/components/stalux/links/linkCard.astro +8 -6
  17. package/src/components/stalux/links/socialMedia.astro +2 -2
  18. package/src/components/stalux/posts/PostTaxonomy.astro +14 -11
  19. package/src/components/stalux/posts/WalineComment.astro +2 -2
  20. package/src/components/stalux/posts/postAuthor.astro +6 -6
  21. package/src/components/stalux/posts/postCC.astro +9 -7
  22. package/src/components/stalux/posts/postCard.astro +70 -72
  23. package/src/components/stalux/posts/postContent.astro +7 -6
  24. package/src/components/stalux/posts/postLeft.astro +7 -6
  25. package/src/components/stalux/posts/postList.astro +3 -2
  26. package/src/components/stalux/posts/postNavigation.astro +112 -106
  27. package/src/components/stalux/posts/postRight.astro +10 -8
  28. package/src/components/stalux/posts/postToc.astro +1 -1
  29. package/src/components/stalux/posts/randomPost.astro +3 -2
  30. package/src/components/stalux/tags/tagsCloud.astro +29 -21
  31. package/src/components/stalux/words/wordCard.astro +6 -4
  32. package/src/internal/style-names.generated.ts +224 -219
  33. package/src/pages/404.astro +4 -2
  34. package/src/pages/about.astro +3 -3
  35. package/src/pages/categories/[category].astro +2 -2
  36. package/src/pages/index.astro +9 -4
  37. package/src/pages/posts/[post].astro +0 -1
  38. package/src/pages/tags/[tag].astro +2 -2
  39. package/src/scripts/date-time.ts +15 -7
  40. package/src/scripts/random-posts.ts +26 -11
  41. package/src/styles/base.css +34 -20
  42. package/src/styles/content.css +16 -8
  43. package/src/styles/generated-archives.css +1 -1
  44. package/src/styles/generated-article.css +1 -1
  45. package/src/styles/generated-cards.css +1 -1
  46. package/src/styles/generated-categories.css +1 -1
  47. package/src/styles/generated-home.css +1 -1
  48. package/src/styles/generated-links.css +1 -1
  49. package/src/styles/generated-prose.css +1 -1
  50. package/src/styles/generated-tags.css +1 -1
  51. package/src/styles/generated-words.css +1 -1
  52. package/src/styles/generated.css +1 -1
  53. package/src/styles/module-motion.css +1 -1
@@ -22,41 +22,49 @@ const tagLinks = tagList.map((t) => ({
22
22
  ---
23
23
 
24
24
  <!-- 移动端:SSR 卡片 -->
25
- <div class="stalux-cloud-cards" id="tags-cards" data-stalux-tag-cards data-stalux-motion-content>
25
+ <!-- Modern Web Guidance (html): 标签是一组条目 => <ul>/<li>;空态是纯文字 => <p>。 -->
26
+ <section
27
+ class="stalux-cloud-cards"
28
+ id="tags-cards"
29
+ data-stalux-tag-cards
30
+ data-stalux-motion-content
31
+ aria-label={t("tags.title")}
32
+ >
26
33
  {tagList.length > 0 ? (
27
34
  tagGroups.map((group) => (
28
- <div class="stalux-cloud-tag-group" data-stalux-reveal>
35
+ <ul class="stalux-cloud-tag-group" data-stalux-reveal>
29
36
  {group.map(({ name, count }) => (
30
- <a
31
- href={`/tags/${name}/`}
32
- class="stalux-cloud-tag-card"
33
- data-stalux-card
34
- data-stalux-tag-card
35
- data-stalux-control="tag-card"
36
- data-stalux-reveal-item
37
- data-count={count}
38
- data-astro-prefetch
39
- >
40
- <span class="stalux-cloud-tag-name">{name}</span>
41
- <span class="stalux-cloud-tag-count">{count}</span>
42
- </a>
37
+ <li data-stalux-reveal-item>
38
+ <a
39
+ href={`/tags/${name}/`}
40
+ class="stalux-cloud-tag-card"
41
+ data-stalux-card
42
+ data-stalux-tag-card
43
+ data-stalux-control="tag-card"
44
+ data-count={count}
45
+ data-astro-prefetch
46
+ >
47
+ <span class="stalux-cloud-tag-name">{name}</span>
48
+ <span class="stalux-cloud-tag-count">{count}</span>
49
+ </a>
50
+ </li>
43
51
  ))}
44
- </div>
52
+ </ul>
45
53
  ))
46
54
  ) : (
47
- <div class="stalux-cloud-no-tags">{t("tags.noTags")}</div>
55
+ <p class="stalux-cloud-no-tags">{t("tags.noTags")}</p>
48
56
  )}
49
- </div>
57
+ </section>
50
58
 
51
- <!-- 桌面端:Canvas 标签云 -->
52
- <div
59
+ <!-- 桌面端:Canvas 标签云(可视化整体,用 <figure> 承载;内部节点是脚本挂载点) -->
60
+ <figure
53
61
  class="stalux-cloud-canvas-frame"
54
62
  data-stalux-tag-canvas
55
63
  style={{ "--cloud-density": cloudDensity }}
56
64
  data-stalux-motion-content
57
65
  >
58
66
  <div class="stalux-cloud-canvas" id="tags-canvas" data-tags={JSON.stringify(tagLinks)}></div>
59
- </div>
67
+ </figure>
60
68
 
61
69
  <script>
62
70
  import "../../../scripts/tags-cloud";
@@ -25,9 +25,11 @@ const machineDate = date && timezone ? toMachineDateTime(date, timezone) : date;
25
25
  id={abbrlink ? `word-${abbrlink}` : undefined}
26
26
  >
27
27
  <Quote class="stalux-word-mark" size={28} stroke-width={1.4} aria-hidden="true" />
28
- <div class="stalux-word-body stalux-prose" data-pagefind-body>
28
+ <!-- Modern Web Guidance (html): 语录正文本身就是引用 => <blockquote>;
29
+ 来源与日期是脚注性文字 => <footer> + <p>。 -->
30
+ <blockquote class="stalux-word-body stalux-prose" data-pagefind-body>
29
31
  <Content />
30
- </div>
32
+ </blockquote>
31
33
  {(date || source || sourceDate || abbrlink) && (
32
34
  <footer class="stalux-word-footer">
33
35
  {abbrlink ? (
@@ -47,7 +49,7 @@ const machineDate = date && timezone ? toMachineDateTime(date, timezone) : date;
47
49
  <span />
48
50
  )}
49
51
  {(source || sourceDate) && (
50
- <div class="stalux-word-source-meta">
52
+ <p class="stalux-word-source-meta">
51
53
  {sourceDate && <span class="stalux-word-source-date">{sourceDate}</span>}
52
54
  {source &&
53
55
  (link ? (
@@ -62,7 +64,7 @@ const machineDate = date && timezone ? toMachineDateTime(date, timezone) : date;
62
64
  ) : (
63
65
  <span class="stalux-word-source-text">— {source}</span>
64
66
  ))}
65
- </div>
67
+ </p>
66
68
  )}
67
69
  </footer>
68
70
  )}
@@ -48,181 +48,183 @@ export const styleNames: { classes: Record<string, string>; variables: Record<st
48
48
  "stalux-badge-group": "s18",
49
49
  "stalux-badge-group-arrow": "s19",
50
50
  "stalux-badge-group-hint": "s1a",
51
- "stalux-badge-group-items": "s1b",
52
- "stalux-badge-group-summary": "s1c",
53
- "stalux-badge-group-title": "s1d",
54
- "stalux-badges": "s1e",
55
- "stalux-badges-wrapper": "s1f",
56
- "stalux-beian-beian-info": "s1g",
57
- "stalux-beian-public-security-beian": "s1h",
58
- "stalux-byline-author-bio": "s1i",
59
- "stalux-byline-author-card": "s1j",
60
- "stalux-byline-author-section": "s1k",
61
- "stalux-byline-sidebar-container": "s1l",
62
- "stalux-card-post-categories": "s1m",
63
- "stalux-card-post-category": "s1n",
64
- "stalux-card-post-cover": "s1o",
65
- "stalux-card-post-date": "s1p",
66
- "stalux-card-post-description": "s1q",
67
- "stalux-card-post-meta": "s1r",
68
- "stalux-card-post-tag": "s1s",
69
- "stalux-card-post-tags": "s1t",
70
- "stalux-card-post-title": "s1u",
71
- "stalux-card-post-updated": "s1v",
72
- "stalux-card-read-more": "s1w",
73
- "stalux-card-time": "s1x",
74
- "stalux-categories": "s1y",
75
- "stalux-category-card": "s1z",
76
- "stalux-category-content": "s20",
77
- "stalux-category-icon": "s21",
78
- "stalux-category-shell": "s22",
79
- "stalux-categoryheader": "s23",
80
- "stalux-cloud-canvas": "s24",
81
- "stalux-cloud-canvas-frame": "s25",
82
- "stalux-cloud-cards": "s26",
83
- "stalux-cloud-no-tags": "s27",
84
- "stalux-cloud-tag-card": "s28",
85
- "stalux-cloud-tag-count": "s29",
86
- "stalux-cloud-tag-group": "s2a",
87
- "stalux-cloud-tag-name": "s2b",
88
- "stalux-copyright": "s2c",
89
- "stalux-footer": "s2d",
90
- "stalux-footer-content": "s2e",
91
- "stalux-home-body": "s2f",
92
- "stalux-home-title": "s2g",
93
- "stalux-license-author": "s2h",
94
- "stalux-license-box": "s2i",
95
- "stalux-license-content": "s2j",
96
- "stalux-license-icon": "s2k",
97
- "stalux-license-license": "s2l",
98
- "stalux-license-title": "s2m",
99
- "stalux-license-url": "s2n",
100
- "stalux-license-watermark": "s2o",
101
- "stalux-link-card": "s2p",
102
- "stalux-link-card-avatar": "s2q",
103
- "stalux-link-card-content": "s2r",
104
- "stalux-link-card-description": "s2s",
105
- "stalux-link-card-title": "s2t",
106
- "stalux-link-list-item": "s2u",
107
- "stalux-link-shell": "s2v",
108
- "stalux-links": "s2w",
109
- "stalux-main": "s2x",
110
- "stalux-nav-container": "s2y",
111
- "stalux-nav-item": "s2z",
112
- "stalux-nav-link": "s30",
113
- "stalux-nav-list": "s31",
114
- "stalux-nav-overlay": "s32",
115
- "stalux-nav-scroll-btn": "s33",
116
- "stalux-nav-text": "s34",
117
- "stalux-nav-toggle": "s35",
118
- "stalux-page-description": "s36",
119
- "stalux-page-title": "s37",
120
- "stalux-pagination": "s38",
121
- "stalux-pagination-arrow": "s39",
122
- "stalux-pagination-content": "s3a",
123
- "stalux-pagination-disabled": "s3b",
124
- "stalux-pagination-inner": "s3c",
125
- "stalux-pagination-label": "s3d",
126
- "stalux-pagination-link": "s3e",
127
- "stalux-pagination-next-post": "s3f",
128
- "stalux-pagination-prev-post": "s3g",
129
- "stalux-pagination-title": "s3h",
130
- "stalux-post-article-footer": "s3i",
131
- "stalux-post-article-header": "s3j",
132
- "stalux-post-body": "s3k",
133
- "stalux-post-card": "s3l",
134
- "stalux-post-card-shell": "s3m",
135
- "stalux-post-footer-content": "s3n",
136
- "stalux-post-layout": "s3o",
137
- "stalux-post-list-container": "s3p",
138
- "stalux-post-meta-item": "s3q",
139
- "stalux-post-meta-row": "s3r",
140
- "stalux-post-metadata": "s3s",
141
- "stalux-post-page": "s3t",
142
- "stalux-post-page-stats": "s3u",
143
- "stalux-post-reading-time": "s3v",
144
- "stalux-post-source-link": "s3w",
145
- "stalux-post-source-link-row": "s3x",
146
- "stalux-post-taxonomy-container": "s3y",
147
- "stalux-post-taxonomy-empty": "s3z",
148
- "stalux-post-taxonomy-item-column": "s40",
149
- "stalux-post-taxonomy-item-pill": "s41",
150
- "stalux-post-taxonomy-list": "s42",
151
- "stalux-post-taxonomy-list-column": "s43",
152
- "stalux-post-taxonomy-list-wrap": "s44",
153
- "stalux-post-taxonomy-title": "s45",
154
- "stalux-post-title": "s46",
155
- "stalux-prose": "s47",
156
- "stalux-random-container": "s48",
157
- "stalux-random-error": "s49",
158
- "stalux-random-header": "s4a",
159
- "stalux-random-list": "s4b",
160
- "stalux-random-loading": "s4c",
161
- "stalux-random-no-more": "s4d",
162
- "stalux-random-refresh": "s4e",
163
- "stalux-random-rotating": "s4f",
164
- "stalux-random-title": "s4g",
165
- "stalux-root": "s4h",
166
- "stalux-sidebar": "s4i",
167
- "stalux-sidebar-container": "s4j",
168
- "stalux-sidebar-right": "s4k",
169
- "stalux-site-header": "s4l",
170
- "stalux-site-nav": "s4m",
171
- "stalux-social": "s4n",
172
- "stalux-social-custom-icon": "s4o",
173
- "stalux-social-icon-container": "s4p",
174
- "stalux-stats-site-build-time": "s4q",
175
- "stalux-stats-site-stats": "s4r",
176
- "stalux-stats-stats-separator": "s4s",
177
- "stalux-tag-back-link": "s4t",
178
- "stalux-tag-category-icon": "s4u",
179
- "stalux-tag-category-name": "s4v",
180
- "stalux-tag-header": "s4w",
181
- "stalux-tag-page-description": "s4x",
182
- "stalux-tag-page-title": "s4y",
183
- "stalux-theme-info": "s4z",
184
- "stalux-toc-active": "s50",
185
- "stalux-toc-depth-1": "s51",
186
- "stalux-toc-depth-2": "s52",
187
- "stalux-toc-depth-3": "s53",
188
- "stalux-toc-depth-4": "s54",
189
- "stalux-toc-depth-5": "s55",
190
- "stalux-toc-depth-6": "s56",
191
- "stalux-toc-empty": "s57",
192
- "stalux-toc-item": "s58",
193
- "stalux-toc-list": "s59",
194
- "stalux-toc-title": "s5a",
195
- "stalux-typewriter": "s5b",
196
- "stalux-typewriter-accessible": "s5c",
197
- "stalux-typewriter-reserve": "s5d",
198
- "stalux-typewriter-text": "s5e",
199
- "stalux-u-flex": "s5f",
200
- "stalux-u-flex-col": "s5g",
201
- "stalux-u-flex-wrap": "s5h",
202
- "stalux-u-items-center": "s5i",
203
- "stalux-u-justify-center": "s5j",
204
- "stalux-u-min-w-0": "s5k",
205
- "stalux-u-text-center": "s5l",
206
- "stalux-u-w-full": "s5m",
207
- "stalux-weather": "s5n",
208
- "stalux-weather-footer": "s5o",
209
- "stalux-weather-heading": "s5p",
210
- "stalux-weather-location": "s5q",
211
- "stalux-weather-main": "s5r",
212
- "stalux-weather-source": "s5s",
213
- "stalux-weather-status": "s5t",
214
- "stalux-word-body": "s5u",
215
- "stalux-word-card": "s5v",
216
- "stalux-word-date": "s5w",
217
- "stalux-word-footer": "s5x",
218
- "stalux-word-list-item": "s5y",
219
- "stalux-word-list-list": "s5z",
220
- "stalux-word-mark": "s60",
221
- "stalux-word-permalink": "s61",
222
- "stalux-word-source-date": "s62",
223
- "stalux-word-source-link": "s63",
224
- "stalux-word-source-meta": "s64",
225
- "stalux-word-source-text": "s65"
51
+ "stalux-badge-group-item": "s1b",
52
+ "stalux-badge-group-items": "s1c",
53
+ "stalux-badge-group-summary": "s1d",
54
+ "stalux-badge-group-title": "s1e",
55
+ "stalux-badges": "s1f",
56
+ "stalux-badges-wrapper": "s1g",
57
+ "stalux-beian-beian-info": "s1h",
58
+ "stalux-beian-public-security-beian": "s1i",
59
+ "stalux-byline-author-bio": "s1j",
60
+ "stalux-byline-author-card": "s1k",
61
+ "stalux-byline-author-section": "s1l",
62
+ "stalux-byline-sidebar-container": "s1m",
63
+ "stalux-card-post-categories": "s1n",
64
+ "stalux-card-post-category": "s1o",
65
+ "stalux-card-post-cover": "s1p",
66
+ "stalux-card-post-date": "s1q",
67
+ "stalux-card-post-description": "s1r",
68
+ "stalux-card-post-meta": "s1s",
69
+ "stalux-card-post-tag": "s1t",
70
+ "stalux-card-post-tags": "s1u",
71
+ "stalux-card-post-title": "s1v",
72
+ "stalux-card-post-updated": "s1w",
73
+ "stalux-card-read-more": "s1x",
74
+ "stalux-card-time": "s1y",
75
+ "stalux-categories": "s1z",
76
+ "stalux-category-card": "s20",
77
+ "stalux-category-content": "s21",
78
+ "stalux-category-icon": "s22",
79
+ "stalux-category-shell": "s23",
80
+ "stalux-categoryheader": "s24",
81
+ "stalux-cloud-canvas": "s25",
82
+ "stalux-cloud-canvas-frame": "s26",
83
+ "stalux-cloud-cards": "s27",
84
+ "stalux-cloud-no-tags": "s28",
85
+ "stalux-cloud-tag-card": "s29",
86
+ "stalux-cloud-tag-count": "s2a",
87
+ "stalux-cloud-tag-group": "s2b",
88
+ "stalux-cloud-tag-name": "s2c",
89
+ "stalux-copyright": "s2d",
90
+ "stalux-footer": "s2e",
91
+ "stalux-footer-content": "s2f",
92
+ "stalux-home-body": "s2g",
93
+ "stalux-home-title": "s2h",
94
+ "stalux-license-author": "s2i",
95
+ "stalux-license-box": "s2j",
96
+ "stalux-license-content": "s2k",
97
+ "stalux-license-icon": "s2l",
98
+ "stalux-license-license": "s2m",
99
+ "stalux-license-title": "s2n",
100
+ "stalux-license-url": "s2o",
101
+ "stalux-license-watermark": "s2p",
102
+ "stalux-link-card": "s2q",
103
+ "stalux-link-card-avatar": "s2r",
104
+ "stalux-link-card-content": "s2s",
105
+ "stalux-link-card-description": "s2t",
106
+ "stalux-link-card-title": "s2u",
107
+ "stalux-link-list-item": "s2v",
108
+ "stalux-link-shell": "s2w",
109
+ "stalux-links": "s2x",
110
+ "stalux-main": "s2y",
111
+ "stalux-nav-container": "s2z",
112
+ "stalux-nav-item": "s30",
113
+ "stalux-nav-link": "s31",
114
+ "stalux-nav-list": "s32",
115
+ "stalux-nav-overlay": "s33",
116
+ "stalux-nav-scroll-btn": "s34",
117
+ "stalux-nav-text": "s35",
118
+ "stalux-nav-toggle": "s36",
119
+ "stalux-page-description": "s37",
120
+ "stalux-page-title": "s38",
121
+ "stalux-pagination": "s39",
122
+ "stalux-pagination-arrow": "s3a",
123
+ "stalux-pagination-content": "s3b",
124
+ "stalux-pagination-disabled": "s3c",
125
+ "stalux-pagination-inner": "s3d",
126
+ "stalux-pagination-item": "s3e",
127
+ "stalux-pagination-label": "s3f",
128
+ "stalux-pagination-link": "s3g",
129
+ "stalux-pagination-next-post": "s3h",
130
+ "stalux-pagination-prev-post": "s3i",
131
+ "stalux-pagination-title": "s3j",
132
+ "stalux-post-article-footer": "s3k",
133
+ "stalux-post-article-header": "s3l",
134
+ "stalux-post-body": "s3m",
135
+ "stalux-post-card": "s3n",
136
+ "stalux-post-card-shell": "s3o",
137
+ "stalux-post-footer-content": "s3p",
138
+ "stalux-post-layout": "s3q",
139
+ "stalux-post-list-container": "s3r",
140
+ "stalux-post-meta-item": "s3s",
141
+ "stalux-post-meta-row": "s3t",
142
+ "stalux-post-metadata": "s3u",
143
+ "stalux-post-page": "s3v",
144
+ "stalux-post-page-stats": "s3w",
145
+ "stalux-post-reading-time": "s3x",
146
+ "stalux-post-source-link": "s3y",
147
+ "stalux-post-source-link-row": "s3z",
148
+ "stalux-post-taxonomy-container": "s40",
149
+ "stalux-post-taxonomy-empty": "s41",
150
+ "stalux-post-taxonomy-item-column": "s42",
151
+ "stalux-post-taxonomy-item-pill": "s43",
152
+ "stalux-post-taxonomy-list": "s44",
153
+ "stalux-post-taxonomy-list-column": "s45",
154
+ "stalux-post-taxonomy-list-wrap": "s46",
155
+ "stalux-post-taxonomy-title": "s47",
156
+ "stalux-post-title": "s48",
157
+ "stalux-prose": "s49",
158
+ "stalux-random-container": "s4a",
159
+ "stalux-random-error": "s4b",
160
+ "stalux-random-header": "s4c",
161
+ "stalux-random-list": "s4d",
162
+ "stalux-random-loading": "s4e",
163
+ "stalux-random-no-more": "s4f",
164
+ "stalux-random-refresh": "s4g",
165
+ "stalux-random-rotating": "s4h",
166
+ "stalux-random-title": "s4i",
167
+ "stalux-root": "s4j",
168
+ "stalux-sidebar": "s4k",
169
+ "stalux-sidebar-container": "s4l",
170
+ "stalux-sidebar-right": "s4m",
171
+ "stalux-site-header": "s4n",
172
+ "stalux-site-nav": "s4o",
173
+ "stalux-social": "s4p",
174
+ "stalux-social-custom-icon": "s4q",
175
+ "stalux-social-icon-container": "s4r",
176
+ "stalux-stats-site-build-time": "s4s",
177
+ "stalux-stats-site-stats": "s4t",
178
+ "stalux-stats-stats-separator": "s4u",
179
+ "stalux-tag-back-link": "s4v",
180
+ "stalux-tag-category-icon": "s4w",
181
+ "stalux-tag-category-name": "s4x",
182
+ "stalux-tag-header": "s4y",
183
+ "stalux-tag-page-description": "s4z",
184
+ "stalux-tag-page-title": "s50",
185
+ "stalux-theme-info": "s51",
186
+ "stalux-toc-active": "s52",
187
+ "stalux-toc-depth-1": "s53",
188
+ "stalux-toc-depth-2": "s54",
189
+ "stalux-toc-depth-3": "s55",
190
+ "stalux-toc-depth-4": "s56",
191
+ "stalux-toc-depth-5": "s57",
192
+ "stalux-toc-depth-6": "s58",
193
+ "stalux-toc-empty": "s59",
194
+ "stalux-toc-item": "s5a",
195
+ "stalux-toc-list": "s5b",
196
+ "stalux-toc-title": "s5c",
197
+ "stalux-typewriter": "s5d",
198
+ "stalux-typewriter-accessible": "s5e",
199
+ "stalux-typewriter-reserve": "s5f",
200
+ "stalux-typewriter-text": "s5g",
201
+ "stalux-u-flex": "s5h",
202
+ "stalux-u-flex-col": "s5i",
203
+ "stalux-u-flex-wrap": "s5j",
204
+ "stalux-u-items-center": "s5k",
205
+ "stalux-u-justify-center": "s5l",
206
+ "stalux-u-min-w-0": "s5m",
207
+ "stalux-u-text-center": "s5n",
208
+ "stalux-u-w-full": "s5o",
209
+ "stalux-weather": "s5p",
210
+ "stalux-weather-footer": "s5q",
211
+ "stalux-weather-heading": "s5r",
212
+ "stalux-weather-location": "s5s",
213
+ "stalux-weather-main": "s5t",
214
+ "stalux-weather-source": "s5u",
215
+ "stalux-weather-status": "s5v",
216
+ "stalux-word-body": "s5w",
217
+ "stalux-word-card": "s5x",
218
+ "stalux-word-date": "s5y",
219
+ "stalux-word-footer": "s5z",
220
+ "stalux-word-list-item": "s60",
221
+ "stalux-word-list-list": "s61",
222
+ "stalux-word-mark": "s62",
223
+ "stalux-word-permalink": "s63",
224
+ "stalux-word-source-date": "s64",
225
+ "stalux-word-source-link": "s65",
226
+ "stalux-word-source-meta": "s66",
227
+ "stalux-word-source-text": "s67"
226
228
  },
227
229
  "variables": {
228
230
  "--accent-20p": "--s0",
@@ -287,50 +289,53 @@ export const styleNames: { classes: Record<string, string>; variables: Record<st
287
289
  "--stalux-bg-color": "--s1n",
288
290
  "--stalux-bg-filter": "--s1o",
289
291
  "--stalux-nav-offset": "--s1p",
290
- "--stalux-site-header-height": "--s1q",
291
- "--stalux-site-header-min-height": "--s1r",
292
- "--stalux-text-shadow": "--s1s",
293
- "--surface-glass": "--s1t",
294
- "--surface-glass-shadow": "--s1u",
295
- "--tag-bg": "--s1v",
296
- "--tag-bg-hover": "--s1w",
297
- "--tl-line": "--s1x",
298
- "--tl-pad": "--s1y",
299
- "--transition-fast": "--s1z",
300
- "--transition-medium": "--s20",
301
- "--transition-normal": "--s21",
302
- "--transition-slow": "--s22",
303
- "--transition-slower": "--s23",
304
- "--transition-slowest": "--s24",
305
- "--un-rotate": "--s25",
306
- "--un-rotate-x": "--s26",
307
- "--un-rotate-y": "--s27",
308
- "--un-rotate-z": "--s28",
309
- "--un-scale-x": "--s29",
310
- "--un-scale-y": "--s2a",
311
- "--un-scale-z": "--s2b",
312
- "--un-skew-x": "--s2c",
313
- "--un-skew-y": "--s2d",
314
- "--un-translate-x": "--s2e",
315
- "--un-translate-y": "--s2f",
316
- "--un-translate-z": "--s2g",
317
- "--updated-bg": "--s2h",
318
- "--updated-border": "--s2i",
319
- "--white-05p": "--s2j",
320
- "--white-10p": "--s2k",
321
- "--white-15p": "--s2l",
322
- "--white-20p": "--s2m",
323
- "--white-30p": "--s2n",
324
- "--white-50p": "--s2o",
325
- "--white-60p": "--s2p",
326
- "--white-70p": "--s2q",
327
- "--white-75p": "--s2r",
328
- "--white-78p": "--s2s",
329
- "--white-80p": "--s2t",
330
- "--white-85p": "--s2u",
331
- "--white-90p": "--s2v",
332
- "--white-95p": "--s2w",
333
- "--white-full": "--s2x"
292
+ "--stalux-scrollbar-thumb": "--s1q",
293
+ "--stalux-scrollbar-thumb-hover": "--s1r",
294
+ "--stalux-scrollbar-track": "--s1s",
295
+ "--stalux-site-header-height": "--s1t",
296
+ "--stalux-site-header-min-height": "--s1u",
297
+ "--stalux-text-shadow": "--s1v",
298
+ "--surface-glass": "--s1w",
299
+ "--surface-glass-shadow": "--s1x",
300
+ "--tag-bg": "--s1y",
301
+ "--tag-bg-hover": "--s1z",
302
+ "--tl-line": "--s20",
303
+ "--tl-pad": "--s21",
304
+ "--transition-fast": "--s22",
305
+ "--transition-medium": "--s23",
306
+ "--transition-normal": "--s24",
307
+ "--transition-slow": "--s25",
308
+ "--transition-slower": "--s26",
309
+ "--transition-slowest": "--s27",
310
+ "--un-rotate": "--s28",
311
+ "--un-rotate-x": "--s29",
312
+ "--un-rotate-y": "--s2a",
313
+ "--un-rotate-z": "--s2b",
314
+ "--un-scale-x": "--s2c",
315
+ "--un-scale-y": "--s2d",
316
+ "--un-scale-z": "--s2e",
317
+ "--un-skew-x": "--s2f",
318
+ "--un-skew-y": "--s2g",
319
+ "--un-translate-x": "--s2h",
320
+ "--un-translate-y": "--s2i",
321
+ "--un-translate-z": "--s2j",
322
+ "--updated-bg": "--s2k",
323
+ "--updated-border": "--s2l",
324
+ "--white-05p": "--s2m",
325
+ "--white-10p": "--s2n",
326
+ "--white-15p": "--s2o",
327
+ "--white-20p": "--s2p",
328
+ "--white-30p": "--s2q",
329
+ "--white-50p": "--s2r",
330
+ "--white-60p": "--s2s",
331
+ "--white-70p": "--s2t",
332
+ "--white-75p": "--s2u",
333
+ "--white-78p": "--s2v",
334
+ "--white-80p": "--s2w",
335
+ "--white-85p": "--s2x",
336
+ "--white-90p": "--s2y",
337
+ "--white-95p": "--s2z",
338
+ "--white-full": "--s30"
334
339
  },
335
340
  "animations": {
336
341
  "spin": "k0",
@@ -14,7 +14,9 @@ const { t } = createTranslator(siteConfig.lang || "zh-CN");
14
14
  title={`${t("page404.title")} | ${siteConfig.title}`}
15
15
  description={t("page404.description")}
16
16
  >
17
- <div
17
+ <!-- Modern Web Guidance (html): 404 提示是一个内容分组 => <section>;
18
+ 内层保留一个纯排版容器(居中 + motion-region),没有语义对等元素。 -->
19
+ <section
18
20
  class="stalux-404-error-container stalux-u-flex stalux-u-items-center stalux-u-justify-center stalux-u-text-center"
19
21
  data-pagefind-ignore
20
22
  >
@@ -45,7 +47,7 @@ const { t } = createTranslator(siteConfig.lang || "zh-CN");
45
47
  >{t("page404.backHome")}</a
46
48
  >
47
49
  </div>
48
- </div>
50
+ </section>
49
51
 
50
52
  <script src="../scripts/countdown.ts"></script>
51
53
  </Stalux>
@@ -28,8 +28,8 @@ const author = authorConfig.name;
28
28
  title={`${aboutPage.data.title} | ${siteConfig.title}`}
29
29
  description={aboutPage.data.description}
30
30
  >
31
- <div style="height: 3em;"></div>
32
- <div style="max-width: 900px; margin: 2rem auto; padding: 0 1rem;">
31
+ <!-- Modern Web Guidance (html): 顶部留白并入容器自身的 margin,不再用空占位 <div>。 -->
32
+ <section style="max-width: 900px; margin: 5rem auto 2rem; padding: 0 1rem;">
33
33
  <PostContent
34
34
  title={aboutPage.data.title}
35
35
  transitionName="about-content"
@@ -54,5 +54,5 @@ const author = authorConfig.name;
54
54
  />
55
55
  )}
56
56
  </PostContent>
57
- </div>
57
+ </section>
58
58
  </Stalux>
@@ -32,8 +32,8 @@ const props = Astro.props as Props;
32
32
  count: props.count,
33
33
  })}
34
34
  >
35
- <div id="swup-taxonomy">
35
+ <section id="swup-taxonomy">
36
36
  <TagHeader type={t("taxonomy.category")} name={props.category} count={props.count} />
37
37
  <PostList posts={props.posts} />
38
- </div>
38
+ </section>
39
39
  </Stalux>