@xingwangzhe/stalux 1.29.8 → 1.30.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 (114) hide show
  1. package/README.md +5 -1
  2. package/package.json +10 -6
  3. package/src/components/stalux/archives/archivesList.astro +19 -15
  4. package/src/components/stalux/archives/toArchive.astro +2 -2
  5. package/src/components/stalux/categories/categoriesCard.astro +8 -7
  6. package/src/components/stalux/categories/categoriesList.astro +3 -2
  7. package/src/components/stalux/common/author.astro +3 -3
  8. package/src/components/stalux/common/date.astro +3 -4
  9. package/src/components/stalux/common/textType.astro +2 -2
  10. package/src/components/stalux/footer/FooterBadges.astro +9 -97
  11. package/src/components/stalux/footer/FooterBeian.astro +2 -44
  12. package/src/components/stalux/footer/FooterCopyright.astro +1 -16
  13. package/src/components/stalux/footer/FooterStats.astro +4 -25
  14. package/src/components/stalux/footer/FooterThemeInfo.astro +1 -28
  15. package/src/components/stalux/layout/footer.astro +3 -3
  16. package/src/components/stalux/layout/listPage.astro +3 -3
  17. package/src/components/stalux/layout/navs.astro +13 -13
  18. package/src/components/stalux/links/linkCard.astro +7 -6
  19. package/src/components/stalux/links/linkList.astro +4 -3
  20. package/src/components/stalux/links/socialMedia.astro +2 -2
  21. package/src/components/stalux/posts/PostTaxonomy.astro +13 -8
  22. package/src/components/stalux/posts/postAuthor.astro +6 -5
  23. package/src/components/stalux/posts/postCC.astro +10 -9
  24. package/src/components/stalux/posts/postCard.astro +15 -15
  25. package/src/components/stalux/posts/postContent.astro +22 -14
  26. package/src/components/stalux/posts/postLeft.astro +5 -4
  27. package/src/components/stalux/posts/postList.astro +2 -3
  28. package/src/components/stalux/posts/postNavigation.astro +24 -23
  29. package/src/components/stalux/posts/postRight.astro +7 -6
  30. package/src/components/stalux/posts/postToc.astro +7 -19
  31. package/src/components/stalux/posts/randomPost.astro +8 -7
  32. package/src/components/stalux/tags/tagHeader.astro +10 -6
  33. package/src/components/stalux/tags/tagsCloud.astro +10 -9
  34. package/src/components/stalux/words/wordCard.astro +11 -10
  35. package/src/components/stalux/words/wordList.astro +4 -3
  36. package/src/index.ts +5 -4
  37. package/src/internal/runtime-cache-key.ts +13 -1
  38. package/src/layouts/PostLayout.astro +3 -4
  39. package/src/layouts/Stalux.astro +0 -17
  40. package/src/pages/404.astro +6 -77
  41. package/src/pages/archives.astro +3 -3
  42. package/src/pages/categories/index.astro +3 -3
  43. package/src/pages/index.astro +4 -18
  44. package/src/pages/tags/index.astro +3 -3
  45. package/src/pages/words.astro +3 -3
  46. package/src/scripts/waline-client.ts +1 -1
  47. package/src/styles/archives.css +2 -0
  48. package/src/styles/article.css +2 -0
  49. package/src/styles/categories.css +2 -0
  50. package/src/styles/components/posts/waline.css +19 -23
  51. package/src/styles/generated-archives.css +3 -0
  52. package/src/styles/generated-article.css +3 -0
  53. package/src/styles/generated-categories.css +3 -0
  54. package/src/styles/generated-links.css +3 -0
  55. package/src/styles/generated-prose.css +2 -0
  56. package/src/styles/generated-tags.css +3 -0
  57. package/src/styles/generated-waline.css +2 -0
  58. package/src/styles/generated-words.css +3 -0
  59. package/src/styles/generated.css +3 -0
  60. package/src/styles/links.css +2 -0
  61. package/src/styles/prose.css +3 -0
  62. package/src/styles/tags.css +2 -0
  63. package/src/styles/theme/archives.css +138 -0
  64. package/src/styles/theme/article.css +562 -0
  65. package/src/styles/theme/base.css +290 -0
  66. package/src/styles/theme/categories.css +54 -0
  67. package/src/styles/theme/common.css +79 -0
  68. package/src/styles/theme/footer.css +26 -0
  69. package/src/styles/theme/inline.css +153 -0
  70. package/src/styles/theme/layout.css +143 -0
  71. package/src/styles/theme/link-cards.css +114 -0
  72. package/src/styles/theme/links.css +69 -0
  73. package/src/styles/theme/pages.css +35 -0
  74. package/src/styles/theme/posts.css +79 -0
  75. package/src/styles/theme/prose.css +478 -0
  76. package/src/styles/theme/tags.css +130 -0
  77. package/src/styles/theme/words.css +84 -0
  78. package/src/styles/theme.css +12 -0
  79. package/src/styles/words.css +2 -0
  80. package/src/styles/base/init.css +0 -287
  81. package/src/styles/components/archives/archivesList.module.css +0 -203
  82. package/src/styles/components/archives/toArchive.module.css +0 -3
  83. package/src/styles/components/categories/categoriesCard.module.css +0 -88
  84. package/src/styles/components/categories/categoriesList.module.css +0 -23
  85. package/src/styles/components/common/author.module.css +0 -72
  86. package/src/styles/components/common/date.module.css +0 -15
  87. package/src/styles/components/common/textType.module.css +0 -10
  88. package/src/styles/components/footer/footer.module.css +0 -44
  89. package/src/styles/components/layout/navs.module.css +0 -261
  90. package/src/styles/components/links/linkCard.module.css +0 -116
  91. package/src/styles/components/links/linkList.module.css +0 -54
  92. package/src/styles/components/links/socialLinks.module.css +0 -80
  93. package/src/styles/components/markdown.css +0 -523
  94. package/src/styles/components/posts/postAuthor.module.css +0 -31
  95. package/src/styles/components/posts/postCC.module.css +0 -138
  96. package/src/styles/components/posts/postCard.module.css +0 -167
  97. package/src/styles/components/posts/postContent.module.css +0 -238
  98. package/src/styles/components/posts/postLayout.module.css +0 -138
  99. package/src/styles/components/posts/postList.module.css +0 -25
  100. package/src/styles/components/posts/postNavigation.module.css +0 -186
  101. package/src/styles/components/posts/postSidebar.module.css +0 -59
  102. package/src/styles/components/posts/postTaxonomy.module.css +0 -87
  103. package/src/styles/components/posts/postToc.module.css +0 -74
  104. package/src/styles/components/posts/randomPost.module.css +0 -131
  105. package/src/styles/components/tags/tagHeader.module.css +0 -44
  106. package/src/styles/components/tags/tagsCloud.module.css +0 -155
  107. package/src/styles/components/words/wordCard.module.css +0 -136
  108. package/src/styles/components/words/wordList.module.css +0 -26
  109. package/src/styles/pages/archives.module.css +0 -22
  110. package/src/styles/pages/categories.module.css +0 -17
  111. package/src/styles/pages/home.module.css +0 -61
  112. package/src/styles/pages/listPage.module.css +0 -16
  113. package/src/styles/pages/tags.module.css +0 -16
  114. package/src/styles/pages/words.module.css +0 -16
@@ -1,167 +0,0 @@
1
- .post {
2
- display: block;
3
- height: 100%;
4
- color: inherit;
5
- text-decoration: none;
6
- }
7
-
8
- .postTitle {
9
- margin: 0;
10
- line-height: 1.35;
11
- overflow-wrap: anywhere;
12
- }
13
-
14
- .postTitle a {
15
- color: inherit;
16
- text-decoration: none;
17
- }
18
-
19
- .postDescription {
20
- color: var(--white-70p);
21
- line-height: 1.6;
22
- min-width: 0;
23
- overflow-wrap: anywhere;
24
- }
25
-
26
- .postContainer > a:first-child {
27
- display: block;
28
- width: 100%;
29
- min-width: 0;
30
- }
31
-
32
- .postContainer {
33
- width: 100%;
34
- min-width: 0;
35
- box-sizing: border-box;
36
- background-color: var(--card-bg);
37
- border-radius: var(--radius-lg);
38
- box-shadow: var(--card-box-shadow);
39
- padding: var(--space-lg);
40
- transition: transform 220ms cubic-bezier(0.22, 0.72, 0.22, 1);
41
- cursor: pointer;
42
- display: flex;
43
- flex-direction: column;
44
- height: 100%;
45
- gap: var(--space-lg);
46
- }
47
-
48
- /* 封面图片 */
49
- .postCover {
50
- width: 100%;
51
- min-width: 0;
52
- height: 180px;
53
- border-radius: var(--radius-md);
54
- overflow: hidden;
55
- flex-shrink: 0;
56
- margin-bottom: 0.5rem;
57
- }
58
-
59
- .postCover img {
60
- width: 100%;
61
- max-width: 100%;
62
- height: 100%;
63
- object-fit: cover;
64
- transition: transform var(--transition-fast) ease;
65
- }
66
-
67
- .postContainer:is(:hover, :focus-within) .postCover img {
68
- transform: scale(1.05);
69
- }
70
-
71
- /* 文章元数据布局 */
72
- .postMeta {
73
- display: flex;
74
- flex-direction: column;
75
- gap: 0.6rem;
76
- }
77
-
78
- /* 卡片悬停和焦点效果 */
79
- .postContainer:is(:hover, :focus-within) {
80
- transform: translateY(-3px);
81
- box-shadow: var(--card-box-shadow-hover);
82
- }
83
-
84
- .time {
85
- display: inline-flex;
86
- gap: 0.45rem;
87
- align-items: center;
88
- flex-wrap: wrap;
89
- }
90
-
91
- /* 日期和更新标签 */
92
- .postDate,
93
- .postUpdated {
94
- display: inline-flex;
95
- align-items: center;
96
- gap: 0.35rem;
97
- width: fit-content;
98
- padding: 0.28rem 0.6rem;
99
- border-radius: 10px;
100
- font-size: 0.9rem;
101
- line-height: 1.1;
102
- color: #e8f2ff;
103
- }
104
- .postDate {
105
- background: var(--date-bg);
106
- border: 1px solid var(--date-border);
107
- color: #e8f2ff;
108
- }
109
- .postUpdated {
110
- background: var(--updated-bg);
111
- border: 1px solid var(--updated-border);
112
- color: #fff7de;
113
- }
114
-
115
- /* 标签:胶囊形状 */
116
- .postTags {
117
- display: flex;
118
- gap: 0.4rem;
119
- flex-wrap: wrap;
120
- align-items: center;
121
- }
122
- .postTags a {
123
- text-decoration: none;
124
- }
125
- .postTag {
126
- display: inline-block;
127
- padding: 0.22rem 0.7rem;
128
- border-radius: 9999px;
129
- background: var(--tag-bg);
130
- color: #fff;
131
- font-size: 0.85rem;
132
- line-height: 1;
133
- }
134
- .postTag:focus,
135
- .postTag:hover {
136
- background: var(--tag-bg-hover);
137
- }
138
-
139
- /* 分类:矩形块 */
140
- .postCategories {
141
- display: flex;
142
- gap: 0.4rem;
143
- flex-wrap: wrap;
144
- align-items: center;
145
- }
146
- .postCategories a {
147
- text-decoration: none;
148
- }
149
- .postCategory {
150
- display: inline-block;
151
- padding: 0.18rem 0.5rem;
152
- border-radius: 6px;
153
- background: var(--category-bg);
154
- color: #fff;
155
- font-size: 0.84rem;
156
- line-height: 1;
157
- }
158
- .postCategory:focus,
159
- .postCategory:hover {
160
- background: var(--category-bg-hover);
161
- }
162
-
163
- /* 阅读更多链接对齐 */
164
- .readMore {
165
- margin-top: 0.6rem;
166
- align-self: flex-start;
167
- }
@@ -1,238 +0,0 @@
1
- /* 文章内容 - 主要文章区域 */
2
- /* 注意:正文内容的排版样式(标题、段落、代码块、表格、引用块等)
3
- 统一在 src/styles/components/markdown.css 中管理。
4
- 本文件只负责文章区域的布局容器样式。 */
5
-
6
- .articleContent {
7
- flex: 1;
8
- width: 100%;
9
- min-height: 100vh;
10
- display: flex;
11
- flex-direction: column;
12
- box-sizing: border-box;
13
- background: var(--surface-glass);
14
- border-radius: 18px;
15
- padding: clamp(1.25rem, 3vw, 2.5rem);
16
- box-shadow: var(--surface-glass-shadow);
17
- }
18
-
19
- /* 文章标题 */
20
- .articleHeader {
21
- margin-bottom: 3rem;
22
- padding-bottom: 2rem;
23
- border-bottom: 1px solid var(--white-10p);
24
- animation: contentReveal 220ms ease 360ms both;
25
- }
26
-
27
- .title {
28
- font-size: 2.5rem;
29
- font-weight: 700;
30
- color: var(--white-full);
31
- margin: 0 0 1.5rem;
32
- line-height: 1.2;
33
- text-align: center;
34
- word-break: break-word;
35
- text-shadow: var(--stalux-text-shadow);
36
- }
37
-
38
- .metadata {
39
- display: flex;
40
- flex-wrap: wrap;
41
- justify-content: center;
42
- gap: 1.5rem;
43
- font-size: 0.95rem;
44
- color: #ffffffb3;
45
- }
46
-
47
- .metaItem {
48
- display: inline-flex;
49
- align-items: center;
50
- gap: 0.5rem;
51
- transition: color var(--transition-fast) ease;
52
- }
53
-
54
- /* 文章阅读量统计 */
55
- .pageStats {
56
- margin-top: 1rem;
57
- padding-top: 0.8rem;
58
- border-top: 1px solid var(--white-10p);
59
- font-size: 0.9rem;
60
- color: #ffffffb3;
61
- display: flex;
62
- justify-content: center;
63
- align-items: center;
64
- gap: 1rem;
65
- }
66
-
67
- .pageStats span {
68
- display: inline-flex;
69
- align-items: center;
70
- gap: 0.3rem;
71
- }
72
-
73
- .readingTime {
74
- display: inline-flex;
75
- align-items: center;
76
- gap: 0.3rem;
77
- }
78
-
79
- #vercount_value_page_pv {
80
- font-weight: 600;
81
- color: #ffffffb3;
82
- }
83
-
84
- #vercount_container_page_pv {
85
- transition: opacity 0.3s ease;
86
- }
87
-
88
- /* 阅读量单独一行并居中 */
89
- .metaRow {
90
- flex-basis: 100%;
91
- display: flex;
92
- justify-content: center;
93
- }
94
-
95
- /* 文章身体 */
96
- .body {
97
- flex: 1;
98
- /* 限制 Markdown 内容最大宽度,居中显示,避免侵占左右侧栏 */
99
- width: min(900px, 100%);
100
- max-width: 100%;
101
- margin: 0 auto;
102
- box-sizing: border-box;
103
- padding: 0 1rem 2rem;
104
- animation: contentReveal 220ms ease 360ms both;
105
- }
106
-
107
- /* “查看 Markdown 原文”按钮 */
108
- .sourceLinkRow {
109
- margin-top: 1.2rem;
110
- display: flex;
111
- justify-content: center;
112
- }
113
-
114
- .sourceLink {
115
- display: inline-flex;
116
- align-items: center;
117
- gap: 0.4rem;
118
- padding: 0.5rem 1.1rem;
119
- font-size: 0.85rem;
120
- font-weight: 500;
121
- color: var(--white-full);
122
- text-decoration: none;
123
- background: var(--white-10p);
124
- border-top: 1px solid var(--white-20p);
125
- border-right: 1px solid var(--white-20p);
126
- border-left: 1px solid var(--white-20p);
127
- border-bottom: 0;
128
- border-radius: var(--radius-full, 999px);
129
- transition:
130
- background var(--transition-fast) ease,
131
- transform var(--transition-fast) ease;
132
- }
133
-
134
- .sourceLink:hover,
135
- .sourceLink:focus,
136
- .sourceLink:active {
137
- background: var(--accent, #ffffff22);
138
- border-top-color: var(--accent, #ffffff44);
139
- border-right-color: var(--accent, #ffffff44);
140
- border-left-color: var(--accent, #ffffff44);
141
- transform: translateY(-1px);
142
- text-decoration: none;
143
- }
144
-
145
- /* 覆盖全局 a::after 伪元素下划线动画 */
146
- .sourceLink::after {
147
- display: none !important;
148
- }
149
-
150
- /* 文章页脚 */
151
- .articleFooter {
152
- margin-top: 3rem;
153
- padding-top: 2rem;
154
- border-top: 1px solid var(--white-10p);
155
- animation: contentReveal 220ms ease 360ms both;
156
- }
157
-
158
- @keyframes contentReveal {
159
- from {
160
- opacity: 0;
161
- }
162
- to {
163
- opacity: 1;
164
- }
165
- }
166
-
167
- .footerContent {
168
- display: flex;
169
- flex-direction: column;
170
- gap: var(--space-lg);
171
- }
172
-
173
- /* ---------- 响应式设计 ---------- */
174
-
175
- @media (max-width: 1024px) {
176
- .title {
177
- font-size: 2rem;
178
- }
179
-
180
- .metadata {
181
- gap: 1rem;
182
- }
183
- }
184
-
185
- @media (max-width: 768px) {
186
- .articleContent {
187
- margin: 0;
188
- width: 100%;
189
- padding: 0;
190
- box-sizing: border-box;
191
- background: transparent;
192
- box-shadow: none;
193
- }
194
-
195
- .body {
196
- width: 100%;
197
- margin: 0;
198
- padding: 0 0.75rem;
199
- }
200
-
201
- .articleHeader {
202
- margin-bottom: 2rem;
203
- padding: 1rem 1rem 0;
204
- }
205
-
206
- .title {
207
- font-size: 1.75rem;
208
- }
209
-
210
- .metadata {
211
- flex-direction: column;
212
- gap: 0.75rem;
213
- font-size: 0.85rem;
214
- }
215
-
216
- .articleFooter {
217
- margin-top: 2rem;
218
- padding-top: 1.5rem;
219
- }
220
-
221
- /* 响应式设计 */
222
- .pageStats {
223
- font-size: 0.85rem;
224
- margin-top: 0.8rem;
225
- padding-top: 0.6rem;
226
- }
227
- }
228
-
229
- @keyframes fadeInUp {
230
- from {
231
- opacity: 0;
232
- transform: translateY(20px);
233
- }
234
- to {
235
- opacity: 1;
236
- transform: translateY(0);
237
- }
238
- }
@@ -1,138 +0,0 @@
1
- /* 文章布局 - 文章页面的三列布局 */
2
-
3
- .postLayout {
4
- width: 100%;
5
- min-height: 100vh;
6
- display: flex;
7
- flex-direction: column;
8
- }
9
-
10
- .container {
11
- flex: 1;
12
- display: grid;
13
- grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) minmax(220px, 250px);
14
- gap: clamp(1.5rem, 3vw, 3.5rem);
15
- max-width: 1680px;
16
- margin: 0 auto;
17
- padding: 1.5rem 1rem;
18
- width: 100%;
19
- box-sizing: border-box;
20
- }
21
-
22
- /* 三列布局间距调整 */
23
- .container > :nth-child(1) {
24
- /* 左侧边栏 */
25
- margin: 0;
26
- }
27
-
28
- .container > :nth-child(2) {
29
- /* 中间内容 */
30
- min-width: 0;
31
- /* 防止长内容溢出 */
32
- margin: 0;
33
- }
34
-
35
- .container > :nth-child(3) {
36
- /* 右侧边栏 */
37
- margin: 0;
38
- }
39
-
40
- /* 响应式设计 */
41
-
42
- /* 大屏幕 */
43
- @media (min-width: 1600px) {
44
- .container {
45
- grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(240px, 280px);
46
- gap: 4rem;
47
- padding: 2rem 1.5rem;
48
- }
49
- }
50
-
51
- /* 中大屏幕 */
52
- @media (max-width: 1400px) {
53
- .container {
54
- grid-template-columns: 260px 1fr 260px;
55
- gap: 3.5rem;
56
- padding: 1.5rem 1rem;
57
- }
58
- }
59
-
60
- /* 中屏幕 - 侧栏隐藏后改为单列 */
61
- @media (max-width: 1200px) {
62
- .container {
63
- grid-template-columns: 1fr;
64
- gap: 2rem;
65
- padding: 1rem 0.75rem;
66
- }
67
- }
68
-
69
- /* 手机端 */
70
- @media (max-width: 768px) {
71
- .postLayout {
72
- padding: 0;
73
- }
74
-
75
- .container {
76
- display: flex;
77
- flex-direction: column;
78
- gap: 2rem;
79
- padding: 0;
80
- margin: 0;
81
- }
82
-
83
- /* 手机端重排:先内容,后侧栏 */
84
- .container > :nth-child(2) {
85
- order: 1;
86
- }
87
-
88
- .container > :nth-child(1) {
89
- order: 2;
90
- }
91
-
92
- .container > :nth-child(3) {
93
- order: 3;
94
- }
95
- }
96
-
97
- /* 小屏幕手机 */
98
- @media (max-width: 480px) {
99
- .container {
100
- gap: 1.25rem;
101
- padding: 0;
102
- }
103
- }
104
-
105
- /* 打印样式 */
106
- @media print {
107
- .container {
108
- grid-template-columns: 1fr;
109
- gap: 2rem;
110
- }
111
-
112
- .container > :nth-child(1),
113
- .container > :nth-child(3) {
114
- display: none;
115
- }
116
- }
117
-
118
- /* 减少动画 */
119
- @media (prefers-reduced-motion: reduce) {
120
- .postLayout * {
121
- animation-duration: 0.01ms !important;
122
- animation-iteration-count: 1 !important;
123
- transition-duration: 0.01ms !important;
124
- }
125
- }
126
-
127
- /* 高对比模式 */
128
- @media (prefers-contrast: more) {
129
- .container {
130
- gap: 2rem;
131
- }
132
- }
133
-
134
- /* 无障碍访问焦点 */
135
- .container :focus-visible {
136
- outline: 2px solid var(--accent-80p);
137
- outline-offset: 2px;
138
- }
@@ -1,25 +0,0 @@
1
- .container {
2
- width: 100%;
3
- height: auto;
4
- margin: 5px 0;
5
- ul {
6
- display: flex;
7
- flex-wrap: wrap;
8
- gap: 2rem;
9
- padding: 0;
10
- margin: 3em;
11
- list-style: none;
12
- }
13
-
14
- @media (max-width: 768px) {
15
- ul {
16
- margin: 1rem;
17
- }
18
- }
19
-
20
- ul > li {
21
- flex: 1 1 min(22rem, 100%);
22
- min-width: 0;
23
- margin: 0;
24
- }
25
- }