@xingwangzhe/stalux 1.2.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 (214) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +192 -0
  3. package/package.json +108 -0
  4. package/scripts/cli.mjs +103 -0
  5. package/src/assets/BiCcCircle.svg +1 -0
  6. package/src/assets/astro.svg +1 -0
  7. package/src/assets/background/README.md +3 -0
  8. package/src/assets/background/pattern-1.min.svg +1 -0
  9. package/src/assets/background/pattern-10.min.svg +1 -0
  10. package/src/assets/background/pattern-11.min.svg +1 -0
  11. package/src/assets/background/pattern-12.min.svg +1 -0
  12. package/src/assets/background/pattern-13.min.svg +1 -0
  13. package/src/assets/background/pattern-14.min.svg +1 -0
  14. package/src/assets/background/pattern-15.min.svg +1 -0
  15. package/src/assets/background/pattern-16.min.svg +1 -0
  16. package/src/assets/background/pattern-17.min.svg +1 -0
  17. package/src/assets/background/pattern-18.min.svg +1 -0
  18. package/src/assets/background/pattern-19.min.svg +1 -0
  19. package/src/assets/background/pattern-2.min.svg +1 -0
  20. package/src/assets/background/pattern-20.min.svg +1 -0
  21. package/src/assets/background/pattern-21.min.svg +1 -0
  22. package/src/assets/background/pattern-22.min.svg +1 -0
  23. package/src/assets/background/pattern-23.min.svg +1 -0
  24. package/src/assets/background/pattern-24.min.svg +1 -0
  25. package/src/assets/background/pattern-25.min.svg +1 -0
  26. package/src/assets/background/pattern-26.min.svg +1 -0
  27. package/src/assets/background/pattern-27.min.svg +1 -0
  28. package/src/assets/background/pattern-28.min.svg +1 -0
  29. package/src/assets/background/pattern-29.min.svg +1 -0
  30. package/src/assets/background/pattern-3.min.svg +1 -0
  31. package/src/assets/background/pattern-30.min.svg +1 -0
  32. package/src/assets/background/pattern-31.min.svg +1 -0
  33. package/src/assets/background/pattern-32.min.svg +1 -0
  34. package/src/assets/background/pattern-33.min.svg +1 -0
  35. package/src/assets/background/pattern-34.min.svg +1 -0
  36. package/src/assets/background/pattern-35.min.svg +1 -0
  37. package/src/assets/background/pattern-36.min.svg +1 -0
  38. package/src/assets/background/pattern-37.min.svg +1 -0
  39. package/src/assets/background/pattern-38.min.svg +1 -0
  40. package/src/assets/background/pattern-39.min.svg +1 -0
  41. package/src/assets/background/pattern-4.min.svg +1 -0
  42. package/src/assets/background/pattern-40.min.svg +1 -0
  43. package/src/assets/background/pattern-41.min.svg +1 -0
  44. package/src/assets/background/pattern-42.min.svg +1 -0
  45. package/src/assets/background/pattern-5.min.svg +1 -0
  46. package/src/assets/background/pattern-6.min.svg +1 -0
  47. package/src/assets/background/pattern-7.min.svg +1 -0
  48. package/src/assets/background/pattern-8.min.svg +1 -0
  49. package/src/assets/background/pattern-9.min.svg +1 -0
  50. package/src/assets/background.svg +1 -0
  51. package/src/assets/cc-icon.svg +4 -0
  52. package/src/assets/fonts/GoogleSansCode-Italic.woff2 +0 -0
  53. package/src/assets/fonts/GoogleSansCode.woff2 +0 -0
  54. package/src/assets/fonts/LXGWWenKai-Regular.ttf +0 -0
  55. package/src/assets/fonts/LXGWWenKai-Regular.woff2 +0 -0
  56. package/src/components/stalux/analytics/clarity.astro +25 -0
  57. package/src/components/stalux/analytics/google.astro +31 -0
  58. package/src/components/stalux/analytics/umami.astro +16 -0
  59. package/src/components/stalux/archives/archivesList.astro +116 -0
  60. package/src/components/stalux/archives/toArchive.astro +14 -0
  61. package/src/components/stalux/categories/categoriesCard.astro +49 -0
  62. package/src/components/stalux/categories/categoriesList.astro +17 -0
  63. package/src/components/stalux/common/author.astro +35 -0
  64. package/src/components/stalux/common/date.astro +59 -0
  65. package/src/components/stalux/common/search.astro +14 -0
  66. package/src/components/stalux/common/textType.astro +16 -0
  67. package/src/components/stalux/common/verCount.astro +10 -0
  68. package/src/components/stalux/footer/FooterBadges.astro +150 -0
  69. package/src/components/stalux/footer/FooterBeian.astro +91 -0
  70. package/src/components/stalux/footer/FooterCopyright.astro +40 -0
  71. package/src/components/stalux/footer/FooterStats.astro +108 -0
  72. package/src/components/stalux/footer/FooterThemeInfo.astro +67 -0
  73. package/src/components/stalux/layout/footer.astro +87 -0
  74. package/src/components/stalux/layout/head.astro +194 -0
  75. package/src/components/stalux/layout/listPage.astro +26 -0
  76. package/src/components/stalux/layout/navs.astro +174 -0
  77. package/src/components/stalux/links/linkCard.astro +50 -0
  78. package/src/components/stalux/links/linkList.astro +20 -0
  79. package/src/components/stalux/links/socialMedia.astro +102 -0
  80. package/src/components/stalux/posts/PhotoSwipeStyle.astro +3 -0
  81. package/src/components/stalux/posts/PostTaxonomy.astro +65 -0
  82. package/src/components/stalux/posts/WalineComment.astro +609 -0
  83. package/src/components/stalux/posts/postAuthor.astro +23 -0
  84. package/src/components/stalux/posts/postCC.astro +52 -0
  85. package/src/components/stalux/posts/postCard.astro +83 -0
  86. package/src/components/stalux/posts/postContent.astro +174 -0
  87. package/src/components/stalux/posts/postLeft.astro +41 -0
  88. package/src/components/stalux/posts/postList.astro +25 -0
  89. package/src/components/stalux/posts/postNavigation.astro +137 -0
  90. package/src/components/stalux/posts/postRight.astro +33 -0
  91. package/src/components/stalux/posts/postToc.astro +88 -0
  92. package/src/components/stalux/posts/randomPost.astro +134 -0
  93. package/src/components/stalux/tags/tagHeader.astro +50 -0
  94. package/src/components/stalux/tags/tagsCloud.astro +100 -0
  95. package/src/components/stalux/words/wordCard.astro +62 -0
  96. package/src/components/stalux/words/wordList.astro +70 -0
  97. package/src/config.ts +58 -0
  98. package/src/i18n/en.json +193 -0
  99. package/src/i18n/zh-CN.json +193 -0
  100. package/src/index.ts +215 -0
  101. package/src/internal/components-plugin.ts +54 -0
  102. package/src/internal/dev-toolbar.ts +33 -0
  103. package/src/internal/override.ts +99 -0
  104. package/src/internal/pagefind.ts +40 -0
  105. package/src/layouts/PostLayout.astro +90 -0
  106. package/src/layouts/Stalux.astro +91 -0
  107. package/src/pages/404.astro +103 -0
  108. package/src/pages/about.astro +59 -0
  109. package/src/pages/about.md.ts +15 -0
  110. package/src/pages/api/post.abbrlink.json.ts +20 -0
  111. package/src/pages/archives.astro +23 -0
  112. package/src/pages/archives.md.ts +24 -0
  113. package/src/pages/atom.xml.ts +29 -0
  114. package/src/pages/categories/[category].astro +35 -0
  115. package/src/pages/categories/[category].md.ts +34 -0
  116. package/src/pages/categories/index.astro +23 -0
  117. package/src/pages/categories/index.md.ts +27 -0
  118. package/src/pages/index.astro +30 -0
  119. package/src/pages/index.md.ts +18 -0
  120. package/src/pages/links.astro +23 -0
  121. package/src/pages/links.md.ts +18 -0
  122. package/src/pages/llms-full.txt.ts +25 -0
  123. package/src/pages/llms.txt.ts +26 -0
  124. package/src/pages/posts/[post].astro +69 -0
  125. package/src/pages/posts/[post].md.ts +109 -0
  126. package/src/pages/rss.xml.ts +29 -0
  127. package/src/pages/tags/[tag].astro +37 -0
  128. package/src/pages/tags/[tag].md.ts +34 -0
  129. package/src/pages/tags/index.astro +23 -0
  130. package/src/pages/tags/index.md.ts +27 -0
  131. package/src/pages/words.astro +24 -0
  132. package/src/pages/words.md.ts +14 -0
  133. package/src/plugins/feature-flags.ts +68 -0
  134. package/src/plugins/satteri-temml.ts +81 -0
  135. package/src/schemas/collections.ts +140 -0
  136. package/src/schemas/config.ts +226 -0
  137. package/src/scripts/background.ts +59 -0
  138. package/src/styles/base/init.css +286 -0
  139. package/src/styles/base/math.css +411 -0
  140. package/src/styles/components/archives/archivesList.module.css +378 -0
  141. package/src/styles/components/archives/toArchive.module.css +3 -0
  142. package/src/styles/components/categories/categoriesCard.module.css +87 -0
  143. package/src/styles/components/categories/categoriesList.module.css +27 -0
  144. package/src/styles/components/common/author.module.css +73 -0
  145. package/src/styles/components/common/date.module.css +15 -0
  146. package/src/styles/components/common/textType.module.css +10 -0
  147. package/src/styles/components/footer/footer.module.css +44 -0
  148. package/src/styles/components/layout/navs.module.css +250 -0
  149. package/src/styles/components/links/linkCard.module.css +99 -0
  150. package/src/styles/components/links/linkList.module.css +67 -0
  151. package/src/styles/components/links/socialLinks.module.css +22 -0
  152. package/src/styles/components/markdown.css +528 -0
  153. package/src/styles/components/posts/postAuthor.module.css +32 -0
  154. package/src/styles/components/posts/postCC.module.css +138 -0
  155. package/src/styles/components/posts/postCard.module.css +156 -0
  156. package/src/styles/components/posts/postCategories.module.css +50 -0
  157. package/src/styles/components/posts/postContent.module.css +230 -0
  158. package/src/styles/components/posts/postLayout.module.css +142 -0
  159. package/src/styles/components/posts/postLeft.module.css +38 -0
  160. package/src/styles/components/posts/postList.module.css +24 -0
  161. package/src/styles/components/posts/postNavigation.module.css +187 -0
  162. package/src/styles/components/posts/postRight.module.css +60 -0
  163. package/src/styles/components/posts/postSidebar.module.css +57 -0
  164. package/src/styles/components/posts/postTags.module.css +51 -0
  165. package/src/styles/components/posts/postTaxonomy.module.css +87 -0
  166. package/src/styles/components/posts/postToc.module.css +74 -0
  167. package/src/styles/components/posts/randomPost.module.css +131 -0
  168. package/src/styles/components/tags/tagHeader.module.css +44 -0
  169. package/src/styles/components/tags/tagsCloud.module.css +124 -0
  170. package/src/styles/components/words/wordCard.module.css +130 -0
  171. package/src/styles/components/words/wordList.module.css +39 -0
  172. package/src/styles/pages/archives.module.css +18 -0
  173. package/src/styles/pages/categories.module.css +13 -0
  174. package/src/styles/pages/home.module.css +51 -0
  175. package/src/styles/pages/listPage.module.css +13 -0
  176. package/src/styles/pages/tags.module.css +12 -0
  177. package/src/styles/pages/words.module.css +13 -0
  178. package/src/styles/shared/animations.css +87 -0
  179. package/src/styles/shared/stagger.css +20 -0
  180. package/src/utils/ai-discovery.ts +547 -0
  181. package/src/utils/badge-generator.ts +68 -0
  182. package/src/utils/cc.ts +46 -0
  183. package/src/utils/collections-stats.ts +48 -0
  184. package/src/utils/config-utils.ts +107 -0
  185. package/src/utils/count-words.ts +20 -0
  186. package/src/utils/dayjs.ts +106 -0
  187. package/src/utils/feed.ts +70 -0
  188. package/src/utils/i18n.ts +64 -0
  189. package/src/utils/lucide-icons.ts +52 -0
  190. package/src/utils/semantic-time.ts +11 -0
  191. package/src/utils/taxonomy.ts +44 -0
  192. package/src/utils/toc-scrollspy.ts +95 -0
  193. package/src/utils/waline.ts +27 -0
  194. package/src/utils/word-count-utils.ts +83 -0
  195. package/template/astro.config.mjs +51 -0
  196. package/template/package.json +27 -0
  197. package/template/public/robots.txt +3 -0
  198. package/template/src/content.config.ts +11 -0
  199. package/template/stalux/about/index.md +14 -0
  200. package/template/stalux/config/ai-discovery.yml +2 -0
  201. package/template/stalux/config/author.yml +4 -0
  202. package/template/stalux/config/comment.yml +5 -0
  203. package/template/stalux/config/footer.yml +13 -0
  204. package/template/stalux/config/head.yml +7 -0
  205. package/template/stalux/config/links.yml +4 -0
  206. package/template/stalux/config/media-links.yml +8 -0
  207. package/template/stalux/config/navs.yml +23 -0
  208. package/template/stalux/config/promote.yml +2 -0
  209. package/template/stalux/config/site.yml +7 -0
  210. package/template/stalux/config/typetexts.yml +5 -0
  211. package/template/stalux/posts/hello-stalux.md +47 -0
  212. package/template/stalux/words/_template.md +12 -0
  213. package/template/stalux/words/einstein-imagination.md +8 -0
  214. package/template/tsconfig.json +9 -0
@@ -0,0 +1,124 @@
1
+ /* ── 移动端:卡片容器(桌面端隐藏) ── */
2
+ .cards {
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ gap: 0.75rem;
6
+ justify-content: center;
7
+ align-items: flex-start;
8
+ align-content: flex-start;
9
+ padding: 1rem;
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ @media (min-width: 769px) {
14
+ .cards {
15
+ display: none;
16
+ }
17
+ }
18
+
19
+ /* ── 桌面端:Canvas 容器(移动端隐藏) ── */
20
+ .canvas {
21
+ display: none;
22
+ width: 100%;
23
+ min-height: 520px;
24
+ position: relative;
25
+ }
26
+
27
+ @media (min-width: 769px) {
28
+ .canvas {
29
+ display: block;
30
+ }
31
+ }
32
+
33
+ /* ── 卡片标签项 ── */
34
+ .tagCard {
35
+ position: relative;
36
+ display: flex;
37
+ align-items: center;
38
+ padding: 0.5rem 1rem;
39
+ border-radius: 2rem;
40
+ background-color: var(--white-10p);
41
+ color: var(--white-full);
42
+ text-decoration: none;
43
+ border: 1px solid var(--white-20p);
44
+ transition: all var(--transition-slow);
45
+ overflow: hidden;
46
+ }
47
+
48
+ .tagCard::before {
49
+ content: "";
50
+ position: absolute;
51
+ top: 0;
52
+ left: 0;
53
+ width: 100%;
54
+ height: 100%;
55
+ background: linear-gradient(
56
+ 120deg,
57
+ rgba(255, 255, 255, 0),
58
+ var(--white-10p),
59
+ rgba(255, 255, 255, 0)
60
+ );
61
+ transform: translateX(-100%);
62
+ transition: transform var(--transition-slowest);
63
+ z-index: 1;
64
+ }
65
+
66
+ .tagCard:hover {
67
+ transform: translateY(-2px);
68
+ border-color: var(--accent-50p);
69
+ box-shadow: var(--shadow-md);
70
+ }
71
+
72
+ .tagCard:hover::before {
73
+ transform: translateX(100%);
74
+ }
75
+
76
+ /* 按标签数量调整尺寸 */
77
+ .tagCard[data-count="1"] {
78
+ font-size: 0.9rem;
79
+ padding: 0.3rem 0.8rem;
80
+ }
81
+ .tagCard[data-count="2"] {
82
+ font-size: 1rem;
83
+ padding: 0.4rem 0.9rem;
84
+ }
85
+ .tagCard[data-count="3"] {
86
+ font-size: 1.1rem;
87
+ padding: 0.5rem 1rem;
88
+ }
89
+ .tagCard[data-count^="4"],
90
+ .tagCard[data-count^="5"] {
91
+ font-size: 1.2rem;
92
+ padding: 0.6rem 1.1rem;
93
+ }
94
+ .tagCard[data-count^="6"],
95
+ .tagCard[data-count^="7"],
96
+ .tagCard[data-count^="8"],
97
+ .tagCard[data-count^="9"] {
98
+ font-size: 1.3rem;
99
+ padding: 0.7rem 1.2rem;
100
+ }
101
+
102
+ .tagName {
103
+ margin-right: 0.5rem;
104
+ z-index: 2;
105
+ }
106
+
107
+ .tagCount {
108
+ background-color: var(--white-20p);
109
+ border-radius: 1rem;
110
+ padding: 0.1rem 0.4rem;
111
+ font-size: 0.8rem;
112
+ min-width: 1.5rem;
113
+ text-align: center;
114
+ z-index: 2;
115
+ }
116
+
117
+ /* ── 空状态 ── */
118
+ .noTags {
119
+ font-size: 1.2rem;
120
+ color: var(--white-60p);
121
+ text-align: center;
122
+ padding: 2rem;
123
+ width: 100%;
124
+ }
@@ -0,0 +1,130 @@
1
+ .card {
2
+ width: 100%;
3
+ background: var(--white-10p);
4
+ border-radius: var(--radius-lg, 12px);
5
+ padding: 1.5rem;
6
+ box-shadow: var(--shadow-md);
7
+ transition:
8
+ transform var(--transition-normal) ease,
9
+ box-shadow var(--transition-normal) ease;
10
+ display: flex;
11
+ flex-direction: column;
12
+ gap: 0.75rem;
13
+ }
14
+
15
+ .card:hover {
16
+ transform: translateY(-4px);
17
+ box-shadow: var(--shadow-xl);
18
+ }
19
+
20
+ /* 被 hash 定位的卡片 — 主题光晕 */
21
+ .card:target,
22
+ .card[data-glow] {
23
+ animation: word-glow 2s ease-out;
24
+ box-shadow:
25
+ 0 0 20px var(--accent-40p),
26
+ 0 0 60px var(--accent-20p),
27
+ var(--shadow-lg);
28
+ }
29
+
30
+ @keyframes word-glow {
31
+ 0% {
32
+ box-shadow:
33
+ 0 0 30px var(--accent-50p),
34
+ 0 0 80px var(--accent-30p),
35
+ var(--shadow-lg);
36
+ transform: scale(1.02);
37
+ }
38
+ 100% {
39
+ box-shadow:
40
+ 0 0 20px var(--accent-40p),
41
+ 0 0 60px var(--accent-20p),
42
+ var(--shadow-lg);
43
+ transform: scale(1);
44
+ }
45
+ }
46
+
47
+ .body {
48
+ color: var(--white-80p);
49
+ line-height: 1.7;
50
+ font-size: 1.05rem;
51
+ }
52
+
53
+ .body :global(h1),
54
+ .body :global(h2),
55
+ .body :global(h3),
56
+ .body :global(h4),
57
+ .body :global(h5),
58
+ .body :global(h6) {
59
+ font-size: 1.1em;
60
+ margin: 0.5rem 0;
61
+ }
62
+
63
+ .body :global(p) {
64
+ margin: 0.5rem 0;
65
+ }
66
+
67
+ .body :global(blockquote) {
68
+ margin: 0.5rem 0;
69
+ padding: 0.6rem 1rem;
70
+ border-left: 3px solid var(--accent-60p);
71
+ background: var(--white-05p);
72
+ }
73
+
74
+ /* 长代码块自动换行,避免卡片内出现横向滚动条 */
75
+ .body :global(pre) {
76
+ white-space: pre-wrap;
77
+ word-break: break-word;
78
+ overflow-x: visible;
79
+ }
80
+
81
+ .body :global(code) {
82
+ word-break: break-word;
83
+ }
84
+
85
+ .footer {
86
+ margin-top: auto;
87
+ padding-top: 0.75rem;
88
+ border-top: 1px solid var(--white-10p);
89
+ display: flex;
90
+ justify-content: space-between;
91
+ align-items: center;
92
+ gap: 1rem;
93
+ font-size: 0.9rem;
94
+ color: var(--white-60p);
95
+ }
96
+
97
+ .date {
98
+ font-variant-numeric: tabular-nums;
99
+ color: var(--white-50p);
100
+ }
101
+
102
+ .sourceMeta {
103
+ display: flex;
104
+ align-items: center;
105
+ gap: 0.5rem;
106
+ flex-wrap: wrap;
107
+ justify-content: flex-end;
108
+ }
109
+
110
+ .sourceDate {
111
+ font-style: italic;
112
+ color: var(--white-50p);
113
+ }
114
+
115
+ .sourceText {
116
+ font-style: italic;
117
+ }
118
+
119
+ .sourceLink {
120
+ color: var(--accent-80p);
121
+ text-decoration: underline;
122
+ text-decoration-color: var(--accent-50p);
123
+ text-underline-offset: 0.15em;
124
+ font-style: italic;
125
+ transition: color var(--transition-fast) ease;
126
+ }
127
+
128
+ .sourceLink:hover {
129
+ color: var(--accent-90p);
130
+ }
@@ -0,0 +1,39 @@
1
+ .list {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ gap: 1.5rem;
6
+ margin: 2rem auto;
7
+ padding: 0;
8
+ list-style: none;
9
+ }
10
+
11
+ .item {
12
+ width: 100%;
13
+ max-width: 900px;
14
+ display: flex;
15
+ animation: fadeInUp 0.5s ease forwards;
16
+ opacity: 0;
17
+ }
18
+
19
+ @keyframes fadeInUp {
20
+ from {
21
+ opacity: 0;
22
+ transform: translateY(20px);
23
+ }
24
+ to {
25
+ opacity: 1;
26
+ transform: translateY(0);
27
+ }
28
+ }
29
+
30
+ @media (max-width: 768px) {
31
+ .list {
32
+ gap: 1rem;
33
+ margin: 1.5rem auto;
34
+ }
35
+
36
+ .item {
37
+ max-width: 100%;
38
+ }
39
+ }
@@ -0,0 +1,18 @@
1
+ .h1 {
2
+ margin-top: 1.5em;
3
+ text-align: center;
4
+ text-shadow: var(--stalux-text-shadow);
5
+ font-size: 2.5em;
6
+ }
7
+ .description {
8
+ text-align: center;
9
+ margin-bottom: 1.5em;
10
+ font-size: 1.2em;
11
+ color: var(--white-60p);
12
+ }
13
+
14
+ .archivesContainer {
15
+ max-width: 1000px;
16
+ margin: 0 auto; /* 水平居中 */
17
+ padding: 2rem 1rem;
18
+ }
@@ -0,0 +1,13 @@
1
+ .title {
2
+ margin-top: 1.5em;
3
+ text-align: center;
4
+ justify-content: center;
5
+ text-shadow: var(--stalux-text-shadow);
6
+ font-size: 2.5em;
7
+ }
8
+ .description {
9
+ text-align: center;
10
+ margin-bottom: 1.5em;
11
+ font-size: 1.2em;
12
+ color: var(--white-60p);
13
+ }
@@ -0,0 +1,51 @@
1
+ .homeBody {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ min-height: 100vh;
6
+ padding-bottom: var(--space-3xl);
7
+ }
8
+
9
+ .homeTitle {
10
+ font-size: 4em;
11
+ margin-top: 1.5em;
12
+ text-shadow: var(--stalux-text-shadow);
13
+ text-align: center;
14
+ color: var(--white-full);
15
+ }
16
+
17
+ .homeNavs {
18
+ display: flex;
19
+ }
20
+
21
+ #showPostList {
22
+ margin-top: 3em;
23
+ font-size: 1.5em;
24
+ cursor: pointer;
25
+ text-shadow: var(--stalux-text-shadow);
26
+ }
27
+
28
+ /* 移动端响应式优化 */
29
+ @media (max-width: 768px) {
30
+ .homeBody {
31
+ height: auto;
32
+ padding: 2rem 0.5rem 1.5rem 0.5rem;
33
+ max-width: 95vw;
34
+ width: 100%;
35
+ box-sizing: border-box;
36
+ }
37
+ .homeTitle {
38
+ font-size: 2em;
39
+ margin-top: 1em;
40
+ word-break: break-all;
41
+ }
42
+ .homeNavs {
43
+ flex-direction: column;
44
+ align-items: center;
45
+ gap: 0.5em;
46
+ }
47
+ #showPostList {
48
+ margin-top: 2em;
49
+ font-size: 1.1em;
50
+ }
51
+ }
@@ -0,0 +1,13 @@
1
+ .title {
2
+ margin-top: 1.5em;
3
+ text-align: center;
4
+ text-shadow: var(--stalux-text-shadow);
5
+ font-size: 2.5em;
6
+ }
7
+
8
+ .description {
9
+ text-align: center;
10
+ margin-bottom: 1.5em;
11
+ font-size: 1.2em;
12
+ color: var(--white-60p);
13
+ }
@@ -0,0 +1,12 @@
1
+ .title {
2
+ margin-top: 1.5em;
3
+ text-align: center;
4
+ text-shadow: var(--stalux-text-shadow);
5
+ font-size: 2.5em;
6
+ }
7
+ .description {
8
+ text-align: center;
9
+ margin-bottom: 1.5em;
10
+ font-size: 1.2em;
11
+ color: var(--white-60p);
12
+ }
@@ -0,0 +1,13 @@
1
+ .title {
2
+ margin-top: 1.5em;
3
+ text-align: center;
4
+ text-shadow: var(--stalux-text-shadow);
5
+ font-size: 2.5em;
6
+ }
7
+
8
+ .description {
9
+ text-align: center;
10
+ margin-bottom: 1.5em;
11
+ font-size: 1.2em;
12
+ color: var(--white-60p);
13
+ }
@@ -0,0 +1,87 @@
1
+ /* 共享动画关键帧 — 由 Stalux.astro 全局导入 */
2
+
3
+ @keyframes fadeInUp {
4
+ from {
5
+ opacity: 0;
6
+ transform: translateY(20px);
7
+ }
8
+ to {
9
+ opacity: 1;
10
+ transform: translateY(0);
11
+ }
12
+ }
13
+
14
+ @keyframes fadeInUpSmall {
15
+ from {
16
+ opacity: 0;
17
+ transform: translateY(12px);
18
+ }
19
+ to {
20
+ opacity: 1;
21
+ transform: translateY(0);
22
+ }
23
+ }
24
+
25
+ @keyframes fadeInLeft {
26
+ from {
27
+ opacity: 0;
28
+ transform: translateX(-15px);
29
+ }
30
+ to {
31
+ opacity: 1;
32
+ transform: translateX(0);
33
+ }
34
+ }
35
+
36
+ @keyframes fadeInRight {
37
+ from {
38
+ opacity: 0;
39
+ transform: translateX(20px);
40
+ }
41
+ to {
42
+ opacity: 1;
43
+ transform: translateX(0);
44
+ }
45
+ }
46
+
47
+ @keyframes fadeScale {
48
+ from {
49
+ opacity: 0;
50
+ transform: scale(0.95);
51
+ }
52
+ to {
53
+ opacity: 1;
54
+ transform: scale(1);
55
+ }
56
+ }
57
+
58
+ @keyframes fadeSlideDown {
59
+ from {
60
+ opacity: 0;
61
+ transform: translateY(-8px);
62
+ }
63
+ to {
64
+ opacity: 1;
65
+ transform: translateY(0);
66
+ }
67
+ }
68
+
69
+ @keyframes spin {
70
+ from {
71
+ transform: rotate(0deg);
72
+ }
73
+ to {
74
+ transform: rotate(360deg);
75
+ }
76
+ }
77
+
78
+ @keyframes dotPulse {
79
+ 0%,
80
+ 80%,
81
+ 100% {
82
+ transform: scale(0.3);
83
+ }
84
+ 40% {
85
+ transform: scale(1);
86
+ }
87
+ }
@@ -0,0 +1,20 @@
1
+ /* 共享列表入场动画延迟 — 由 Stalux.astro 全局导入 */
2
+
3
+ .stagger-children > *:nth-child(1) {
4
+ animation-delay: 0.1s;
5
+ }
6
+ .stagger-children > *:nth-child(2) {
7
+ animation-delay: 0.15s;
8
+ }
9
+ .stagger-children > *:nth-child(3) {
10
+ animation-delay: 0.2s;
11
+ }
12
+ .stagger-children > *:nth-child(4) {
13
+ animation-delay: 0.25s;
14
+ }
15
+ .stagger-children > *:nth-child(5) {
16
+ animation-delay: 0.3s;
17
+ }
18
+ .stagger-children > *:nth-child(n + 6) {
19
+ animation-delay: 0.35s;
20
+ }