-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.user.css
2031 lines (1896 loc) · 57.9 KB
/
index.user.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
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
/* ==UserStyle==
@name bilibili搜索引擎首页样式
@namespace hakadao-bilibili-simple-home
@version 1.7.9
@description b站搜索引擎首页样式风格,支持几种不同的样式效果
@author Hakadao <[email protected]> (https://www.hakadao.top)
@homepageURL https://github.com/hakadao/bilibili-simple-home
@supportURL https://github.com/hakadao/bilibili-simple-home/issues
@updateURL https://userstyles.world/api/style/3022.user.css
@license MIT
@preprocessor uso
@advanced dropdown HOME_STYLE "首页样式" {
HOME_STYLE_FULL_1 "全屏显示壁纸,不能下滑查看更多视频" <<<EOT
/*
**全屏显示壁纸,不能下滑查看更多视频
*\/
.bili-banner {
height: 100vh!important;
}
.b-wrap,
.international-footer {
display: none;
}
/* 新首页 *\/
.bili-header .bili-header__banner {
height: 100vh!important;
max-height: 100vh !important;
}
.bili-header__channel,
.bili-layout,
.palette-button-outer,
.header-channel,
.bili-feed4-layout {
display: none!important;
}
EOT;
HOME_STYLE_FULL_2 "全屏显示壁纸" <<<EOT
/*
**全屏显示壁纸
*\/
.bili-banner {
height: 100vh !important;
}
/* 新首页 *\/
.bili-header .bili-header__banner {
height: 100vh !important;
max-height: 100vh !important;
}
EOT;
HOME_STYLE_HALF_1 "【样式1】半屏显示壁纸" <<<EOT
/*
**【样式1】半屏显示壁纸
*\/
.bili-banner {
height: calc(100vh - 363px)!important;
min-height: 450px!important;
z-index: -1!important;
}
@media screen and (max-width: 1438px) {
.first-screen .space-between {
margin-bottom: .5em
}
}
.primary-menu-itnl {
margin-top: -50px!important;
background-color: var(--a-content-1)!important;
backdrop-filter: var(--a-filter-glass);
}
/*搜索框容器*\/
.international-header .nav-search-box {
top: 30vh!important;
}
@media screen and (max-height: 830px) {
.international-header .nav-search-box {
top: 220px!important;
}
}
/*强行制作出搜索栏上的logo*\/
.international-header .nav-search-box:before {
top: -300%;
}
/* 新首页 *\/
.bili-header .bili-header__banner {
height: calc(100vh - 370px)!important;
min-height: 400px;
max-height: calc(100vh - 370px) !important;
}
EOT;
HOME_STYLE_HALF_2 "【样式2】半屏显示壁纸" <<<EOT
/*
**【样式2】半屏显示壁纸
*\/
.bili-banner {
height: 30vh !important;
min-height: 210px !important;
z-index: -1!important;
}
.primary-menu-itnl {
margin-top: -35px!important;
background-color: var(--a-content-1)!important;
backdrop-filter: var(--a-filter-glass);
}
/*搜索框容器*\/
.international-header .nav-search-box {
top: 12vh!important;
}
@media screen and (max-height: 830px) {
.international-header .nav-search-box {
top: 70px!important;
}
}
/*观看列表按钮位置调整*\/
.first-screen .space-between {
margin-top: 1em!important;
margin-bottom: 0!important;
}
/*强行制作出搜索栏上的logo*\/
.international-header:not(.fixed-top) .nav-search-box:after {
top: 45%!important;
left: -200px!important;
transform: scale(.6);
}
/* 新首页 *\/
.bili-header .bili-header__banner {
height: 30vh !important;
min-height: 210px !important;
max-height: 30vh !important;
}
/*搜索框容器*\/
#i_cecream .bili-header :not(.slide-down) .center-search-container .center-search__bar {
transform: translateY(12vh);
}
@media screen and (max-height: 830px) {
#i_cecream .bili-header :not(.slide-down) .center-search-container .center-search__bar {
transform: translateY(70px);
}
}
/*logo*\/
.bili-header .center-search-container::after {
margin-left: -400px!important;
transform: scale(.6) translateX(-50%) translateY(-110px) !important;
}
EOT;
}
@advanced dropdown THEME "主题选择" {
THEME_DARK_AUTO "暗色模式(跟随系统)" <<<EOT
@media screen and (prefers-color-scheme: dark) {
* {
color-scheme: dark;
}
:root {
--a-bgcolor: hsl(230 12% 6%);
--a-mask-banner-color: hsl(230 12% 6% / var(--a-mask-banner-opacity));
--a-content-1: hsl(230 12% 10%);
--a-content-1-solid: hsl(230 12% 10%);
--a-elevated-1: hsl(230 12% 14%);
--a-elevated-1-solid: hsl(230 12% 14%);
--a-elevated-2: hsl(230 12% 18%);
--a-elevated-2-solid: hsl(230 12% 18%);
--a-divide: rgba(120, 123, 128, 0.3);
--a-depth-white: contrast(0) invert(1);
--a-fill-1: rgba(120, 123, 128, .4);
--a-fill-2: rgba(120, 123, 128, 0.3);
--a-text-1: hsl(215 19% 98%);
--a-text-2: hsl(215 19% 95% / 90%);
--a-text-3: hsl(240 33% 94% / 60%);
}
@supports (backdrop-filter: blur(15px)) {
:root {
--a-filter-glass: blur(15px) saturate(180%);
--a-content-1: hsl(230 12% 10% / 60%);
--a-elevated-1: hsl(230 12% 14% / 60%);
--a-elevated-2: hsl(230 12% 18% / 60%);
}
}
}
EOT;
THEME_DARK "暗色模式" <<<EOT
* {
color-scheme: dark;
}
:root {
--a-bgcolor: hsl(230 12% 6%);
--a-mask-banner-color: hsl(230 12% 6% / var(--a-mask-banner-opacity));
--a-content-1: hsl(230 12% 10%);
--a-content-1-solid: hsl(230 12% 10%);
--a-elevated-1: hsl(230 12% 14%);
--a-elevated-1-solid: hsl(230 12% 14%);
--a-elevated-2: hsl(230 12% 18%);
--a-elevated-2-solid: hsl(230 12% 18%);
--a-divide: rgba(120, 123, 128, 0.3);
--a-depth-white: contrast(0) invert(1);
--a-fill-1: rgba(120, 123, 128, .4);
--a-fill-2: rgba(120, 123, 128, 0.3);
--a-text-1: hsl(215 19% 98%);
--a-text-2: hsl(215 19% 95% / 90%);
--a-text-3: hsl(240 33% 94% / 60%);
}
@supports (backdrop-filter: blur(15px)) {
:root {
--a-filter-glass: blur(15px) saturate(180%);
--a-content-1: hsl(230 12% 10% / 60%);
--a-elevated-1: hsl(230 12% 14% / 60%);
--a-elevated-2: hsl(230 12% 18% / 60%);
}
}
EOT;
THEME_BLACK_AUTO "黑色模式(跟随系统)" <<<EOT
@media screen and (prefers-color-scheme: dark) {
* {
color-scheme: dark;
}
:root {
--a-bgcolor: hsl(0 0% 0%);
--a-mask-banner-color: hsl(0 0% 0% / var(--a-mask-banner-opacity));
--a-content-1: hsl(230 12% 8%);
--a-content-1-solid: hsl(230 12% 8%);
--a-elevated-1: hsl(230 12% 14%);
--a-elevated-1-solid: hsl(230 12% 14%);
--a-elevated-2: hsl(230 12% 20%);
--a-elevated-2-solid: hsl(230 12% 20%);
--a-divide: rgba(84, 84, 88, 0.65);
--a-depth-white: contrast(0) invert(1);
--a-fill-1: rgba(120, 123, 128, .4);
--a-fill-2: rgba(120, 123, 128, 0.3);
--a-text-1: hsl(215 19% 98%);
--a-text-2: hsl(215 19% 95% / 90%);
--a-text-3: hsl(240 33% 94% / 60%);
}
@supports (backdrop-filter: blur(15px)) {
:root {
--a-filter-glass: blur(15px) saturate(180%);
--a-content-1: hsl(230 12% 8% / 60%);
--a-elevated-1: hsl(230 12% 14% / 60%);
--a-elevated-2: hsl(230 12% 20% / 60%);
}
}
}
EOT;
THEME_BLACK "黑色模式" <<<EOT
* {
color-scheme: dark;
}
:root {
--a-bgcolor: hsl(0 0% 0%);
--a-mask-banner-color: hsl(0 0% 0% / var(--a-mask-banner-opacity));
--a-content-1: hsl(230 12% 8%);
--a-content-1-solid: hsl(230 12% 8%);
--a-elevated-1: hsl(230 12% 14%);
--a-elevated-1-solid: hsl(230 12% 14%);
--a-elevated-2: hsl(230 12% 20%);
--a-elevated-2-solid: hsl(230 12% 20%);
--a-divide: rgba(84, 84, 88, 0.65);
--a-depth-white: contrast(0) invert(1);
--a-fill-1: rgba(120, 123, 128, .4);
--a-fill-2: rgba(120, 123, 128, 0.3);
--a-text-1: hsl(215 19% 98%);
--a-text-2: hsl(215 19% 95% / 90%);
--a-text-3: hsl(240 33% 94% / 60%);
}
@supports (backdrop-filter: blur(15px)) {
:root {
--a-filter-glass: blur(15px) saturate(180%);
--a-content-1: hsl(230 12% 8% / 60%);
--a-elevated-1: hsl(230 12% 14% / 60%);
--a-elevated-2: hsl(230 12% 20% / 60%);
}
}
EOT;
THEME_LIGHT "亮色模式" <<<EOT
EOT;
}
@advanced dropdown SCROLL_BAR_STYLE "滚动条样式调整" {
SCROLL_BAR_THEME "配合样式" <<<EOT
/* custom chrome, edge scrollbar *\/
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-corner,
::-webkit-scrollbar-track {
background: transparent;
}
html > ::-webkit-scrollbar-track {
background: var(--a-bgcolor);
}
::-webkit-scrollbar-thumb {
background-color: hsl(0 0% 50% / .6);
border-radius: 20px;
}
/* custom firefox scrollbar *\/
html > * {
scrollbar-color: hsl(0 0% 50% / .6) var(--a-bgcolor);
scrollbar-width: thin !important;
}
* {
scrollbar-color: hsl(0 0% 50% / .6) transparent;
scrollbar-width: thin !important;
}
EOT;
SCROLL_BAR_NOMAL "不做改动(对 mac 用户支援会很好)" <<<EOT
EOT;
SCROLL_BAR_HIDDEN "隐藏滚动条" <<<EOT
/* custom chrome, edge scrollbar *\/
::-webkit-scrollbar {
width: 0;
height: 0;
}
::-webkit-scrollbar-corner,
::-webkit-scrollbar-track {
background: transparent;
}
/* custom firefox scrollbar *\/
* {
scrollbar-width: none;
}
EOT;
}
@advanced dropdown LOGO_COLOR "选择 LOGO 图标样式" {
LOGO_COLOR_THEME "跟随主题颜色" <<<EOT
var(--a-theme-color)
EOT;
LOGO_COLOR_WHITE "白色" <<<EOT
#FFF
EOT;
}
@advanced dropdown LOGO_DISPLAY "是否显示 LOGO" {
LOGO_ON "显示" <<<EOT
EOT;
LOGO_OFF "关闭" <<<EOT
.international-header .nav-search-box:after,
.bili-header .center-search-container::after {
display: none
}
EOT;
}
@advanced dropdown TOPBAR_LOGO_COLOR "选择顶栏 LOGO 图标颜色" {
LOGO_COLOR_WHITE "白色" <<<EOT
/*logo*\/
.bili-header .left-entry__title::before {
color: #FFF;
}
/*logo右侧箭头*\/
.bili-header .left-entry__title .mini-header__title .mini-header__arrow {
color: white;
filter: drop-shadow(0 0 4px rgba(0, 0, 0, .3));
}
.bili-header .left-entry__title {
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}
EOT;
LOGO_COLOR_THEME "跟随主题颜色" <<<EOT
/*logo*\/
.bili-header .left-entry__title::before {
color: var(--a-theme-color);
}
/*logo右侧箭头*\/
.bili-header .left-entry__title .mini-header__title .mini-header__arrow {
color: white;
filter: drop-shadow(0 0 4px var(--a-theme-color));
}
.bili-header .left-entry__title {
filter: drop-shadow(0 0 4px var(--a-theme-color-50));
}
EOT;
}
@advanced dropdown LOGO_GLOW_EFFECT "LOGO 发光效果" {
LOGO_GLOW_EFFECT_ON "启用" <<<EOT
.bili-header .center-search-container::after {
text-shadow: 0 0px 16px var(--a-theme-color-50) !important;
}
EOT;
LOGO_GLOW_EFFECT_OFF "禁用" <<<EOT
EOT;
}
@advanced dropdown LOGO_DISPLAY "是否显示 LOGO" {
LOGO_ON "显示" <<<EOT
EOT;
LOGO_OFF "关闭" <<<EOT
.international-header .nav-search-box:after,
.bili-header .center-search-container::after {
display: none
}
EOT;
}
@advanced color THEME_COLOR_NEW "选择主题色(仅支援十六进制非透明颜色,如默认蓝 #00a1d6、默认粉 #fb7299)" #00a1d6
@advanced dropdown DIV_BG "选择背景" {
BG_NONE "无背景" <<<EOT "" EOT;
BG_2 "unsplash随机" <<<EOT url(https://source.unsplash.com/1920x1080/?nature) EOT;
BG_3 "BML2019 VR(pid: 74271400)" <<<EOT url(https://pic.imgdb.cn/item/638e1d63b1fccdcd36103811.jpg) EOT;
BG_4 "2020拜年祭活动 " <<<EOT url(https://pic.imgdb.cn/item/638e1d7ab1fccdcd36106346.jpg) EOT;
BG_5 "2020BDF" <<<EOT url(https://pic.imgdb.cn/item/63830f1816f2c2beb1868554.jpg) EOT;
BG_DIV "自定义" <<<EOT var(--a-bg-custom) EOT;
}
@advanced text CUSTOM_BG "自定义背景" "url()"
@advanced text MASK_OPACITY "设置背景遮罩透明度(0为完全透明,1为完全覆盖背景,允许小数)" "0"
@advanced dropdown BG_ATTACHMENT "背景依附方式" {
BG_SCROLL "背景随滚轮滚动" <<<EOT
EOT;
BG_FIXED "背景固定" <<<EOT
.bili-header .bili-header__banner {
background-attachment: fixed !important;
}
EOT;
}
@advanced dropdown TOPLINK_THEME "顶栏设计效果" {
TOPLINK_1 "效果1(通透模式)" <<<EOT
/*banner上方的链接*\/
.nav-link .nav-link-ul .nav-link-item .link,
.nav-user-center .user-con .item .name {
color: var(--a-text-1);
text-shadow: none!important;
}
/*banner上方的链接后面黑色过渡效果*\/
.bili-banner .taper-line {
background: none!important;
}
.bili-header .right-entry__outside .right-entry-text {
color: var(--a-text-1);
}
EOT;
TOPLINK_2 "效果2(胶囊模式)" <<<EOT
/*新版首页适配*\/
.bili-header :not(.slide-down) .right-entry {
backdrop-filter: var(--a-filter-glass);
border-radius: 100px;
box-shadow: var(--a-depth-1);
}
bili-header .bili-header__bar .right-entry__outside .right-entry-text {
text-shadow: 0 0 3px rgba(0, 0, 0, .3);
}
.bili-header .right-entry__outside svg,
.bili-header .bili-header__bar .right-entry__outside .right-entry-text,
.bili-header .right-entry .right-entry-item .right-entry-text {
filter: drop-shadow(0 0 3px rgba(0, 0, 0, .3));
}
EOT;
}
@advanced dropdown CAPSULE_DESIGN_UP "顶栏右侧文字颜色设计(滚动前)" {
CAPSULE_DESIGN_1 "默认设计" <<<EOT
.bili-header .bili-header__bar .right-entry__outside .right-entry-icon,
.bili-header .bili-header__bar .right-entry__outside .right-entry-text {
color: var(--a-text-1);
}
EOT;
CAPSULE_DESIGN_2 "跟随主题色" <<<EOT
.bili-header .bili-header__bar .right-entry__outside .right-entry-icon,
.bili-header .bili-header__bar .right-entry__outside .right-entry-text {
color: var(--a-theme-color);
filter: drop-shadow(0 0 8px var(--a-theme-color));
}
EOT;
CAPSULE_DESIGN_3 "白色" <<<EOT
.bili-header .bili-header__bar .right-entry__outside .right-entry-icon,
.bili-header .bili-header__bar .right-entry__outside .right-entry-text {
color: #FFF;
}
EOT;
CAPSULE_DESIGN_4 "黑色" <<<EOT
.bili-header .bili-header__bar .right-entry__outside .right-entry-icon,
.bili-header .bili-header__bar .right-entry__outside .right-entry-text {
color: #000;
}
EOT;
}
@advanced dropdown CAPSULE_DESIGN_DOWN "顶栏右侧文字颜色设计(滚动后)" {
CAPSULE_DESIGN_1 "默认设计" <<<EOT
.bili-header .bili-header__bar.slide-down .right-entry__outside .right-entry-icon,
.bili-header .bili-header__bar.slide-down .right-entry__outside .right-entry-text {
color: var(--a-text-1)!important;
filter: none;
}
EOT;
CAPSULE_DESIGN_2 "跟随主题色" <<<EOT
.bili-header .bili-header__bar.slide-down .right-entry__outside .right-entry-icon,
.bili-header .bili-header__bar.slide-down .right-entry__outside .right-entry-text {
color: var(--a-theme-color) !important;
filter: drop-shadow(0 0 8px var(--a-theme-color)) !important;
}
EOT;
CAPSULE_DESIGN_3 "白色" <<<EOT
.bili-header .bili-header__bar.slide-down .right-entry__outside .right-entry-icon,
.bili-header .bili-header__bar.slide-down .right-entry__outside .right-entry-text {
color: #FFF !important;
filter: none;
}
EOT;
CAPSULE_DESIGN_4 "黑色" <<<EOT
.bili-header .bili-header__bar.slide-down .right-entry__outside .right-entry-icon,
.bili-header .bili-header__bar.slide-down .right-entry__outside .right-entry-text {
color: #000 !important;
filter: none;
}
EOT;
}
@advanced dropdown SEARCHBAR_DESIGN "搜索框样式(针对自定义背景改善)" {
SEARCHBAR_DESIGN_1 "默认设计" <<<EOT
EOT;
SEARCHBAR_DESIGN_2 "线条设计" <<<EOT
#internationalHeader.international-header:not(.fixed-top) .nav-search #nav_searchform,
.bili-header :not(.slide-down) .center-search-container .center-search__bar #nav-searchform{
backdrop-filter: none!important;
background: unset!important;
border: none!important;
border-bottom: 2px solid white!important;
padding: 6px 0 5px;
border-radius: 0!important;
box-shadow: none!important;
margin-bottom: .5em;
filter: drop-shadow(0 2px 4px rgb(0 0 0 / 40%));
}
.bili-header :not(.slide-down) .center-search-container .center-search__bar .nav-search-content
{
padding: unset!important;
}
.bili-header :not(.slide-down) .center-search-container .center-search__bar #nav-searchform{
padding-left: unset!important;
}
#internationalHeader.international-header:not(.fixed-top) .nav-search .nav-search-keyword,
.bili-header :not(.slide-down) .center-search-container .center-search__bar #nav-searchform .nav-search-input{
color: white!important;
filter: drop-shadow(0 2px 4px rgb(0 0 0 / 30%));
}
.international-header:not(.fixed-top) .bili-icon_dingdao_sousuo::before,
.bili-header :not(.slide-down) .center-search-container .center-search__bar .nav-search-btn{
color: white!important;
}
/*33娘处于线条设计搜索条位置调整(新版首页)*\/
.bili-header :not(.slide-down) .center-search-container .center-search__bar::after {
right: -40px !important;
top: -62px !important;
}
.bili-header :not(.slide-down) .center-search-container .center-search__bar:focus-within::after {
transform: translateX(-10px) !important;
z-index: 10;
pointer-events: none;
}
EOT;
}
@advanced dropdown FOCUS_EFFECTS "搜索条聚焦后暗化效果" {
FOCUS_EFFECTS_OFF "关闭" <<<EOT
EOT;
FOCUS_EFFECTS_ON "开启" <<<EOT
.international-header .nav-search::before,
.bili-header .bili-header__bar::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0);
transition: .3s ease-in-out;
visibility: hidden;
z-index: -1;
pointer-events: none;
}
.bili-header .bili-header__bar.slide-down::before {
background: transparent !important;
backdrop-filter: unset !important;
}
.international-header .nav-search:focus-within::before,
.bili-header .bili-header__bar:focus-within::before{
background-color: rgba(0, 0, 0, .4);
visibility: visible;
/*[[FOCUS_BLUR]]*\/
}
/*取消焦点时搜索记录隐藏*\/
.international-header .nav-search .bilibili-search-suggest,
.international-header .nav-search .bilibili-search-history{
display: none;
}
.international-header .nav-search .bilibili-search-suggest:active,
.international-header .nav-search .bilibili-search-history:active,
.international-header .nav-search:focus-within .bilibili-search-suggest,
.international-header .nav-search:focus-within .bilibili-search-history{
display: block;
}
EOT;
}
@advanced dropdown FOCUS_BLUR "搜索条聚焦后毛玻璃效果(仅在上个效果开启才能实现,有点吃效能)" {
FOCUS_BLUR_OFF "关闭" <<<EOT
EOT;
FOCUS_BLUR_ON "开启" <<<EOT
backdrop-filter: blur(8px)
EOT;
}
@advanced dropdown SHOW_33 "搜索条聚焦后显示33娘" {
SHOW_33_ON "开启" <<<EOT
.international-header .nav-search::after,
.bili-header :not(.slide-down) .center-search-container .center-search__bar::after{
content: '';
position: absolute;
top: -60px;
right: -10px;
width: 100px;
height: 100px;
background: url(https://cdn.jsdelivr.net/gh/hakadao/bilibili-simple-home@master/img/searchBar_33.png);
background-size: cover;
z-index: -1;
transition: .3s ease-out;
opacity: 0;
}
.bili-header :not(.slide-down) .center-search-container .center-search__bar::after {
background: url(https://cdn.jsdelivr.net/gh/hakadao/bilibili-simple-home@master/img/searchBar_33_2.png);
background-size: cover;
}
.international-header .nav-search:focus-within::after,
.bili-header :not(.slide-down) .center-search-container .center-search__bar:focus-within::after{
transform: translatey(-20px);
opacity: 1;
}
.bili-header :not(.slide-down) #nav-searchform {
overflow: unset!important;
}
EOT;
SHOW_33_OFF "关闭" <<<EOT
EOT;
}
@advanced dropdown SHOW_22 "分区弹出层显示22娘" {
SHOW_22_ON "开启" <<<EOT
/*新版分区弹出层显示22娘*\/
@keyframes slideIn22 {
from {
transform: translateX(100%);
opacity: 0;
}
}
.n-drawer-mask::after {
content: "";
position: absolute;
right: 200px;
top: 30px;
background: url(https://cdn.jsdelivr.net/gh/hakadao/bilibili-simple-home@master/img/drawer_mask_22.png) no-repeat;
background-size: contain;
width: 423px;
height: 100%;
pointer-events: none;
animation: 1s slideIn22;
}
EOT;
SHOW_22_OFF "关闭" <<<EOT
EOT;
}
@advanced dropdown TRENDIND "右侧排行榜" {
TRENDIND_OFF "禁用" <<<EOT
/*移除排行榜*\/
.bili-grid {
grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1099.9px) {
.bili-grid {
grid-template-columns: repeat(3, 1fr);
}
}
.bili-grid aside {
display: none;
}
EOT;
TRENDIND_ON "开启" <<<EOT
EOT;
}
@advanced dropdown VIDEO_ZOOM "滑动视频放大效果(如果你电脑性能好的话,启用吧 = =)" {
VIDEO_ZOOM_OFF "禁用" <<<EOT
EOT;
VIDEO_ZOOM_ON "开启" <<<EOT
/*鼠标滑过视频预览放大效果*\/
[class*="-card"] [class$="-wrap"] {
z-index: 0;
}
[class*="-card"] [class$="-wrap"]:hover {
/*更改 z-index 令滑过视频放大了之后不受旁边视频遮挡*\/
z-index: 10;
}
[class$="-card"] [class*="-card__image"],
[class$="video-card"] [class*="-card__image"]:hover [class*="-card__mask"] {
transition: all .3s;
}
[class$="video-card"] [class*="-card__image"]:hover,
[class$="video-card"] [class*="-card__image"]:hover [class*="-card__mask"] {
transform: scale(1.1) translate3d(0, 0, 0);
z-index: 999999;
box-shadow: var(--a-depth-2);
}
[class$="video-card"] a + .bili-video-card__info {
transition: .4s;
position: relative;
transform: translate3d(0, 0, 0);
}
[class$="video-card"] a + .bili-video-card__info::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background: transparent;
border-radius: var(--a-radius);
transition: .4s;
pointer-events: none;
}
[class$="video-card"] a:hover + .bili-video-card__info::after {
top: -2rem;
left: -1rem;
width: calc(100% + 2rem);
height: calc(100% + 3rem);
}
[class$="video-card"] a:hover + .bili-video-card__info {
transform: translate(0, 30%);
}
[class$="video-card"] a:hover + .bili-video-card__info::after {
background: var(--a-elevated-1-solid);
box-shadow: var(--a-depth-2);
}
EOT;
}
==/UserStyle== */
@-moz-document regexp("^https?://www\\.bilibili\\.com/?((index\\.html)|(\\?.*))?") {
/**
* 样式颜色、阴影、滤镜等变量,和自定义选项作出的修改
*/
:root {
--a-logo-color: /*[[LOGO_COLOR]]*/;
--a-bgimg: /*[[DIV_BG]]*/;
--a-bg-custom: /*[[CUSTOM_BG]]*/;
--a-bgcolor: hsl(220, 14%, 96%);
--a-mask-banner-opacity: /*[[MASK_OPACITY]]*/;
--a-mask-banner-color: hsla(219, 26%, 96%, var(--a-mask-banner-opacity));
--a-content-1: rgba(255, 255, 255, 1);
--a-content-1-solid: rgba(255, 255, 255, 1);
--a-elevated-1: rgb(255, 255, 255);
--a-elevated-2: rgb(255, 255, 255);
--a-elevated-1-solid: rgb(255, 255, 255);
--a-elevated-2-solid: rgb(255, 255, 255);
--a-divide: rgba(60, 60, 67, 0.1);
--a-fill-1: rgba(120, 120, 128, 0.15);
--a-fill-2: rgba(120, 120, 128, 0.09);
--a-text-1: #000;
--a-text-2: hsla(240, 6%, 15%, .8);
--a-text-3: hsla(240, 6%, 25%, .6);
--a-radius: 12px;
/*主题颜色*/
--a-theme-color: /*[[THEME_COLOR_NEW]]*/;
--a-theme-color-50: /*[[THEME_COLOR_NEW]]*/80;
--a-theme-color-40: /*[[THEME_COLOR_NEW]]*/66;
--a-theme-color-30: /*[[THEME_COLOR_NEW]]*/4d;
--a-theme-color-20: /*[[THEME_COLOR_NEW]]*/33;
--a-depth-1: 0 6px 8px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.03);
--a-depth-2: 0 9px 18px rgba(0, 0, 0, 0.07), 0 6px 12px rgba(0, 0, 0, 0.05);
/*覆盖b站颜色变量*/
--text1: var(--a-text-1);
--text2: var(--a-text-2);
--text3: var(--a-text-3);
--graph_bg_thick: var(--a-fill-1);
--graph_bg_regular: var(--a-fill-2);
--bg1: var(--a-content-1-solid);
--bg1_float: var(--a-elevated-1);
--bg2_float: var(--a-elevated-2);
--brand_blue: var(--a-theme-color);
}
@supports (backdrop-filter: blur(15px)) {
:root {
--a-filter-glass: blur(15px);
--a-content-1: rgba(255, 255, 255, .6);
--a-elevated-1: rgba(255, 255, 255, .6);
--a-elevated-2: rgba(255, 255, 255, .6);
}
}
/*主題顏色css*/
/*[[THEME]]*/
/*滚动条样式调整*/
/*[[SCROLL_BAR_STYLE]]*/
/*LOGO 显示同关闭*/
/*[[LOGO_DISPLAY]]*/
/*LOGO 发光效果*/
/*[[LOGO_GLOW_EFFECT]]*/
/*顶栏 LOGO 图标颜色*/
/*[[TOPBAR_LOGO_COLOR]]*/
/*删除其它内容,只保留搜索栏,不能下滑显示更多,显示半屏壁纸*/
/*[[HOME_STYLE]]*/
/*处理顶栏链接内容,使其在自定义背景下banner上方文字链接有阴影使其能看清文字*/
/*[[TOPLINK_THEME]]*/
/*顶栏右侧文字颜色设计*/
/*[[CAPSULE_DESIGN_UP]]*/
/*[[CAPSULE_DESIGN_DOWN]]*/
/*搜寻框设计*/
/*[[SEARCHBAR_DESIGN]]*/
/*聚焦输入框后全局暗化效果*/
/*[[FOCUS_EFFECTS]]*/
/*聚焦输入框后显示33娘*/
/*[[SHOW_33]]*/
/*新版分区弹出层显示22娘*/
/*[[SHOW_22]]*/
/*背景固定方式*/
/*[[BG_ATTACHMENT]]*/
/*排行榜开关*/
/*[[TRENDIND]]*/
/*视频放大效果开关*/
/*[[VIDEO_ZOOM]]*/
}
@-moz-document regexp("^https?://www\\.bilibili\\.com/?((index\\.html)|(\\?.*))?") {
/**
* 导入bilibili logo图标
*/
@font-face {
font-family: 'Bilibili Icon';
src: url('https://cdn.jsdelivr.net/gh/hakadao/bilibili-simple-home@master/fonts/iconfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
/*禁用banner游戏*/
.banner-game,
.bili-header__banner,
.bili-header__banner video,
.summer-banner,
.animated-banner {
display: none;
pointer-events: none;
}
/*新版首頁換一碗*/
.recommended-container {
position: relative;
}
.recommended-container .feed-roll-btn.xs_sm {
top: 0 !important;
right: -40px !important;
}
html {
filter: none !important;
}
}
@-moz-document regexp("^https?://www\\.bilibili\\.com/?((index\\.html)|(\\?.*))?") {
/**
*新版首页支援
*/
/* body {
background: var(--a-bgimg) center/cover var(--a-bgcolor) fixed !important;
will-change: all;
} */
html,
html body,
html:not(.iframe),
html:not(.iframe) body {
background-color: var(--a-bgcolor)!important
}
/*去除礙眼物*/
/*顶栏左侧多余项目,保留首页按钮*/
.bili-header .left-entry li:not(:nth-child(1)),
.bili-header .bili-header__bar:not(.slide-down) .left-entry li:nth-child(1),
/*大会员*/
.bili-header .right-entry li:nth-child(2),
/*热门搜寻*/
.search-panel .trending,
/*推广*/
.eva-extension-area,
/*广告*/
.eva-banner,
.bili-footer,
/*顶栏动态图banner*/
.bili-header .bili-header__banner .banner-img,
/*新版首页无关推介*/
.feed2-recommend,
.feed-recommend2,
/*推介换一换按钮*/
/* .feed2 .feed-roll-btn, */
/*新版首页分区*/
.channel-floor,
/*未登入时右侧推广卡片*/
.floor-single-card,