@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.
@@ -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: all 0.3s ease;
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: all 0.2s ease;
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
- background: rgba(var(--waline-accent-rgb), 0.7) !important;
80
- transform: none;
81
- box-shadow: none !important;
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
- background: rgba(var(--waline-accent-rgb), 0.7) !important;
90
- transform: none;
91
- box-shadow: none !important;
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: all 0.3s ease;
108
- }
109
-
110
- .wl-card:hover {
111
- transform: translateY(-3px);
112
- box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
113
- border-color: rgba(var(--waline-accent-rgb), 0.3) !important;
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: all 0.2s ease;
121
- }
122
-
123
- .wl-nick:hover {
124
- color: rgba(var(--waline-accent-rgb), 1) !important;
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: all 0.2s ease;
156
+ transition:
157
+ background-color 180ms ease,
158
+ border-color 180ms ease,
159
+ color 180ms ease;
139
160
  }
140
-
141
- .wl-reply:hover {
142
- opacity: 1;
143
- text-decoration: none;
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: all 0.2s ease;
160
- }
161
-
162
- .wl-emoji-popup button:hover {
163
- background-color: rgba(var(--waline-accent-rgb), 0.2);
164
- transform: scale(1.05);
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: all 0.3s ease;
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
- transform: translateY(-3px);
199
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
200
- background-color: rgba(40, 40, 40, 0.8) !important;
201
- border-color: rgba(var(--waline-accent-rgb), 0.3) !important;
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
- transform: scale(1.15);
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: all 0.2s ease;
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
- color: var(--white-90p);
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: all 0.2s ease;
272
- }
273
-
274
- .wl-page button:hover:not(:disabled) {
275
- background: rgba(var(--waline-accent-rgb), 0.7) !important;
276
- color: var(--white-full) !important;
277
- transform: translateY(-2px);
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: all 0.2s ease;
297
- }
298
-
299
- .wl-power a:hover {
300
- color: rgba(var(--waline-accent-rgb), 1);
301
- text-decoration: underline;
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
+ }
@@ -244,10 +244,10 @@
244
244
  @layer components {
245
245
  @keyframes stalux-link-avatar-spin {
246
246
  from {
247
- transform: rotate(0deg) scale(1.04);
247
+ transform: rotate(0deg);
248
248
  }
249
249
  to {
250
- transform: rotate(360deg) scale(1.04);
250
+ transform: rotate(360deg);
251
251
  }
252
252
  }
253
253
  }