@xingwangzhe/stalux 1.30.3 → 1.31.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.
- package/README.md +2 -0
- package/package.json +1 -1
- package/src/components/stalux/categories/categoriesCard.astro +33 -31
- package/src/components/stalux/layout/BackToTop.astro +69 -0
- package/src/components/stalux/links/linkCard.astro +15 -13
- package/src/components/stalux/posts/postCard.astro +1 -1
- package/src/internal/html-images.ts +65 -0
- package/src/internal/image-dimensions.ts +10 -20
- package/src/layouts/Stalux.astro +2 -0
- package/src/plugins/feature-flags.ts +20 -38
- package/src/scripts/back-to-top.ts +23 -0
- package/src/styles/base.css +96 -9
- package/src/styles/content.css +88 -18
- package/src/styles/generated-article.css +1 -1
- package/src/styles/generated-categories.css +1 -1
- package/src/styles/generated-links.css +1 -1
- package/src/styles/generated-prose.css +1 -1
- package/src/styles/generated-tags.css +1 -1
- package/src/styles/generated-waline.css +1 -1
- package/src/styles/generated-words.css +1 -1
- package/src/styles/generated.css +1 -1
- package/src/styles/integrations.css +130 -62
- package/src/styles/motion.css +2 -2
|
@@ -39,7 +39,11 @@
|
|
|
39
39
|
color: var(--white-90p) !important;
|
|
40
40
|
border: 1px solid rgba(100, 100, 100, 0.3) !important;
|
|
41
41
|
border-radius: 8px;
|
|
42
|
-
transition:
|
|
42
|
+
transition:
|
|
43
|
+
background-color 200ms ease,
|
|
44
|
+
border-color 200ms ease,
|
|
45
|
+
box-shadow 200ms ease,
|
|
46
|
+
color 200ms ease;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
/* 输入框焦点状态 */
|
|
@@ -70,25 +74,30 @@
|
|
|
70
74
|
color: var(--white-full) !important;
|
|
71
75
|
border: none !important;
|
|
72
76
|
border-radius: 6px;
|
|
73
|
-
transition:
|
|
77
|
+
transition:
|
|
78
|
+
background-color 180ms ease,
|
|
79
|
+
border-color 180ms ease,
|
|
80
|
+
color 180ms ease;
|
|
74
81
|
font-weight: 500;
|
|
75
82
|
padding: 8px 15px;
|
|
76
83
|
}
|
|
77
|
-
|
|
78
|
-
.wl-btn:hover {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
@media (hover: hover) and (pointer: fine) {
|
|
85
|
+
.wl-btn:hover {
|
|
86
|
+
background: rgba(var(--waline-accent-rgb), 0.7) !important;
|
|
87
|
+
transform: none;
|
|
88
|
+
box-shadow: none !important;
|
|
89
|
+
}
|
|
82
90
|
}
|
|
83
91
|
|
|
84
92
|
.wl-btn.primary {
|
|
85
93
|
background: rgba(var(--waline-accent-rgb), 0.6) !important;
|
|
86
94
|
}
|
|
87
|
-
|
|
88
|
-
.wl-btn.primary:hover {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
95
|
+
@media (hover: hover) and (pointer: fine) {
|
|
96
|
+
.wl-btn.primary:hover {
|
|
97
|
+
background: rgba(var(--waline-accent-rgb), 0.7) !important;
|
|
98
|
+
transform: none;
|
|
99
|
+
box-shadow: none !important;
|
|
100
|
+
}
|
|
92
101
|
}
|
|
93
102
|
|
|
94
103
|
/* 标签文字颜色 */
|
|
@@ -104,24 +113,33 @@
|
|
|
104
113
|
padding: 1.2rem;
|
|
105
114
|
margin-top: 1.2rem;
|
|
106
115
|
border: 1px solid rgba(70, 70, 70, 0.2) !important;
|
|
107
|
-
transition:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
transition:
|
|
117
|
+
background-color 200ms ease,
|
|
118
|
+
border-color 200ms ease,
|
|
119
|
+
box-shadow 200ms ease,
|
|
120
|
+
color 200ms ease;
|
|
121
|
+
}
|
|
122
|
+
@media (hover: hover) and (pointer: fine) {
|
|
123
|
+
.wl-card:hover {
|
|
124
|
+
transform: none;
|
|
125
|
+
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
|
|
126
|
+
border-color: rgba(var(--waline-accent-rgb), 0.3) !important;
|
|
127
|
+
}
|
|
114
128
|
}
|
|
115
129
|
|
|
116
130
|
/* 修改用户名样式 */
|
|
117
131
|
.wl-nick {
|
|
118
132
|
color: rgba(var(--waline-accent-rgb), 0.95) !important;
|
|
119
133
|
font-weight: 600;
|
|
120
|
-
transition:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
134
|
+
transition:
|
|
135
|
+
background-color 180ms ease,
|
|
136
|
+
border-color 180ms ease,
|
|
137
|
+
color 180ms ease;
|
|
138
|
+
}
|
|
139
|
+
@media (hover: hover) and (pointer: fine) {
|
|
140
|
+
.wl-nick:hover {
|
|
141
|
+
color: rgba(var(--waline-accent-rgb), 1) !important;
|
|
142
|
+
}
|
|
125
143
|
}
|
|
126
144
|
|
|
127
145
|
/* 评论内容样式 */
|
|
@@ -135,12 +153,16 @@
|
|
|
135
153
|
/* 回复按钮样式 */
|
|
136
154
|
.wl-reply {
|
|
137
155
|
opacity: 0.8;
|
|
138
|
-
transition:
|
|
156
|
+
transition:
|
|
157
|
+
background-color 180ms ease,
|
|
158
|
+
border-color 180ms ease,
|
|
159
|
+
color 180ms ease;
|
|
139
160
|
}
|
|
140
|
-
|
|
141
|
-
.wl-reply:hover {
|
|
142
|
-
|
|
143
|
-
|
|
161
|
+
@media (hover: hover) and (pointer: fine) {
|
|
162
|
+
.wl-reply:hover {
|
|
163
|
+
opacity: 1;
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
}
|
|
144
166
|
}
|
|
145
167
|
|
|
146
168
|
/* 表情面板样式 */
|
|
@@ -156,12 +178,16 @@
|
|
|
156
178
|
/* 表情按钮样式 */
|
|
157
179
|
.wl-emoji-popup button {
|
|
158
180
|
border-radius: 6px;
|
|
159
|
-
transition:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
181
|
+
transition:
|
|
182
|
+
background-color 180ms ease,
|
|
183
|
+
border-color 180ms ease,
|
|
184
|
+
color 180ms ease;
|
|
185
|
+
}
|
|
186
|
+
@media (hover: hover) and (pointer: fine) {
|
|
187
|
+
.wl-emoji-popup button:hover {
|
|
188
|
+
background-color: rgba(var(--waline-accent-rgb), 0.2);
|
|
189
|
+
transform: scale(1.05);
|
|
190
|
+
}
|
|
165
191
|
}
|
|
166
192
|
|
|
167
193
|
/* 文章评价反应区域 */
|
|
@@ -190,15 +216,20 @@
|
|
|
190
216
|
background-color: rgba(30, 30, 30, 0.5) !important;
|
|
191
217
|
border-radius: 8px;
|
|
192
218
|
margin: 5px;
|
|
193
|
-
transition:
|
|
219
|
+
transition:
|
|
220
|
+
background-color 200ms ease,
|
|
221
|
+
border-color 200ms ease,
|
|
222
|
+
box-shadow 200ms ease,
|
|
223
|
+
color 200ms ease;
|
|
194
224
|
border: 1px solid rgba(70, 70, 70, 0.2) !important;
|
|
195
225
|
}
|
|
196
|
-
|
|
197
|
-
.wl-reaction-item:hover {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
226
|
+
@media (hover: hover) and (pointer: fine) {
|
|
227
|
+
.wl-reaction-item:hover {
|
|
228
|
+
transform: none;
|
|
229
|
+
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
|
230
|
+
background-color: rgba(40, 40, 40, 0.8) !important;
|
|
231
|
+
border-color: rgba(var(--waline-accent-rgb), 0.3) !important;
|
|
232
|
+
}
|
|
202
233
|
}
|
|
203
234
|
|
|
204
235
|
.wl-reaction-img {
|
|
@@ -208,9 +239,10 @@
|
|
|
208
239
|
.wl-reaction-img img {
|
|
209
240
|
transition: transform 0.3s ease;
|
|
210
241
|
}
|
|
211
|
-
|
|
212
|
-
.wl-reaction-item:hover .wl-reaction-img img {
|
|
213
|
-
|
|
242
|
+
@media (hover: hover) and (pointer: fine) {
|
|
243
|
+
.wl-reaction-item:hover .wl-reaction-img img {
|
|
244
|
+
transform: scale(1.05);
|
|
245
|
+
}
|
|
214
246
|
}
|
|
215
247
|
|
|
216
248
|
.wl-reaction-votes {
|
|
@@ -242,12 +274,16 @@
|
|
|
242
274
|
|
|
243
275
|
.wl-sort li {
|
|
244
276
|
@apply cursor-pointer;
|
|
245
|
-
transition:
|
|
277
|
+
transition:
|
|
278
|
+
background-color 180ms ease,
|
|
279
|
+
border-color 180ms ease,
|
|
280
|
+
color 180ms ease;
|
|
246
281
|
color: var(--white-70p);
|
|
247
282
|
}
|
|
248
|
-
|
|
249
|
-
.wl-sort li:hover {
|
|
250
|
-
|
|
283
|
+
@media (hover: hover) and (pointer: fine) {
|
|
284
|
+
.wl-sort li:hover {
|
|
285
|
+
color: var(--white-90p);
|
|
286
|
+
}
|
|
251
287
|
}
|
|
252
288
|
|
|
253
289
|
.wl-sort li.active {
|
|
@@ -268,13 +304,17 @@
|
|
|
268
304
|
border-radius: 6px;
|
|
269
305
|
margin: 0 5px;
|
|
270
306
|
padding: 5px 10px;
|
|
271
|
-
transition:
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
307
|
+
transition:
|
|
308
|
+
background-color 180ms ease,
|
|
309
|
+
border-color 180ms ease,
|
|
310
|
+
color 180ms ease;
|
|
311
|
+
}
|
|
312
|
+
@media (hover: hover) and (pointer: fine) {
|
|
313
|
+
.wl-page button:hover:not(:disabled) {
|
|
314
|
+
background: rgba(var(--waline-accent-rgb), 0.7) !important;
|
|
315
|
+
color: var(--white-full) !important;
|
|
316
|
+
transform: none;
|
|
317
|
+
}
|
|
278
318
|
}
|
|
279
319
|
|
|
280
320
|
.wl-page button.active {
|
|
@@ -293,12 +333,16 @@
|
|
|
293
333
|
.wl-power a {
|
|
294
334
|
color: rgba(var(--waline-accent-rgb), 0.9);
|
|
295
335
|
text-decoration: none;
|
|
296
|
-
transition:
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
336
|
+
transition:
|
|
337
|
+
background-color 180ms ease,
|
|
338
|
+
border-color 180ms ease,
|
|
339
|
+
color 180ms ease;
|
|
340
|
+
}
|
|
341
|
+
@media (hover: hover) and (pointer: fine) {
|
|
342
|
+
.wl-power a:hover {
|
|
343
|
+
color: rgba(var(--waline-accent-rgb), 1);
|
|
344
|
+
text-decoration: underline;
|
|
345
|
+
}
|
|
302
346
|
}
|
|
303
347
|
|
|
304
348
|
/* 评论为空状态 */
|
|
@@ -433,3 +477,27 @@
|
|
|
433
477
|
align-items: flex-start;
|
|
434
478
|
}
|
|
435
479
|
}
|
|
480
|
+
|
|
481
|
+
.waline-comment-container,
|
|
482
|
+
.waline-comment-container *,
|
|
483
|
+
.wl-panel,
|
|
484
|
+
.wl-content {
|
|
485
|
+
box-sizing: border-box;
|
|
486
|
+
min-width: 0;
|
|
487
|
+
max-width: 100%;
|
|
488
|
+
overflow-wrap: anywhere;
|
|
489
|
+
}
|
|
490
|
+
@media (hover: none) {
|
|
491
|
+
.wl-reaction-img img {
|
|
492
|
+
transform: none;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
@media (prefers-reduced-motion: reduce) {
|
|
496
|
+
.waline-comment-container *,
|
|
497
|
+
.waline-comment-container *::before,
|
|
498
|
+
.waline-comment-container *::after {
|
|
499
|
+
animation: none !important;
|
|
500
|
+
transition: none !important;
|
|
501
|
+
transform: none !important;
|
|
502
|
+
}
|
|
503
|
+
}
|
package/src/styles/motion.css
CHANGED
|
@@ -244,10 +244,10 @@
|
|
|
244
244
|
@layer components {
|
|
245
245
|
@keyframes stalux-link-avatar-spin {
|
|
246
246
|
from {
|
|
247
|
-
transform: rotate(0deg)
|
|
247
|
+
transform: rotate(0deg);
|
|
248
248
|
}
|
|
249
249
|
to {
|
|
250
|
-
transform: rotate(360deg)
|
|
250
|
+
transform: rotate(360deg);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
}
|