Skip to content

Commit a5d0097

Browse files
author
iChochy
committed
fix
1 parent 1d4fd4a commit a5d0097

12 files changed

Lines changed: 148 additions & 74 deletions

File tree

‎CNAME‎

100755100644
File mode changed.

‎LICENSE‎

100755100644
File mode changed.

‎README.md‎

100755100644
File mode changed.

‎css/style.css‎

100755100644
Lines changed: 58 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
--accent-3: rgba(224, 78, 57, 0.18);
3232
--accent-strong: rgba(224, 78, 57, 0.35);
3333
--teal: #1f8a7a;
34+
--blue-accent: #3b82f6;
3435

3536
--glass: rgba(255, 255, 255, 0.78);
3637
--glass-strong: rgba(255, 255, 255, 0.92);
@@ -71,6 +72,7 @@ body.dark-theme {
7172
--accent-3: rgba(255, 107, 74, 0.2);
7273
--accent-strong: rgba(255, 107, 74, 0.4);
7374
--teal: #3ad8c1;
75+
--blue-accent: #60a5fa;
7476

7577
--glass: rgba(20, 26, 32, 0.88);
7678
--glass-strong: rgba(20, 26, 32, 0.96);
@@ -445,10 +447,12 @@ body.dark-theme .book-info {
445447
min-width: 0;
446448
overflow: hidden;
447449
display: flex;
448-
flex-direction: column;
449-
align-items: flex-start;
450-
justify-content: center;
450+
flex-direction: row;
451+
align-items: center;
452+
justify-content: flex-start;
451453
text-align: left;
454+
gap: 8px;
455+
flex-wrap: wrap;
452456
}
453457

454458
.book-title-row {
@@ -461,8 +465,8 @@ body.dark-theme .book-info {
461465

462466
.unit-title-group label {
463467
display: flex;
464-
width: min(100%, 280px);
465-
margin: 3px;
468+
width: auto;
469+
margin: 0;
466470
}
467471

468472
.book-select-title {
@@ -688,7 +692,8 @@ body.dark-theme .control-panel {
688692
}
689693

690694
.progress-container {
691-
margin: 0px 10px;
695+
height: 8px;
696+
margin: 0px 5px;
692697
}
693698

694699
.time-display {
@@ -836,6 +841,20 @@ body.dark-theme .control-panel {
836841
transform: translateY(-1px);
837842
}
838843

844+
.loop-toggle-btn.click {
845+
background: var(--blue-accent);
846+
border-color: var(--blue-accent);
847+
color: #ffffff;
848+
box-shadow: 0 8px 16px rgba(59, 130, 246, 0.35);
849+
}
850+
851+
.loop-toggle-btn.click:hover {
852+
background: var(--blue-accent);
853+
border-color: var(--blue-accent);
854+
color: #ffffff;
855+
transform: translateY(-1px);
856+
}
857+
839858
/* 默认显示循环图标,隐藏单句图标 */
840859
.loop-toggle-btn .repeat-one-icon {
841860
display: none;
@@ -852,6 +871,14 @@ body.dark-theme .control-panel {
852871
display: inline-block;
853872
}
854873

874+
/* click 模式:显示单句图标,隐藏循环图标 */
875+
.loop-toggle-btn.click .loop-icon {
876+
display: none;
877+
}
878+
.loop-toggle-btn.click .repeat-one-icon {
879+
display: inline-block;
880+
}
881+
855882
.lyrics-container {
856883
flex: 1;
857884
min-height: 0;
@@ -911,6 +938,22 @@ body.hide-translation .lyric-text {
911938
font-size: 20px;
912939
}
913940

941+
body.only-chinese-translation .lyric-text {
942+
display: none;
943+
}
944+
945+
body.only-chinese-translation .lyric-translation {
946+
font-size: 18px;
947+
color: var(--ink-1);
948+
font-weight: 600;
949+
line-height: 1.5;
950+
}
951+
952+
body.only-chinese-translation .lyric-line.active .lyric-translation {
953+
color: var(--accent-1);
954+
font-weight: 650;
955+
}
956+
914957
body.blur-translation .lyric-translation,
915958
body.blur-translation .lyric-text {
916959
filter: blur(4px);
@@ -1302,8 +1345,8 @@ body::-webkit-scrollbar-thumb:hover,
13021345
}
13031346

13041347
.book-cover {
1305-
width: 48px;
1306-
height: 48px;
1348+
width: 64px;
1349+
height: 64px;
13071350
}
13081351

13091352
.unit-info {
@@ -1317,6 +1360,12 @@ body::-webkit-scrollbar-thumb:hover,
13171360
text-align: left;
13181361
}
13191362

1363+
.unit-title-group {
1364+
flex-direction: column;
1365+
align-items: flex-start;
1366+
gap: 4px;
1367+
}
1368+
13201369
.unit-title-group label,
13211370
.book-info > label {
13221371
width: auto;
@@ -1325,6 +1374,7 @@ body::-webkit-scrollbar-thumb:hover,
13251374
.unit-title-group label {
13261375
padding: 0px 10px;
13271376
max-width: 100%;
1377+
width: auto;
13281378
}
13291379

13301380
.book-info > label {

‎favicon.png‎

100755100644
File mode changed.

‎index.html‎

100755100644
File mode changed.

0 commit comments

Comments
 (0)