Skip to content

Commit 15d3a04

Browse files
authored
Add files via upload
1 parent 5f87a8d commit 15d3a04

1 file changed

Lines changed: 31 additions & 17 deletions

File tree

frontend/css/styles.css

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ body {
158158
font-size: 13px;
159159
font-weight: 500;
160160
cursor: pointer;
161-
transition: all 0.15s;
161+
transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
162162
display: inline-flex;
163163
align-items: center;
164164
gap: 6px;
@@ -306,7 +306,7 @@ body {
306306
background: var(--card);
307307
color: var(--text-muted);
308308
cursor: pointer;
309-
transition: all 0.15s;
309+
transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
310310
flex-shrink: 0;
311311
font-size: 15px;
312312
}
@@ -561,7 +561,7 @@ body {
561561
height: 18px;
562562
background: var(--border);
563563
border-radius: 9px;
564-
transition: all 0.2s;
564+
transition: background 0.2s;
565565
}
566566

567567
.toggle-slider::before {
@@ -573,7 +573,7 @@ body {
573573
top: 2px;
574574
background: white;
575575
border-radius: 50%;
576-
transition: all 0.2s;
576+
transition: transform 0.2s;
577577
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
578578
}
579579

@@ -606,7 +606,7 @@ body {
606606
display: flex;
607607
align-items: center;
608608
gap: 4px;
609-
transition: all 0.15s;
609+
transition: border-color 0.15s, background 0.15s, color 0.15s;
610610
max-width: 200px;
611611
}
612612

@@ -675,7 +675,7 @@ body {
675675
display: flex;
676676
align-items: center;
677677
justify-content: center;
678-
transition: all 0.15s;
678+
transition: background 0.15s, border-color 0.15s;
679679
flex-shrink: 0;
680680
}
681681

@@ -803,7 +803,7 @@ body {
803803
border-radius: 5px;
804804
font-size: 12px;
805805
cursor: pointer;
806-
transition: all 0.15s;
806+
transition: background 0.15s, border-color 0.15s, color 0.15s;
807807
user-select: none;
808808
}
809809

@@ -1584,7 +1584,7 @@ body {
15841584
border-radius: 5px;
15851585
cursor: pointer;
15861586
font-size: 12px;
1587-
transition: all 0.15s;
1587+
transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
15881588
color: var(--text);
15891589
}
15901590

@@ -1834,7 +1834,7 @@ tr:last-child td {
18341834
border-radius: 6px;
18351835
cursor: pointer;
18361836
font-size: 13px;
1837-
transition: all 0.15s;
1837+
transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
18381838
color: var(--text);
18391839
}
18401840

@@ -1931,7 +1931,7 @@ tr:last-child td {
19311931
z-index: 1000;
19321932
opacity: 0;
19331933
visibility: hidden;
1934-
transition: all 0.2s;
1934+
transition: opacity 0.2s, visibility 0.2s;
19351935
}
19361936

19371937
.modal-overlay.show {
@@ -1946,7 +1946,7 @@ tr:last-child td {
19461946
padding: 28px;
19471947
width: 90%;
19481948
max-width: 480px;
1949-
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
1949+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
19501950
transform: scale(0.95) translateY(10px);
19511951
transition: transform 0.2s;
19521952
}
@@ -2059,7 +2059,7 @@ tr:last-child td {
20592059
display: flex;
20602060
align-items: center;
20612061
justify-content: center;
2062-
transition: all 0.15s;
2062+
transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
20632063
}
20642064

20652065
.modal-close-btn:hover {
@@ -2329,7 +2329,7 @@ tr:last-child td {
23292329
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
23302330
transform: translateY(80px);
23312331
opacity: 0;
2332-
transition: all 0.25s;
2332+
transition: transform 0.25s, opacity 0.25s;
23332333
z-index: 2000;
23342334
}
23352335

@@ -2400,7 +2400,7 @@ tr:last-child td {
24002400
align-items: center;
24012401
justify-content: center;
24022402
cursor: help;
2403-
transition: all 0.15s;
2403+
transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
24042404
flex-shrink: 0;
24052405
margin-left: 3px;
24062406
}
@@ -2518,7 +2518,7 @@ tr:last-child td {
25182518
/* ========== 收藏功能样式 ========== */
25192519
.fav-star-btn {
25202520
position: relative;
2521-
transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
2521+
transition: background 0.3s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.3s, color 0.3s, transform 0.3s;
25222522
}
25232523
.fav-star-btn svg {
25242524
transition: fill 0.3s cubic-bezier(0.32, 0.72, 0, 1), stroke 0.3s;
@@ -2778,6 +2778,9 @@ tr:last-child td {
27782778
.fav-item:hover::before {
27792779
opacity: 1;
27802780
}
2781+
.fav-item-no-anim {
2782+
animation: none;
2783+
}
27812784
@keyframes favItemIn {
27822785
from { opacity: 0; transform: translateY(6px); }
27832786
to { opacity: 1; transform: translateY(0); }
@@ -3372,7 +3375,7 @@ tr:last-child td {
33723375
display: flex;
33733376
align-items: center;
33743377
justify-content: center;
3375-
transition: all 0.15s;
3378+
transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
33763379
}
33773380
.update-banner-close:hover {
33783381
background: rgba(0,0,0,0.06);
@@ -3414,7 +3417,7 @@ tr:last-child td {
34143417
cursor: pointer;
34153418
color: var(--text-muted);
34163419
font-size: 13px;
3417-
transition: all 0.2s;
3420+
transition: background 0.2s, border-color 0.2s, color 0.2s;
34183421
margin-bottom: 4px;
34193422
}
34203423
.iconhash-dropzone:hover,
@@ -3453,3 +3456,14 @@ tr:last-child td {
34533456
display: flex;
34543457
gap: 8px;
34553458
}
3459+
3460+
@media (prefers-reduced-motion: reduce) {
3461+
*,
3462+
*::before,
3463+
*::after {
3464+
animation: none !important;
3465+
transition-duration: 0.01ms !important;
3466+
transition-delay: 0ms !important;
3467+
scroll-behavior: auto !important;
3468+
}
3469+
}

0 commit comments

Comments
 (0)