-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.css
799 lines (718 loc) · 17.6 KB
/
index.css
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
/* 全局样式 */
:root {
--background-color: #fff;
/* 背景颜色 */
--text-color: #3b3b3b;
/* 文字颜色 */
--sidebar-bg-color: rgba(200, 200, 200, 0.4);
/* 边栏背景颜色,更灰 */
--button-bg-color: transparent;
/* 按钮背景颜色,透明 */
--button-hover-bg-color: #000;
/* 按钮悬停背景颜色,深黑 */
--sidebar-width: 150px;
/* 边栏宽度,更窄 */
}
.sidebar button img {
animation: none;
}
button, input[type="button"], input[type="submit"] {
outline: none;
}
button:focus, input[type="button"]:focus, input[type="submit"]:focus {
outline: none;
box-shadow: none;
}
.sidebar button:hover img {
animation: scaleAnimation 0.5s ease forwards;
}
/* 定义序列动画 */
@keyframes scaleAnimation {
0% {
transform: scale(1); /* 初始大小1倍 */
}
50% {
transform: scale(1.2); /* 放大到1.1倍 */
}
75% {
transform: scale(0.9); /* 缩回到1倍 */
}
88% {
transform: scale(1.1); /* 缩回到1倍 */
}
100% {
transform: scale(1.0); /* 缩回到1倍 */
}
}
.upload-button {
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
width: 200px;
height: 200px;
color: var(--text-color);
background-color: rgba(200, 200, 200, 0.4);
border-radius: 20px;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
backdrop-filter: blur(20px);
border: none;
position: absolute;
left: calc(50% + 22vw / 2);
top: 50%;
/* 新增:设置距顶部的比例 */
transform: translate(-50%, -50%);
/* 修改:同时在X和Y方向居中 */
-webkit-app-region: no-drag;
}
.upload-button:hover {
background-color: rgba(0, 0, 0, 0.3);
color: #fff;
text-decoration: none;
border-radius: 20px;
/* 修复悬停时的弧度 */
animation: uploadAnimation 0.5s ease forwards;
}
@keyframes uploadAnimation {
0% {
width:200px;
}
50% {
width:300px;
}
75% {
width:180px;
}
88% {
width:220px;
}
100% {
width:200px;
}
}
.upload-icon {
width: 150px;
height: 150px;
background: url('icons/upload.png') no-repeat center;
background-size: contain;
scale:1;
}
@media (prefers-color-scheme: dark) {
:root {
--background-color: #222;
/* 夜间模式背景颜色 */
--text-color: #fff;
/* 夜间模式文字颜色 */
--sidebar-bg-color: rgba(51, 51, 51, 0.75);
/* 夜间模式边栏背景颜色 */
--button-bg-color: #444;
/* 夜间模式按钮背景颜色 */
--button-hover-bg-color: #555;
/* 夜间模式按钮悬停背景颜色 */
--sidebar-width: 150px;
/* 边栏宽度,更窄 */
/* 按钮背景颜色,透明 */
--button-bg-color: transparent;
}
}
body {
transition: width 0.5s, height 0.5s;
text-shadow: 1px 1px 0 white, -1px -1px 0 white, -1px 1px 0 white, 1px -1px 0 white, 1px 0 0 white, 0 1px 0 white, -1px 0 0 white, 0 -1px 0 white;
}
@media (prefers-color-scheme: dark) {
body {
text-shadow: 1px 1px 0 black, -1px -1px 0 black, -1px 1px 0 black, 1px -1px 0 black, 1px 0 0 black, 0 1px 0 black, -1px 0 0 black, 0 -1px 0 black;
}
}
a.normal-link {
color: inherit;
/* 继承父元素的文字颜色 */
}
a.normal-link:hover,
a.normal-link:focus {
text-decoration: underline;
/* 鼠标悬停或聚焦时添加下划线 */
color: inherit;
/* 继承父元素的颜色,可调整为其他颜色 */
}
.viewing-history-content {
background-color: var(--background-color);
/* 设置背景颜色与其他页面一致 */
padding: 20px;
/* 根据需要调整页面的内边距 */
}
/* 设置滚动条的宽度和轨道颜色 */
::-webkit-scrollbar {
width: 8px;
/* 或任何您希望的宽度 */
background-color: transparent;
/* 滚动条轨道颜色 */
}
/* 设置滚动条滑块的颜色 */
::-webkit-scrollbar-thumb {
background-color: rgba(64, 64, 64, 0.4);
/* 滚动条滑块颜色 */
border-radius: 6px;
/* 如果需要,可以设置圆角 */
}
/* 设置当鼠标悬停在滚动条滑块上时的颜色 */
::-webkit-scrollbar-thumb:hover {
background-color: rgba(130, 130, 130, 0.4);
/* 滚动条滑块悬停颜色 */
}
@media (prefers-color-scheme: dark) {
::-webkit-scrollbar-thumb:hover {
background-color: rgba(198, 198, 198, 0.4);
}
}
@media (prefers-color-scheme: dark) {
::-webkit-scrollbar-thumb {
background-color: rgba(134, 134, 134, 0.4);
}
}
.sidebar button:hover,
.sidebar button.active {
background-color: var(--button-hover-bg-color);
color: #fff;
/* 或其他高亮颜色 */
--sidebar-width: 150px;
border-radius: 5px;
}
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: row;
/* 水平布局 */
height: 100vh;
color: var(--text-color);
transition: background-color 0.3s, color 0.3s;
user-select: none;
}
.sidebar {
border-right: 1px solid rgb(172,172, 172);
width: 20vw;
z-index: 0;
background-color: rgb(224, 224, 224);
padding: 10px;
/* 边距调整为更窄 */
transition: background-color 0.2s;
/* 毛玻璃效果 */
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(5px);
-webkit-app-region: drag;
/* 兼容Safari */
}
@media (prefers-color-scheme: dark) {
.sidebar {
border-right: 1px solid rgb(0, 0, 0);
background-color: rgb(42, 42, 42);
}
}
.folder-item {
margin-bottom: 10px;
margin-top: 20px;
border: none;
padding: 5px 30px;
background-color: rgba(233, 233, 233, 0.3);
font-size: 16px;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
color: #000000;
cursor: pointer;
backdrop-filter: blur(20px);
border-radius: 5px;
}
.folder-item:hover {
background-color: rgba(0, 0, 0, 0.3);
color: #ffffff;
}
.folder-item:active, .folder-item.active { /* active 类的样式,确保一致性 */
background-color: rgba(0, 0, 0); /* 保持背景颜色 */
color: #ffffff;
border-radius: 5px; /* 保持圆角一致 */
padding: 5px 30px; /* 保持内边距一致 */
box-shadow: none; /* 去除阴影,以避免按钮按下后有不同的效果 */
}
@media (prefers-color-scheme: dark) {
.folder-item:active, .folder-item.active { /* active 类的样式,确保一致性 */
background-color: rgb(255, 255, 255); /* 保持背景颜色 */
color: #000000;
border-radius: 5px; /* 保持圆角一致 */
padding: 5px 30px; /* 保持内边距一致 */
box-shadow: none; /* 去除阴影,以避免按钮按下后有不同的效果 */
}
}
@media (prefers-color-scheme: dark) {
.folder-item {
background-color: #3737373f;
color: #ffffff;
}
}
@media (prefers-color-scheme: dark) {
.folder-item:hover {
background-color: #54545442;
}
}
.sidebar button {
width: 100%;
padding: 10px 0;
margin: 5px 0;
display: flex;
align-items: center;
/* 垂直居中对齐图标和文本 */
justify-content: flex-start;
background-color: var(--button-bg-color);
font-size: 16px;
color: var(--text-color);
border: none;
/* 去除边框 */
border-radius: 5px;
/* 去除圆角 */
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
text-align: left;
-webkit-app-region: no-drag;
/* 文字左对齐 */
}
.sidebar button img {
height: 1em;
/* 图标高度与文本大小相匹配 */
margin-left: 10px;
filter: invert(100%);
}
@media (prefers-color-scheme: dark) {
.sidebar button img {
filter: invert(0%);
}
}
.sidebar button.active img,
.sidebar button:focus img,
.sidebar button:hover img,
.sidebar button:active img {
filter: invert(0%);
}
.sidebar button span {
display: block;
/* 如果需要向左移动,可以通过增加左边距来实现 */
padding-left: 10px;
/* 或根据需要调整 */
}
.sidebar button:hover {
background-color: var(--button-hover-bg-color);
color: #fff;
/* 鼠标悬停时文字颜色变为白色 */
text-decoration: none;
padding-left: 0;
/* 移除文字下划线 */
border-radius: 5px;
}
/* 适用于侧边栏按钮和观看记录项 */
li.sidebar-button:hover {
background-color: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(20px);
color: #fff;
text-decoration: none;
border-radius: 5px;
display: block;
/* 如果需要向左移动,可以通过增加左边距来实现 */
padding-left: 25px;
cursor: pointer;
/* 设置鼠标指针样式为手型 */
text-shadow: none;
}
@media (prefers-color-scheme: dark) {
li.sidebar-button:hover {
background-color: rgba(255, 255, 255, 0.3);
}
}
li.sidebar-button {
position: relative;
/* 设置为相对定位,以便为::before伪元素定位 */
background-color: none;
color: var(--text-color);
text-decoration: none;
/* 确保溢出的文本不可见 */
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
/* 防止文本换行 */
border-radius: 5px;
/* 使用flex布局,确保内容垂直居中 */
align-items: center;
/* 垂直居中flex项 */
/* 如果需要向左移动,可以通过增加左边距来实现 */
padding-left: 25px;
cursor: pointer;
/* 设置鼠标指针样式为手型 */
}
span.text-container {
display: block;
/* 使 span 表现得像块级元素 */
white-space: nowrap;
/* 防止文本换行 */
overflow: hidden;
/* 隐藏溢出的文本 */
text-overflow: ellipsis;
max-width: 100%;
}
@keyframes scrollText {
to {
transform: translateX(-100%);
}
}
#return-media-library {
opacity: 0.5;
/* 设置透明度为50% */
pointer-events: none;
/* 禁用鼠标事件,使按钮无法被点击 */
cursor: default;
/* 设置鼠标样式为默认样式,不是指针 */
}
#video-list li.sidebar-button {
margin-left: calc(1.5% - 45px);
/* 整体向左移动 */
}
#folder-list li.sidebar-button {
margin-left: calc(1.5% - 45px);
/* 整体向左移动 */
}
#anime-lib {
margin-top: -20px;
margin-left: -20px;
/* 整体向左移动 */
}
#video-history li.sidebar-button {
margin-left: calc(1.5% - 45px);
/* 整体向左移动 */
}
li.sidebar-button::before {
content: "";
/* 必须设置,即使没有内容 */
position: absolute;
/* 绝对定位相对于其最近的相对定位祖先元素 */
left: 0;
/* 放在左侧边缘 */
top: 50%;
/* 与顶部对齐 */
width: 10px;
/* 设置宽度为5px */
height: 10px;
/* 高度与父元素一致 */
background-color: var(--button-hover-bg-color);
/* 白色背景 */
transform: translateY(-50%);
}
.delete-icon {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
}
.content {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
transition: background-color 0.3s;
}
.content-area {
/* 将内容偏移侧边栏宽度 */
width: 80%;
height: 100%;
overflow-y: hidden;
/* 启用垂直滚动 */
margin: 0;
/* 移除外边距 */
z-index: 0;
}
.content-area0 {
position: fixed;
/* 将内容偏移侧边栏宽度 */
width: 80%;
height: 100%;
background-color: #fff;
right:0;
z-index: -2;
}
.content-area2 {
position: fixed;
overflow: hidden;
/* 将内容偏移侧边栏宽度 */
width: 80%;
height: 100%;
background-image: url('./others/back.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
opacity: 0.5;
z-index: -1;
pointer-events: none;
}
@media (prefers-color-scheme: dark) {
.content-area0 {
background-color: #222;
}
}
.scrollable-list {
height: calc(100vh - 100px);
margin-left: calc(1.5% - 5px);
/* 根据您的页面设计调整高度 */
overflow-y: auto;
overflow-x: hidden;
}
@media (prefers-color-scheme: dark) {
.upload-button {
background-color: rgba(51, 51, 51, 0.75);
}
}
@media (prefers-color-scheme: dark) {
.upload-button:hover {
background-color: rgba(91, 91, 91, 0.3);
}
}
/* 新增的激活状态样式 */
.active {
background-color: var(--button-hover-bg-color);
color: #fff;
border-radius: 20px;
/* 确保激活状态时的按钮样式 */
}
.drag-area {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100px;
/* 高度足够用于拖放和放置图标 */
-webkit-app-region: drag;
/* Electron的拖动区域 */
z-index: 10;
/* 确保这个区域位于其他内容上方 */
}
/* 更新原有的 .upload-container 样式 */
.upload-container {
width: 200px;
height: 200px;
background-color: -sidebar-bg-color;
border-radius: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
backdrop-filter: blur(10px);
}
/* 在 index.css 中添加样式 */
#version-text {
position: fixed;
bottom: 10px;
left: 10px;
color: #999;
/* 文本颜色 */
font-size: 12px;
/* 字体大小 */
text-shadow: none;
}
hr.section-divider {
margin-bottom: 0;
/* 可选:如果您希望水平线与滚动区域之间没有空间,也可以移除下方边距 */
}
h2 {
margin-top: 43.8px;
margin-left: calc(1.5% - 10px);
color: #000000;
/* 向下移动标题 */
}
@media (prefers-color-scheme: dark) {
h2 {
color: #ffffff;
}
}
#import-video {
margin-top: calc(17vh + 20%);
}
.title-text {
position: fixed;
top: 7vh;
left: 2vw;
width: 18vw;
}
.title-text img {
width: 100%;
/* 确保图片适应容器宽度 */
height: auto;
/* 保持图片的原始比例 */
}
.section-divider {
border: none;
border-top: 1px solid rgb(0, 0, 0);
margin-left: calc(1.5% - 10px);
/* 设置顶部边框为1px高的灰色 */
/* 在横线上下添加空间 */
width: 95%;
}
@media (prefers-color-scheme: dark) {
.section-divider {
border-top: 1px solid rgb(70, 70, 70);
}
}
.anime-list {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
.anime-item {
display: flex;
flex-direction: column;
width: calc(10%+5vw);
margin-top: 20px;
margin-right: 25px;
margin-bottom: -15px;
text-align: left;
box-sizing: border-box;
}
.anime-image {
width: auto;
height: 200px;
max-height: 200px;
/* 根据需要调整图片的最大高度 */
border-radius: 2px;
/* 添加圆角 */
}
.anime-image img {
border-radius: 5px;
/* 添加圆角 */
width: auto;
height: 200px;
max-height: 200px;
/* 根据需要调整图片的最大高度 */
cursor: pointer;
box-shadow: 7px 10px 10px rgba(0, 0, 0, 0.3);
opacity: 1;
}
.anime-image img:hover {
opacity: 0.7;
}
.anime-title {
flex: 0 0 auto;
font-size: 13px;
margin-top: 15px;
/* 增加与图片的距离 */
width: 133.33px;
height: 3em;
/* 固定高度以显示两行文本 */
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
line-clamp: 2;
-webkit-line-clamp: 2;
/* 显示两行 */
-webkit-box-orient: vertical;
white-space: normal;
color: #000000;
}
.day-section h2,.settings-item {
margin-top: 20px;
/* 减少顶部的空白 */
margin-bottom: 5px;
/* 减少标题和分割线之间的空白 */
font-size: 20px;
color: #373737;
}
.anime-deta h2 {
margin-top: 10px;
}
@media (prefers-color-scheme: dark) {
.anime-title {
color: #fdfdfd;
}
}
@media (prefers-color-scheme: dark) {
.day-section h2,.settings-item {
color: #ffffff;
}
}
#anime-detail-content {
padding: 20px;
}
#anime-detail-content h2 {
font-size: 24px;
margin-bottom: 10px;
}
#anime-detail-content p,
#anime-detail-content ul {
margin: 10px 0;
}
#anime-detail-content ul {
list-style-type: disc;
padding-left: 20px;
}
.anime-detail-container {
display: flex;
align-items: flex-start;
gap: 20px;
}
.anime-detail-image {
margin-top: 10px;
margin-bottom: 10px;
width: auto;
height: 300px;
max-height: auto;
border-radius: 2px;
}
.anime-detail-image img {
width: auto;
height: 300px;
max-height: auto;
border-radius: 5px;
box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);
}
.anime-detail-text {
margin-top: 10px;
margin-bottom: 10px;
max-height: 250px;
/* 让其默认高度适应图像 */
overflow-y: auto;
/* 当内容超过高度时,出现垂直滚动条 */
}
.related-anime-item {
color: #7e7e7e;
cursor: pointer;
}
.related-anime-item:hover {
color: #00d5ff;
cursor: pointer;
}
.anime-summary {
font-size: 14px;
}
.anime-summary2 {
display: flex;
flex-wrap: wrap;
gap: 5px;
list-style-type: none;
padding: 0;
}
.anime-summary2 li {
background-color: var(--sidebar-bg-color);
color: var(--text-color);
border-radius: 5px;
padding: 5px 10px;
margin: 2px;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
}
.anime-summary2 li:hover {
background-color: var(--button-hover-bg-color);
cursor: pointer;
}
.anime-detail-info {
margin-top: 20px;
}