@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,44 +0,0 @@
1
- .siteFooter {
2
- width: 100%;
3
- padding: 1.5rem 0;
4
- text-align: center;
5
- margin-top: auto;
6
- font-size: 0.9rem;
7
- color: var(--white-full);
8
- background-color: rgba(0, 0, 0, 0.1);
9
- backdrop-filter: blur(10px);
10
- }
11
-
12
- .footerContent {
13
- display: flex;
14
- flex-direction: column;
15
- gap: 0.8rem;
16
- max-width: 1200px;
17
- margin: 0 auto;
18
- padding: 0 1rem;
19
- }
20
-
21
- /* 响应式设计 */
22
- @media (max-width: 768px) {
23
- .siteFooter {
24
- padding: 1.2rem 0;
25
- font-size: 0.8rem;
26
- }
27
-
28
- .footerContent {
29
- gap: 0.6rem;
30
- padding: 0 0.8rem;
31
- }
32
- }
33
-
34
- @media (max-width: 480px) {
35
- .siteFooter {
36
- padding: 1rem 0;
37
- font-size: 0.8rem;
38
- }
39
-
40
- .footerContent {
41
- gap: 0.6rem;
42
- padding: 0 0.8rem;
43
- }
44
- }
@@ -1,261 +0,0 @@
1
- /* 导航容器 — 相对定位,为滚动按钮提供锚点 */
2
- nav {
3
- width: 100%;
4
- min-width: 0;
5
- max-width: 100%;
6
- }
7
-
8
- .navContainer {
9
- position: relative;
10
- width: 100%;
11
- min-width: 0;
12
- max-width: 100%;
13
- overflow: hidden;
14
- box-sizing: border-box;
15
- }
16
-
17
- .navList {
18
- display: flex;
19
- gap: 2rem;
20
- align-items: center;
21
- justify-content: center;
22
- transform: scale(var(--nav-scale, 1));
23
- transform-origin: center;
24
- min-width: 0;
25
- max-width: 100%;
26
- box-sizing: border-box;
27
- transition: transform 220ms cubic-bezier(0.22, 0.72, 0.22, 1);
28
- /* 当导航项总宽度超过视口时允许横向滚动,防止右侧项被裁剪 */
29
- flex-wrap: wrap;
30
- width: 100%;
31
- overflow: visible;
32
- }
33
-
34
- /* 滚动按钮 — 仅当内容溢出时显示 */
35
- .scrollBtn {
36
- display: none;
37
- position: absolute;
38
- top: 50%;
39
- transform: translateY(-50%);
40
- z-index: 10;
41
- width: 36px;
42
- height: 36px;
43
- border-radius: 50%;
44
- border: none;
45
- background: var(--black-30p);
46
- backdrop-filter: blur(8px);
47
- color: var(--white-full);
48
- cursor: pointer;
49
- align-items: center;
50
- justify-content: center;
51
- opacity: 0;
52
- pointer-events: none;
53
- transition: opacity 0.25s ease;
54
- padding: 0;
55
- box-shadow: var(--shadow-md);
56
- }
57
-
58
- /* 维持既有渲染:未定义的 --black-50p 使 hover 背景解析为透明 */
59
- .scrollBtn:hover {
60
- background: transparent;
61
- }
62
-
63
- .scrollBtn[data-visible] {
64
- opacity: 1;
65
- pointer-events: auto;
66
- }
67
-
68
- .scrollBtn[data-side="left"] {
69
- left: 4px;
70
- }
71
-
72
- .scrollBtn[data-side="right"] {
73
- right: 4px;
74
- }
75
-
76
- /* 导航容器 hover 时显示滚动按钮 */
77
- .navContainer:hover .scrollBtn[data-visible] {
78
- opacity: 1;
79
- }
80
-
81
- /* 按钮图标 */
82
- .scrollBtn svg {
83
- width: 20px;
84
- height: 20px;
85
- stroke: currentColor;
86
- stroke-width: 2;
87
- fill: none;
88
- }
89
-
90
- .navLink,
91
- .navLink:visited {
92
- color: inherit;
93
- text-decoration: none;
94
- background: none;
95
- border: none;
96
- cursor: pointer;
97
- font: inherit;
98
- padding: 0.5rem 0.75rem;
99
- display: flex;
100
- align-items: center;
101
- gap: 0.5rem;
102
- width: 100%;
103
- min-height: 44px;
104
- }
105
-
106
- .navLink :global(.nav-icon) {
107
- stroke: var(--white-full);
108
- }
109
-
110
- .navLink:hover :global(.nav-icon),
111
- .navLink:hover .navText {
112
- stroke: var(--stalux-accent-color);
113
- color: var(--stalux-accent-color);
114
- }
115
-
116
- .navItem {
117
- font-size: 1.3em;
118
- margin-right: 1em;
119
- margin-left: 1em;
120
- text-shadow: var(--stalux-text-shadow);
121
- display: flex;
122
- align-items: center;
123
- flex-shrink: 0;
124
- }
125
-
126
- .navText {
127
- white-space: nowrap;
128
- color: var(--white-full);
129
- }
130
-
131
- /* 汉堡菜单按钮 */
132
- .navToggle {
133
- display: none;
134
- background: none;
135
- border: none;
136
- color: inherit;
137
- cursor: pointer;
138
- padding: 0.75rem;
139
- z-index: 1001;
140
- min-width: 48px;
141
- min-height: 48px;
142
- }
143
-
144
- .navToggle :global(svg) {
145
- width: 32px;
146
- height: 32px;
147
- }
148
-
149
- /* 遮罩层 */
150
- .navOverlay {
151
- display: none;
152
- position: fixed;
153
- top: 0;
154
- left: 0;
155
- width: 100%;
156
- height: 100%;
157
- background: rgba(0, 0, 0, 0.6);
158
- z-index: 999;
159
- opacity: 0;
160
- transition: opacity 0.3s ease;
161
- pointer-events: none;
162
- }
163
-
164
- .navOverlay[data-state="show"] {
165
- display: block;
166
- opacity: 1;
167
- pointer-events: auto;
168
- }
169
-
170
- /* 中等屏幕:缩小间距和字号 */
171
- @media (max-width: 1100px) {
172
- .navList {
173
- gap: 1rem;
174
- }
175
-
176
- .navItem {
177
- font-size: 1em;
178
- margin-right: 0.6em;
179
- margin-left: 0.6em;
180
- }
181
- }
182
-
183
- /* 中小屏幕:保留文字,通过横向滚动展示完整导航 */
184
- @media (max-width: 900px) {
185
- .navItem {
186
- font-size: 0.95em;
187
- margin-right: 0.25em;
188
- margin-left: 0.25em;
189
- }
190
-
191
- .navList {
192
- gap: 0.5rem;
193
- }
194
- }
195
-
196
- /* 窄屏:改为侧边栏 */
197
- @media (max-width: 600px) {
198
- .navToggle {
199
- display: block;
200
- position: fixed;
201
- top: 0.75rem;
202
- left: 0.75rem;
203
- }
204
-
205
- .navContainer {
206
- overflow: visible;
207
- }
208
-
209
- nav {
210
- width: auto;
211
- }
212
-
213
- .navList {
214
- position: fixed;
215
- top: 0;
216
- left: 0;
217
- right: auto;
218
- width: min(220px, calc(100vw - 1rem));
219
- height: 100vh;
220
- background: var(--black-20p);
221
- backdrop-filter: blur(20px);
222
- flex-direction: column;
223
- align-items: flex-start;
224
- justify-content: flex-start;
225
- gap: 0;
226
- padding: 0.5rem 1rem 2rem 1rem;
227
- transform: translateX(-100%);
228
- z-index: 1000;
229
- overflow-y: auto;
230
- pointer-events: none;
231
- }
232
-
233
- .navList[data-state="open"] {
234
- transform: translateX(0);
235
- pointer-events: auto;
236
- }
237
-
238
- .navItem {
239
- width: 100%;
240
- margin: 0;
241
- border-bottom: 1px solid var(--white-10p);
242
- font-size: 0.9em;
243
- flex-shrink: 0;
244
- }
245
-
246
- .navText {
247
- display: inline;
248
- }
249
-
250
- .navLink {
251
- width: 100%;
252
- padding: 0.45rem 0.75rem;
253
- min-height: 44px;
254
- font-size: inherit;
255
- }
256
-
257
- .navLink :global(.nav-icon) {
258
- width: 18px;
259
- height: 18px;
260
- }
261
- }
@@ -1,116 +0,0 @@
1
- /* 友链卡片(受 staluxmyblog 链接布局启发)*/
2
-
3
- .card {
4
- display: flex;
5
- flex-direction: column;
6
- background: var(--surface-glass);
7
- border-radius: 10px;
8
- padding: 16px;
9
- text-decoration: none;
10
- color: #fff;
11
- min-height: 200px;
12
- width: 180px;
13
- overflow: visible;
14
- transition:
15
- transform 220ms ease,
16
- background-color 220ms ease,
17
- border-color 220ms ease;
18
- box-shadow: var(--card-box-shadow);
19
- }
20
-
21
- .card:hover {
22
- transform: translateY(-3px);
23
- background: var(--white-05p);
24
- box-shadow: var(--card-box-shadow-hover);
25
- }
26
-
27
- .avatar {
28
- display: flex;
29
- justify-content: center;
30
- margin-bottom: 12px;
31
- }
32
-
33
- .avatar img {
34
- width: 80px;
35
- height: 80px;
36
- border-radius: 50%;
37
- object-fit: cover;
38
- border: 2px solid var(--accent-60p);
39
- transform-origin: center;
40
- transition:
41
- transform 220ms ease,
42
- border-color 220ms ease;
43
- }
44
-
45
- .card:hover .avatar img {
46
- transform: scale(1.04);
47
- animation: link-avatar-spin 700ms ease-in-out 1;
48
- box-shadow: 0 0 20px var(--accent-50p);
49
- border-color: var(--accent-85p);
50
- }
51
-
52
- @keyframes link-avatar-spin {
53
- from {
54
- transform: rotate(0deg) scale(1.04);
55
- }
56
- to {
57
- transform: rotate(360deg) scale(1.04);
58
- }
59
- }
60
-
61
- .content {
62
- text-align: center;
63
- flex: 1;
64
- display: flex;
65
- flex-direction: column;
66
- }
67
-
68
- .title {
69
- font-size: 1.1rem;
70
- margin: 0 0 8px 0;
71
- background: linear-gradient(90deg, var(--white-95p), var(--accent-90p));
72
- background-clip: text;
73
- -webkit-text-fill-color: transparent;
74
- white-space: nowrap;
75
- overflow: hidden;
76
- text-overflow: ellipsis;
77
- }
78
-
79
- .description {
80
- margin: 0;
81
- font-size: 0.95rem;
82
- color: var(--white-78p);
83
- line-height: 1.45;
84
- display: -webkit-box;
85
- -webkit-line-clamp: 3;
86
- -webkit-box-orient: vertical;
87
- overflow: hidden;
88
- text-overflow: ellipsis;
89
- }
90
-
91
- @media (max-width: 480px) {
92
- .card {
93
- padding: 14px;
94
- }
95
-
96
- .avatar img {
97
- width: 70px;
98
- height: 70px;
99
- }
100
-
101
- .title {
102
- font-size: 1rem;
103
- }
104
-
105
- .description {
106
- font-size: 0.9rem;
107
- }
108
- }
109
-
110
- @media (prefers-reduced-motion: reduce) {
111
- .card:hover .avatar img {
112
- animation: none;
113
- transform: none;
114
- transition: none;
115
- }
116
- }
@@ -1,54 +0,0 @@
1
- /* 友链列表 - 响应式网格布局(受 staluxmyblog 启发)*/
2
-
3
- .list {
4
- display: grid;
5
- grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
6
- gap: 20px;
7
- margin: 30px auto;
8
- padding: 0;
9
- list-style: none;
10
- max-width: 1200px;
11
- justify-items: center;
12
- }
13
-
14
- .item {
15
- display: flex;
16
- }
17
-
18
- /* 大屏幕:5个卡片一行 */
19
- @media (min-width: 1400px) {
20
- .list {
21
- grid-template-columns: repeat(5, 1fr);
22
- }
23
- }
24
-
25
- /* 中等屏幕:4个卡片一行 */
26
- @media (1100px <= width <= 1399px) {
27
- .list {
28
- grid-template-columns: repeat(4, 1fr);
29
- }
30
- }
31
-
32
- /* 小屏幕:3个卡片一行 */
33
- @media (768px <= width <= 1099px) {
34
- .list {
35
- grid-template-columns: repeat(3, 1fr);
36
- }
37
- }
38
-
39
- /* 平板:2个卡片一行 */
40
- @media (480px <= width <= 767px) {
41
- .list {
42
- grid-template-columns: repeat(2, 1fr);
43
- gap: 16px;
44
- }
45
- }
46
-
47
- /* 移动设备:1个卡片一行 */
48
- @media (max-width: 479px) {
49
- .list {
50
- grid-template-columns: 1fr;
51
- gap: 14px;
52
- margin: 20px auto;
53
- }
54
- }
@@ -1,80 +0,0 @@
1
- .social-links {
2
- margin-top: 3em;
3
- ul {
4
- display: flex;
5
- flex-wrap: wrap;
6
- justify-content: center;
7
- gap: 1em;
8
- padding: 0;
9
- margin: 0;
10
- li {
11
- font-size: large;
12
- width: 2.5em;
13
- height: 2.5em;
14
- display: inline-flex;
15
- align-items: center;
16
- justify-content: center;
17
- text-align: center;
18
- border-radius: 50%;
19
- background-color: var(--white-15p);
20
- box-sizing: border-box;
21
- overflow: hidden;
22
- }
23
- a,
24
- .icon-container,
25
- .custom-icon {
26
- display: inline-flex;
27
- align-items: center;
28
- justify-content: center;
29
- width: 100%;
30
- height: 100%;
31
- line-height: 1;
32
- }
33
- }
34
- }
35
-
36
- .social-links[data-stalux-social-animate="true"] li {
37
- animation: stalux-social-arrive 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
38
- }
39
-
40
- .social-links[data-stalux-social-animate="true"] li:nth-child(2) {
41
- animation-delay: 30ms;
42
- }
43
-
44
- .social-links[data-stalux-social-animate="true"] li:nth-child(3) {
45
- animation-delay: 60ms;
46
- }
47
-
48
- .social-links[data-stalux-social-animate="true"] li:nth-child(4) {
49
- animation-delay: 90ms;
50
- }
51
-
52
- .social-links[data-stalux-social-animate="true"] li:nth-child(5) {
53
- animation-delay: 120ms;
54
- }
55
-
56
- .social-links[data-stalux-social-animate="true"] li:nth-child(6) {
57
- animation-delay: 150ms;
58
- }
59
-
60
- .social-links[data-stalux-social-animate="true"] li:nth-child(n + 7) {
61
- animation-delay: 180ms;
62
- }
63
-
64
- @keyframes stalux-social-arrive {
65
- from {
66
- opacity: 0;
67
- transform: translateY(0.75rem) rotate(-12deg);
68
- }
69
-
70
- to {
71
- opacity: 1;
72
- transform: translateY(0) rotate(0);
73
- }
74
- }
75
-
76
- @media (prefers-reduced-motion: reduce) {
77
- .social-links[data-stalux-social-animate="true"] li {
78
- animation: none;
79
- }
80
- }