-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
3847 lines (3303 loc) · 82.2 KB
/
style.css
File metadata and controls
3847 lines (3303 loc) · 82.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@import url('https://fonts.googleapis.com/css2?family=Iansui&display=swap');
@font-face {
font-family: '源石黑體';
src: local('源石黑體');
}
@font-face {
font-family: '源石黑體';
src: local('GenSekiGothic TW R');
font-weight: 700 !important;
}
@keyframes pulse-yellow-effect {
0% {
/* 開始同結束時个顏色 (用變數定義个暫停黃色) */
background-color: var(--paused-yellow);
}
50% {
/* 動畫中間點个顏色 (做得調整 alpha 值分佢較透明) */
background-color: rgba(var(--paused-yellow-rgb, 255, 250, 205), 0.3);
/* 預設用 LemonChiffon RGB */
}
100% {
/* 回到開始个顏色 */
background-color: var(--paused-yellow);
}
}
/* 暗夜模式个動畫 (用不同个基礎顏色) */
@keyframes pulse-dark-yellow-effect {
0% {
background-color: var(--dark-paused-yellow);
/* 暗夜模式个黃色 */
}
50% {
/* 暗夜模式下,做得調整 alpha 值分佢較暗或較透明 */
background-color: rgba(var(--dark-paused-yellow-rgb, 255, 255, 150), 0.3);
/* 預設用暗夜黃色 RGB */
}
100% {
background-color: var(--dark-paused-yellow);
}
}
/* --- Loading Indicator Styles --- */
#loading-indicator {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.9);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 9999;
}
#loading-text {
font-size: 1.2em;
margin-top: 20px;
color: #333;
}
.spinner {
border: 8px solid #f3f3f3;
border-top: 8px solid #3498db;
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 1.5s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
:root {
--title-font: 'PT Sans', 'Heiti TC', 'Heiti SC', '源石黑體', 'jf open 粉圓 2.0', tauhu-oo, Iansui, sans-serif;
--roman-font: 'jf金萱那提2.0', tauhu-oo, Iansui, sans-serif;
--main-text-color: #245d48;
--iMazinGrace-1: #aa96b7;
--iMazinGrace-1-rgb: 170, 150, 183;
/* 新增 RGB 版本方便用 rgba() */
--paused-yellow-rgb: 255, 250, 205;
/* RGB 版本方便用 rgba() */
--paused-yellow: rgba(var(--paused-yellow-rgb), 1);
/* 改用 rgba 確保一致 */
/* --- Focus Glow Variables (Light Mode) --- */
--focus-glow-color: rgba(59, 130, 246, 0.65);
/* 日時頭用較亮个藍色 */
--focus-glow-blur: 6px;
--focus-glow-spread: 1px;
--popup-btn-bg: #e9ecef;
--popup-btn-border: #ced4da;
--popup-btn-text: #495057;
--popup-btn-bg-hover: #dee2e6;
}
/* radio button style from <https: //webspe.net/tools/en/radio-button/> */
.radioItem {
display: inline-flex;
align-items: center;
column-gap: 4px;
line-height: 1;
cursor: pointer;
border: 2px solid transparent;
/* 預留邊框空間 */
border-radius: 8px;
/* 預設圓角 */
padding: 2px 5px;
/* 預設內距 */
margin-right: 8px;
/* 稍微調整間距 */
transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
/* 可選:平滑過渡效果 */
}
.radioItem:not(:last-of-type) {
margin-right: 16px;
}
.radioButton {
appearance: none;
position: relative;
width: 20px;
height: 20px;
border: 2px solid #06b6d4;
border-radius: 9999px;
background-color: #dddddd;
cursor: pointer;
}
.radioButton:checked {
background-color: transparent;
}
/* --- Global Focus Glow Style --- */
:is(button, select, textarea, a, input):focus-visible,
[contenteditable="true"]:focus-visible {
outline: none;
/* 拿忒預設个 outline,改用 box-shadow 做光暈 */
box-shadow: 0 0 var(--focus-glow-blur) var(--focus-glow-spread) var(--focus-glow-color);
transition: box-shadow 0.15s ease-in-out;
/* 光暈出現/消失个平滑過渡 */
}
/* --- Specific Focus Adjustments --- */
/* 確保腔調級別連結个 focus 光暈有圓角 */
.dialect>span[data-varname]>a:focus-visible {
border-radius: 6px;
/* 比佢外背 span 个 8px 細一息仔,較好看 */
}
/* 確保進度詳情連結个 focus 光暈也有圓角 */
#progressDetails>a:focus-visible {
border-radius: 4px;
/* 設定一個適中个圓角 */
}
.radioButton:checked::after {
content: '';
position: absolute;
inset: 0;
width: 12px;
height: 12px;
margin: auto;
border: 2px solid #06b6d4;
border-radius: 9999px;
}
/* Mine */
td[data-label="詞彙"],
.pronunciation-text {
ruby {
font-family: var(--title-font) !important;
font-size: 1.5em;
font-weight: 700;
}
rt,
ruby[class^="sandhi-"] {
/* 改用屬性選擇器 */
font-size: 1em;
font-family: var(--roman-font) !important;
margin-bottom: 0.3em;
}
ruby[class^="sandhi-"] {
/* 改用屬性選擇器 */
font-size: revert !important;
/* font-family: initial !important; */
rt {
font-size: initial !important;
color: inherit;
}
}
rt {
/*font-size: initial !important;*/
color: inherit;
}
}
.sentence rt {
font-size: 70%;
}
ruby.sandhi-高降變 {
color: red;
}
ruby.sandhi-中平變 {
color: darkorchid;
}
ruby.sandhi-低升變 {
color: blue;
}
body {
font-size: 20px;
}
body,
body * {
font-family: Iansui, '霞鶩文楷 TC', 'LXGW WenKai', tauhu-oo, serif;
line-height: 1.8em;
color: var(--main-text-color);
}
.title-container {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
#main-content h2 {
margin-right: 1em;
margin-bottom: 0;
margin-top: 0;
}
#main-content h4 {
margin: 0;
line-height: 1.2em;
}
#main-content h2 a {
text-decoration: none;
display: block;
}
@media screen and (max-width: 768px) {
.title-container {
flex-direction: column;
text-align: center;
}
#main-content h2 {
margin-right: 0;
margin-bottom: 0.5em;
}
}
#main-content h2 img {
height: 1.8em;
border-radius: 50%;
vertical-align: middle;
margin-right: 10px;
}
/*table {
table-layout: fixed;
width: 100%;
}*/
td {
padding: 1em;
/*max-width: 60vw;*/
}
tr:nth-child(even) {
background-color: rgba(103, 140, 63, 0.5);
}
a {
color: #678c3f;
}
.media {
height: 1em;
border-radius: 1em;
}
/* audio {
max-width: 5em;
}*/
/* 同狹螢幕做成卡片以後就毋使吔,td 差毋多都有罅闊 */
.no {
font-family: 'Operator Mono';
}
.sentence,
.sentence * {
font-family: 'Marion', 'Marion+jfBunguan', tauhu-oo, cursive;
text-decoration: underline;
}
#header {
position: sticky;
top: 10px;
background: rgba(170, 150, 183, 0.5);
backdrop-filter: blur(5px);
z-index: 10;
padding: 4px 15px;
/* 微調 padding */
display: flex;
/* 改用 Flexbox 排版 */
align-items: center;
/* 垂直置中 */
justify-content: flex-start;
/* <--- 改為從頭開始對齊 */
/* flex-wrap: wrap; /* 改做做得換行 */
gap: 10px;
/* 項目之間的間距 */
font-family: var(--title-font);
}
.bookmarkBtn {
background: none;
border: none;
cursor: pointer;
}
.bookmarkBtn,
.crossDialectBtn {
background: none;
border: none;
cursor: pointer;
padding: 0;
margin: 0 3px;
vertical-align: middle;
}
.bookmarkBtn i {
color: var(--iMazinGrace-1) !important;
}
/* --- New Number Button Style for Issue #198 --- */
.bookmarkBtn.number-btn {
font-family: 'Operator Mono';
font-size: 1rem;
/* Match the original .no column size */
color: var(--main-text-color);
/* Default text color */
display: inline-flex;
align-items: center;
gap: 4px;
/* Space between number and icon */
padding: 4px 8px;
border-radius: 4px;
/* Make it look like a button by default */
background-color: rgba(255, 255, 255, 0.5);
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
transition: all 0.2s ease;
}
.bookmarkBtn.number-btn:hover {
background-color: rgba(var(--iMazinGrace-1-rgb), 0.2);
/* Light highlight on hover */
/* color: var(--iMazinGrace-1); */
}
/* Make the icon slightly smaller or subtler when part of the number button */
.bookmarkBtn.number-btn i {
font-size: 0.8em;
opacity: 0.5;
transition: opacity 0.2s;
}
.bookmarkBtn.number-btn:hover i {
opacity: 1;
}
.crossDialectBtn {
font-size: 1.5em;
}
.crossDialectBtn i {
color: #4a67a1 !important;
transition: transform 0.3s ease;
}
.accordion-parent .crossDialectBtn i {
transform: rotate(135deg);
}
@media (prefers-color-scheme: dark) {
.crossDialectBtn i {
color: #8cb3d9 !important;
}
.bookmarkBtn.number-btn {
background-color: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
color: #e0e0e0;
}
}
tr.accordion-parent>td {
border-top: 5px solid orange;
}
tr.accordion-parent>td:first-child,
tr.accordion-row>td:first-child {
border-left: 5px solid orange;
}
tr.accordion-parent>td:last-child,
tr.accordion-row>td:last-child {
border-right: 5px solid orange;
}
tr.accordion-row-last>td {
border-bottom: 5px solid orange;
}
tr.accordion-parent>td:first-child {
border-top-left-radius: 8px;
}
tr.accordion-parent>td:last-child {
border-top-right-radius: 8px;
}
tr.accordion-row-last>td:first-child {
border-bottom-left-radius: 8px;
}
tr.accordion-row-last>td:last-child {
border-bottom-right-radius: 8px;
}
tr.accordion-row * {
color: white !important;
}
tr.accordion-row {
filter: brightness(95%);
}
tr.accordion-row.四縣,
tr.accordion-row.海陸,
tr.accordion-row.大埔,
tr.accordion-row.饒平,
tr.accordion-row.詔安 {
color: white;
}
tr.accordion-row.四縣 {
background-color: #678d3f;
}
tr.accordion-row.海陸 {
background-color: #76ad67;
}
tr.accordion-row.大埔 {
background-color: #5898a9;
}
tr.accordion-row.饒平 {
background-color: #834fa1;
}
tr.accordion-row.詔安 {
background-color: #974a47;
}
@media (prefers-color-scheme: dark) {
tr.accordion-row.四縣,
tr.accordion-row.海陸,
tr.accordion-row.大埔,
tr.accordion-row.饒平,
tr.accordion-row.詔安 {
filter: brightness(0.8) saturate(0.9);
}
}
@media screen and (max-width: 768px) {
#generated tr.accordion-parent,
#generated tr.accordion-row {
margin-bottom: 0;
border-radius: 0;
border-bottom: 1px dotted rgba(var(--iMazinGrace-1-rgb, 170, 150, 183), 0.3);
border-left: 5px solid orange;
border-right: 5px solid orange;
}
#generated tr.accordion-parent {
border-top: 5px solid orange;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
#generated tr.accordion-row-last {
margin-bottom: 1.5em;
border-bottom: 5px solid orange;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
#generated tr.accordion-parent td,
#generated tr.accordion-row td {
border: none !important;
}
#generated tr.accordion-row.四縣 {
background-color: #678d3f !important;
}
#generated tr.accordion-row.海陸 {
background-color: #76ad67 !important;
}
#generated tr.accordion-row.大埔 {
background-color: #5898a9 !important;
}
#generated tr.accordion-row.饒平 {
background-color: #834fa1 !important;
}
#generated tr.accordion-row.詔安 {
background-color: #974a47 !important;
}
}
#generated td:nth-of-type(2) {
text-align: center;
max-width: 40vw;
}
.progressLvl {
color: red;
}
.progressCat {
color: blue;
}
/* 歸到頁頂高个按鈕 */
#backToTopBtn {
display: none;
/* 預設隱藏 */
position: fixed;
bottom: 10px;
right: 10px;
z-index: 99;
border: none;
outline: none;
background-color: rgba(0, 0, 0, 0.5);
/* 半透明黑色背景 */
color: white;
cursor: pointer;
padding: 15px;
border-radius: 10px;
font-size: 18px;
}
#backToTopBtn:hover {
background-color: rgba(0, 0, 0, 0.8);
/* 滑鼠懸停時加深背景顏色 */
}
#backToTopBtn i {
color: white;
}
/* 播放全部 */
#audioControls {
/* 如果 #audioControls 沒有其他 flex 相關設定,
可以加上 flex-shrink: 0 確保它也不會被壓縮 */
flex-shrink: 0;
margin-left: 1%;
/* display: inline-flex; */
/* 如果原本有 display,確保與 flex 容器兼容 */
/* align-items: center; */
/* 確保按鈕垂直對齊 */
}
#audioControls button {
border: none;
font-size: clamp(15px, 2vw, 22px);
/* margin: 0 5px;*/
background: none;
padding: 0;
margin: 0 3px;
vertical-align: middle;
}
#audioControls button i,
button.playFromThisRow i {
cursor: pointer;
background: green;
color: wheat;
box-shadow: 2px 2px purple;
border-radius: 0.3em;
padding: 0.5em;
}
#audioControls button.playable i,
button.playFromThisRow.playable i {
background-color: green !important;
}
#audioControls button.ongoing i,
button.playFromThisRow.ongoing i {
background-color: yellow !important;
color: var(--main-text-color);
}
#audioControls button.ended i,
button.playFromThisRow.ended i {
background-color: red !important;
}
/* --- Commit Info in Modal --- */
#commit-info-modal {
display: inline-block;
font-size: 0.8rem;
color: #6c757d;
background-color: #f0f0f0;
padding: 2px 6px;
border-radius: 4px;
}
#commit-info-modal a {
color: #007bff;
text-decoration: none;
}
#commit-info-modal a:hover {
text-decoration: underline;
}
/* --- 【新增】循環播放按鈕樣式 --- */
button#loopCategoryBtn.active i {
background-color: #ff8c00;
/* 暗橘色表示 active */
color: white;
}
.loop-one-btn {
background: none;
border: none;
padding: 0;
margin: 0 3px;
vertical-align: middle;
}
.loop-one-btn i {
cursor: pointer;
background: #8a2be2;
/* 藍紫色 */
color: wheat;
box-shadow: 2px 2px #9932cc;
/* 中蘭花紫 */
border-radius: 0.3em;
padding: 0.5em;
}
.loop-one-btn.looping i {
background-color: #ff4500;
/* 橘紅色表示 looping */
color: white;
}
tr.looping-row {
background-color: rgba(255, 105, 180, 0.4);
/* 粉紅色背景 */
animation: pulse-pink-effect 2s infinite ease-in-out;
}
@keyframes pulse-pink-effect {
0% {
background-color: rgba(255, 105, 180, 0.4);
}
50% {
background-color: rgba(255, 105, 180, 0.2);
}
100% {
background-color: rgba(255, 105, 180, 0.4);
}
}
.playFromThisRow {
background: none;
border: none;
}
button#playAllBtn {
display: none;
}
audio[data-skip='true'] {
display: none;
}
.notes {
font-size: 0.8em;
font-family: 'Linux Libertine', 'Huiwen-Fangsong', serif;
color: white;
background-color: #aa96b7;
padding: 0.2em;
border-radius: 0.5em;
}
.dialect {
padding:
/*0.3em 1em;*/
5px 10px;
display: inline-block;
color: black;
margin-bottom: 5px;
/* 加點垂直間距 */
vertical-align: middle;
}
.四縣 {
background-color: #678d3f;
color: black;
a {
color: white;
}
}
.海陸 {
background-color: #76ad67;
}
.大埔 {
background-color: #5898a9;
}
.饒平 {
background-color: #834fa1;
}
.詔安 {
background-color: #974a47;
}
/* 確保連結樣式正確 */
.dialect>span[data-varname]>a {
color: white;
/* text-decoration: none;*/
display: block;
/* 讓連結填滿 span */
}
tr#nowPlaying {
/*text-shadow: 0.2em 0.2em 0.3em var(--iMazinGrace-1);*/
/*text-shadow: 0.05em 0.05em 0px #ffffff, 0.1em 0.1em 0px rgba(0, 0, 0, 0.15);*/
position: relative;
/* 必須設定,以讓偽元素相對於 tr 定位 */
/* 設定規條个背景色,用 rgba 同變數 */
background-color: rgba(var(--iMazinGrace-1-rgb), 0.5);
/* 加入背景色个過渡效果 */
transition: background-color 0.4s ease;
/* 0.4 秒个 ease 過渡 */
}
/* --- 新增暫停狀態个樣式 --- */
tr#nowPlaying.paused-playback {
/* background-color: var(--paused-yellow); <-- 這行做得註解掉或拿掉,因為動畫會處理 */
animation: pulse-yellow-effect 3s infinite ease-in-out;
/* 應用動畫 */
}
/* 學習進度下拉擇單 */
#progressDropdown {
padding: 5px 8px;
/* 內邊距 */
border: 1px solid #ccc;
/* 邊框 */
border-radius: 4px;
/* 圓角 */
background-color: white;
/* 背景色 */
font-family: inherit;
/* 繼承父元素字型 */
font-size: clamp(18px, 2vw, 2rem);
/* 字型大小,可調整 */
margin: 0;
/* 移除外距,由 header 的 gap 控制 */
vertical-align: middle;
/* 垂直對齊方式 */
max-width: 30vw;
/* 變狹因為有 #resultsSummary 吔 */
/*flex-grow: 1; /* 允許它伸展利用空間 */
min-width: 50px;
/* 確保最小寬度 */
cursor: pointer;
/* 滑鼠指標 */
flex-shrink: 1;
/* 允許被壓縮 */
}
/* --- 修改:加強下拉選單个 focus 光暈,並確保 Firefox 點擊時顯示 --- */
#progressDropdown:focus {
/* 改用 :focus 來處理滑鼠點擊个情況 */
border-color: var(--focus-glow-color);
/* 直接改變邊框顏色,較明顯 */
box-shadow: 0 0 8px 2px var(--focus-glow-color);
/* 加強原本个光暈效果 */
/* 加入邊框顏色个過渡效果,同 box-shadow 一樣時間 */
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
#progressDetails {
font-size: clamp(18px, 1.5vw, 30px);
/* 稍微小一點的字 */
color: #555;
/* 設定顏色 */
vertical-align: middle;
/* 垂直對齊 */
/*margin-left: 8px; /* 和下拉選單間隔 */
flex-shrink: 1;
/* 允許被壓縮 */
a {
color: wheat;
font-family: var(--title-font);
white-space: nowrap;
}
}
/* Autoplay Modal Styles */
#autoplayModal {
position: fixed;
/* 固定在視窗上 */
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
/* 確保在最上層 */
display: none;
/* 初始隱藏 */
align-items: center;
/* 垂直置中 */
justify-content: center;
/* 水平置中 */
background-color: rgba(0, 0, 0, 0.6);
/* 半透明黑色背景 */
}
/* 移除 modal-backdrop 的樣式,因為 #autoplayModal 本身就有背景了 */
/* .modal-backdrop { ... } */
.modal-content {
position: relative;
/* 相對定位,以便內容在背景之上 */
background-color: #aa96b7;
padding: 30px 40px;
/* 增加左右 padding */
border-radius: 8px;
/* text-align: center; /* 由 justify-content 取代 */
width: 50vw;
/* 寬度 50% 視窗寬度 */
height: 50vh;
/* 高度 50% 視窗高度 */
overflow: auto;
/* 如果內容過多,允許滾動 */
cursor: pointer;
/* 提示使用者可以點擊 */
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
line-height: 1.6;
/* 增加行高 */
/* --- 新增 Flexbox 屬性 --- */
display: flex;
/* 將此元素設為 Flex 容器 */
align-items: center;
/* 垂直置中容器內的項目 */
justify-content: center;
/* 水平置中容器內的項目 (取代 text-align) */
/* --- 新增結束 --- */
}
.modal-content>p {
margin: 0;
/* 移除預設的 margin */
font-size: clamp(1.5rem, 3vw, 1.8rem);
/* 稍微放大字體 */
text-align: center;
/* 確保段落內的文字也是置中的 */
color: #d9e2a9;
}
/* 如果你選擇加入按鈕,可以加上樣式 */
/*
#startAutoplayBtn {
margin-top: 20px;
padding: 10px 20px;
font-size: 1em;
cursor: pointer;
}
*/
/* 選中的「腔別+級別」連結容器樣式 */
span[data-varname].active-dialect-level {
border-radius: 8px;
/* 圓角 */
padding: 3px 6px;
/* 微調內距,讓框線不要太貼近文字 */
/* 移除舊的背景色和紅色邊框,改用更通用、更顯眼个樣式 */
border: 2px solid #FFD700;
/* 用金色邊框,在各種底色上都較顯眼 */
box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.7);
/* 用金色光暈來強化效果 */
background-color: rgba(255, 255, 255, 0.2);
/* 加一層淡淡的白色透明背景,增加可讀性 */
}
/* --- 新增:為 span[data-varname] 設定基本樣式以避免跳動 --- */
.dialect>span[data-varname] {
/* 直接選取內層的 span */
display: inline-block;
/* 讓 padding 和 border 生效 */
border: 2px solid transparent;
/* 預留邊框空間 */
border-radius: 8px;
/* 預設圓角 */
/*! padding: 3px 6px; */
/* 預設內距,與 active 狀態一致 */
/*! margin: 0 2px; */
/* 微調級別之間的水平間距 */
vertical-align: middle;
/* 確保垂直對齊 */
transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
/* 平滑過渡效果 */
}
/* 選中的「類別」選項標籤樣式 */
.radioItem.active-category {
border: 2px solid #dc3545;
/* 紅色邊框 */
border-radius: 8px;
/* 圓角 */
padding: 2px 5px;
/* 微調內距 */
background-color: rgba(220, 53, 69, 0.1);
/* 可選:加上淡淡的紅色背景 */
}
/* --- 客話選詞 Popup 樣式 (Hakka Selection Popup Styles) --- */
#selectionPopupBackdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
/* 半透明背景 */
z-index: 1051;
/* 比 Romanizer Modal 高 */
/* display: none; 由 JS 控制 */
}
#selectionPopup {
position: absolute;
/* 改做絕對定位 */
/* top, left 會由 JavaScript 動態設定 */
background-color: #fff;
/* 日間模式背景 */