@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,155 +0,0 @@
1
- /* ── 移动端:卡片容器(桌面端隐藏) ── */
2
- .cards {
3
- display: block;
4
- padding: 1rem;
5
- box-sizing: border-box;
6
- }
7
-
8
- .tagGroup {
9
- display: flex;
10
- flex-wrap: wrap;
11
- gap: 0.75rem;
12
- justify-content: center;
13
- align-items: flex-start;
14
- margin-bottom: 0.75rem;
15
- content-visibility: auto;
16
- contain-intrinsic-block-size: auto 24rem;
17
- overflow-clip-margin: 30px;
18
- }
19
-
20
- @supports not (content-visibility: auto) {
21
- .tagGroup {
22
- contain-intrinsic-block-size: auto;
23
- }
24
- }
25
-
26
- .canvasFrame {
27
- container-type: inline-size;
28
- }
29
-
30
- @media (min-width: 769px) {
31
- .cards {
32
- display: none;
33
- }
34
- }
35
-
36
- /* Keep server-rendered tag links visible from the first paint. */
37
-
38
- /* ── 桌面端:Canvas 容器(移动端隐藏) ── */
39
- .canvas {
40
- display: none;
41
- width: 100%;
42
- --cloud-base-diameter: 660px;
43
- height: min(calc(var(--cloud-base-diameter) * var(--cloud-density)), 120cqw);
44
- min-height: 520px;
45
- position: relative;
46
- }
47
-
48
- @media (min-width: 769px) {
49
- .canvas {
50
- display: block;
51
- }
52
- }
53
-
54
- /* ── 卡片标签项 ── */
55
- .tagCard {
56
- position: relative;
57
- display: flex;
58
- align-items: center;
59
- padding: 0.5rem 1rem;
60
- border-radius: 2rem;
61
- background-color: var(--white-05p);
62
- color: var(--white-full);
63
- text-decoration: none;
64
- border: 1px solid var(--white-20p);
65
- transition:
66
- transform var(--transition-slow),
67
- border-color var(--transition-slow);
68
- overflow: hidden;
69
- }
70
-
71
- .tagCard::before {
72
- content: "";
73
- position: absolute;
74
- inset: 0;
75
- background: linear-gradient(
76
- 120deg,
77
- rgba(255, 255, 255, 0),
78
- var(--white-10p),
79
- rgba(255, 255, 255, 0)
80
- );
81
- transform: translateX(-100%);
82
- transition: transform var(--transition-slowest);
83
- z-index: 1;
84
- }
85
-
86
- .tagCard:hover {
87
- transform: translateY(-2px);
88
- border-color: var(--accent-50p);
89
- box-shadow: var(--card-box-shadow-hover);
90
- }
91
-
92
- .tagCard:hover::before {
93
- transform: translateX(100%);
94
- }
95
-
96
- /* 按标签数量调整尺寸 */
97
- .tagCard[data-count="1"] {
98
- font-size: 0.9rem;
99
- padding: 0.3rem 0.8rem;
100
- }
101
- .tagCard[data-count="2"] {
102
- font-size: 1rem;
103
- padding: 0.4rem 0.9rem;
104
- }
105
- .tagCard[data-count="3"] {
106
- font-size: 1.1rem;
107
- padding: 0.5rem 1rem;
108
- }
109
- .tagCard[data-count^="4"],
110
- .tagCard[data-count^="5"] {
111
- font-size: 1.2rem;
112
- padding: 0.6rem 1.1rem;
113
- }
114
- .tagCard[data-count^="6"],
115
- .tagCard[data-count^="7"],
116
- .tagCard[data-count^="8"],
117
- .tagCard[data-count^="9"] {
118
- font-size: 1.3rem;
119
- padding: 0.7rem 1.2rem;
120
- }
121
-
122
- .tagName {
123
- margin-right: 0.5rem;
124
- z-index: 2;
125
- }
126
-
127
- .tagCount {
128
- background-color: var(--white-20p);
129
- border-radius: 1rem;
130
- padding: 0.1rem 0.4rem;
131
- font-size: 0.8rem;
132
- min-width: 1.5rem;
133
- text-align: center;
134
- z-index: 2;
135
- }
136
-
137
- /* ── 空状态 ── */
138
- .noTags {
139
- font-size: 1.2rem;
140
- color: var(--white-60p);
141
- text-align: center;
142
- padding: 2rem;
143
- width: 100%;
144
- }
145
-
146
- @media (min-width: 1024px) {
147
- .canvas {
148
- --cloud-base-diameter: 840px;
149
- }
150
- }
151
- @media (min-width: 1440px) {
152
- .canvas {
153
- --cloud-base-diameter: 960px;
154
- }
155
- }
@@ -1,136 +0,0 @@
1
- .card {
2
- width: 100%;
3
- box-sizing: border-box;
4
- background: var(--surface-glass);
5
- border-radius: var(--radius-lg, 12px);
6
- padding: 1.5rem;
7
- box-shadow: var(--card-box-shadow);
8
- transition:
9
- transform var(--transition-normal) ease,
10
- box-shadow var(--transition-normal) ease;
11
- display: flex;
12
- flex-direction: column;
13
- gap: 0.75rem;
14
- }
15
-
16
- .body :global(.expressive-code) {
17
- max-width: 100%;
18
- overflow-x: auto;
19
- }
20
-
21
- .card:hover {
22
- transform: translateY(-4px);
23
- box-shadow: var(--card-box-shadow-hover);
24
- }
25
-
26
- /* 被 hash 定位的卡片 — 主题光晕 */
27
- .card:target,
28
- .card[data-glow] {
29
- animation: word-glow 2s ease-out;
30
- box-shadow:
31
- 0 0 20px var(--accent-40p),
32
- 0 0 60px var(--accent-20p),
33
- var(--shadow-lg);
34
- }
35
-
36
- @keyframes word-glow {
37
- 0% {
38
- box-shadow:
39
- 0 0 30px var(--accent-50p),
40
- 0 0 80px var(--accent-30p),
41
- var(--shadow-lg);
42
- transform: scale(1.02);
43
- }
44
- 100% {
45
- box-shadow:
46
- 0 0 20px var(--accent-40p),
47
- 0 0 60px var(--accent-20p),
48
- var(--shadow-lg);
49
- transform: scale(1);
50
- }
51
- }
52
-
53
- .body {
54
- color: var(--white-80p);
55
- line-height: 1.7;
56
- font-size: 1.05rem;
57
- }
58
-
59
- .body :global(h1),
60
- .body :global(h2),
61
- .body :global(h3),
62
- .body :global(h4),
63
- .body :global(h5),
64
- .body :global(h6) {
65
- font-size: 1.1em;
66
- margin: 0.5rem 0;
67
- }
68
-
69
- .body :global(p) {
70
- margin: 0.5rem 0;
71
- }
72
-
73
- .body :global(blockquote) {
74
- margin: 0.5rem 0;
75
- padding: 0.6rem 1rem;
76
- border-left: 3px solid var(--accent-60p);
77
- background: var(--white-05p);
78
- }
79
-
80
- /* 长代码块自动换行,避免卡片内出现横向滚动条 */
81
- .body :global(pre) {
82
- white-space: pre-wrap;
83
- word-break: break-word;
84
- overflow-x: visible;
85
- }
86
-
87
- .body :global(code) {
88
- word-break: break-word;
89
- }
90
-
91
- .footer {
92
- margin-top: auto;
93
- padding-top: 0.75rem;
94
- border-top: 1px solid var(--white-10p);
95
- display: flex;
96
- justify-content: space-between;
97
- align-items: center;
98
- gap: 1rem;
99
- font-size: 0.9rem;
100
- color: var(--white-60p);
101
- }
102
-
103
- .date {
104
- font-variant-numeric: tabular-nums;
105
- color: var(--white-50p);
106
- }
107
-
108
- .sourceMeta {
109
- display: flex;
110
- align-items: center;
111
- gap: 0.5rem;
112
- flex-wrap: wrap;
113
- justify-content: flex-end;
114
- }
115
-
116
- .sourceDate {
117
- font-style: italic;
118
- color: var(--white-50p);
119
- }
120
-
121
- .sourceText {
122
- font-style: italic;
123
- }
124
-
125
- .sourceLink {
126
- color: var(--accent-80p);
127
- text-decoration: underline;
128
- text-decoration-color: var(--accent-50p);
129
- text-underline-offset: 0.15em;
130
- font-style: italic;
131
- transition: color var(--transition-fast) ease;
132
- }
133
-
134
- .sourceLink:hover {
135
- color: var(--accent-90p);
136
- }
@@ -1,26 +0,0 @@
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
- }
16
-
17
- @media (max-width: 768px) {
18
- .list {
19
- gap: 1rem;
20
- margin: 1.5rem auto;
21
- }
22
-
23
- .item {
24
- max-width: 100%;
25
- }
26
- }
@@ -1,22 +0,0 @@
1
- .h1,
2
- .description {
3
- text-align: center;
4
- }
5
-
6
- .h1 {
7
- margin-top: 1.5em;
8
- text-shadow: var(--stalux-text-shadow);
9
- font-size: 2.5em;
10
- }
11
-
12
- .description {
13
- margin-bottom: 1.5em;
14
- font-size: 1.2em;
15
- color: var(--white-60p);
16
- }
17
-
18
- .archivesContainer {
19
- max-width: 1000px;
20
- margin: 0 auto; /* 水平居中 */
21
- padding: 2rem 1rem;
22
- }
@@ -1,17 +0,0 @@
1
- .title,
2
- .description {
3
- text-align: center;
4
- }
5
-
6
- .title {
7
- margin-top: 1.5em;
8
- justify-content: center;
9
- text-shadow: var(--stalux-text-shadow);
10
- font-size: 2.5em;
11
- }
12
-
13
- .description {
14
- margin-bottom: 1.5em;
15
- font-size: 1.2em;
16
- color: var(--white-60p);
17
- }
@@ -1,61 +0,0 @@
1
- .homeBody {
2
- display: flex;
3
- flex-direction: column;
4
- align-items: center;
5
- min-height: 100vh;
6
- padding-bottom: var(--space-3xl);
7
- position: relative;
8
- }
9
-
10
- .homeTitle {
11
- font-size: 4em;
12
- margin-top: 1.5em;
13
- text-shadow: var(--stalux-text-shadow);
14
- text-align: center;
15
- color: var(--white-full);
16
- }
17
-
18
- .homeNavs {
19
- display: flex;
20
- width: 100%;
21
- order: -1;
22
- min-width: 0;
23
- max-width: 100%;
24
- justify-content: center;
25
- }
26
-
27
- #showPostList {
28
- margin-top: 3em;
29
- font-size: 1.5em;
30
- cursor: pointer;
31
- text-shadow: var(--stalux-text-shadow);
32
- }
33
-
34
- /* 移动端响应式优化 */
35
- @media (max-width: 768px) {
36
- .homeBody {
37
- height: auto;
38
- padding: 2rem 0.5rem 1.5rem 0.5rem;
39
- max-width: 95vw;
40
- width: 100%;
41
- box-sizing: border-box;
42
- }
43
- .homeTitle {
44
- font-size: 2em;
45
- margin-top: 1em;
46
- word-break: break-all;
47
- }
48
- .homeNavs {
49
- flex-direction: column;
50
- align-items: center;
51
- gap: 0.5em;
52
- }
53
-
54
- .homeNavs :global(nav) {
55
- width: 100%;
56
- }
57
- #showPostList {
58
- margin-top: 2em;
59
- font-size: 1.1em;
60
- }
61
- }
@@ -1,16 +0,0 @@
1
- .title,
2
- .description {
3
- text-align: center;
4
- }
5
-
6
- .title {
7
- margin-top: 1.5em;
8
- text-shadow: var(--stalux-text-shadow);
9
- font-size: 2.5em;
10
- }
11
-
12
- .description {
13
- margin-bottom: 1.5em;
14
- font-size: 1.2em;
15
- color: var(--white-60p);
16
- }
@@ -1,16 +0,0 @@
1
- .title,
2
- .description {
3
- text-align: center;
4
- }
5
-
6
- .title {
7
- margin-top: 1.5em;
8
- text-shadow: var(--stalux-text-shadow);
9
- font-size: 2.5em;
10
- }
11
-
12
- .description {
13
- margin-bottom: 1.5em;
14
- font-size: 1.2em;
15
- color: var(--white-60p);
16
- }
@@ -1,16 +0,0 @@
1
- .title,
2
- .description {
3
- text-align: center;
4
- }
5
-
6
- .title {
7
- margin-top: 1.5em;
8
- text-shadow: var(--stalux-text-shadow);
9
- font-size: 2.5em;
10
- }
11
-
12
- .description {
13
- margin-bottom: 1.5em;
14
- font-size: 1.2em;
15
- color: var(--white-60p);
16
- }