mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix bugs in new style and dark style
This commit is contained in:
parent
bfd113e6c1
commit
6fa8088f00
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -31,10 +31,6 @@
|
|||||||
resources.applyStyle("oldStyle", "bilibili-new-style");
|
resources.applyStyle("oldStyle", "bilibili-new-style");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
SpinQuery.count(() => $(".player-wrap,.danmaku-box"), 2, box =>
|
|
||||||
{
|
|
||||||
box.css("height", $("#bofqi").css("height"));
|
|
||||||
});
|
|
||||||
|
|
||||||
if (settings.overrideNavBar)
|
if (settings.overrideNavBar)
|
||||||
{
|
{
|
||||||
|
|||||||
2
style/new-styles.min.js
vendored
2
style/new-styles.min.js
vendored
@ -1 +1 @@
|
|||||||
(()=>{return(e,l)=>{l.applyStyle("scrollbarStyle","bilibili-scrollbar-style");SpinQuery.any(()=>$(".custom-scrollbar"),e=>e.removeClass("custom-scrollbar"));SpinQuery.any(()=>$(".bili-wrapper,#link-navbar-vm,.link-navbar"),()=>{const e=document.getElementsByClassName("bili-wrapper")[0]||document.getElementById("link-navbar-vm")||document.getElementsByClassName("link-navbar")[0];let a=false;if(e instanceof Element){const l=parseInt(window.getComputedStyle(e).height);a=l===50||l===56}if(a){l.applyStyle("style","bilibili-new-style")}else{l.applyStyle("oldStyle","bilibili-new-style")}});SpinQuery.count(()=>$(".player-wrap,.danmaku-box"),2,e=>{e.css("height",$("#bofqi").css("height"))});if(e.overrideNavBar){new SpinQuery(()=>$(".search").not(".filter-item"),e=>e.length>0&&$(".nav-con.fr").length>0,e=>{e.detach().insertAfter(".nav-con.fr")}).start();l.applyStyle("navbarOverrideStyle","bilibili-nav-bar-override");if(!e.showBanner){l.applyStyle("noBannerStyle","bilibili-banner-override")}}return{ajaxReload:false}}})();
|
(()=>{return(e,l)=>{l.applyStyle("scrollbarStyle","bilibili-scrollbar-style");SpinQuery.any(()=>$(".custom-scrollbar"),e=>e.removeClass("custom-scrollbar"));SpinQuery.any(()=>$(".bili-wrapper,#link-navbar-vm,.link-navbar"),()=>{const e=document.getElementsByClassName("bili-wrapper")[0]||document.getElementById("link-navbar-vm")||document.getElementsByClassName("link-navbar")[0];let n=false;if(e instanceof Element){const l=parseInt(window.getComputedStyle(e).height);n=l===50||l===56}if(n){l.applyStyle("style","bilibili-new-style")}else{l.applyStyle("oldStyle","bilibili-new-style")}});if(e.overrideNavBar){new SpinQuery(()=>$(".search").not(".filter-item"),e=>e.length>0&&$(".nav-con.fr").length>0,e=>{e.detach().insertAfter(".nav-con.fr")}).start();l.applyStyle("navbarOverrideStyle","bilibili-nav-bar-override");if(!e.showBanner){l.applyStyle("noBannerStyle","bilibili-banner-override")}}return{ajaxReload:false}}})();
|
||||||
@ -1 +1 @@
|
|||||||
.bilibili-player-video-sendbar,.bilibili-player-video-bottom-area::before{background-color:transparent!important;}
|
.bilibili-player-video-sendbar{background-color:#222!important;}.mode-webfullscreen .bilibili-player-video-sendbar,.mode-fullscreen .bilibili-player-video-sendbar,.bilibili-player-video-bottom-area::before{background-color:transparent!important;}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
// a
|
.bilibili-player-video-sendbar
|
||||||
// {
|
{
|
||||||
// background-color: #222 !important;
|
background-color: #222 !important;
|
||||||
// }
|
}
|
||||||
// a
|
// a
|
||||||
// {
|
// {
|
||||||
// background-color: #444 !important;
|
// background-color: #444 !important;
|
||||||
@ -23,7 +23,8 @@
|
|||||||
// background-image: none !important;
|
// background-image: none !important;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
.bilibili-player-video-sendbar,
|
.mode-webfullscreen .bilibili-player-video-sendbar,
|
||||||
|
.mode-fullscreen .bilibili-player-video-sendbar,
|
||||||
.bilibili-player-video-bottom-area::before
|
.bilibili-player-video-bottom-area::before
|
||||||
{
|
{
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
.bili-wrapper{display:flex!important;justify-content:center!important;align-items:center!important;height:50px!important;}.bili-header-m>.nav-menu,.link-navbar,.link-navbar .main-ctnr .nav-items-ctnr{background:$customStyleColor!important;}.bili-header-m>.nav-menu,.link-navbar-ctnr{box-shadow:$customStyleColor70 0px 2px 10px 1px!important;}div.stardust-player{background:#fff!important;}.nav-mask{background-color:transparent!important;box-shadow:none!important;}.nav-con{flex-grow:10!important;flex-shrink:0!important;}.nav-con.fl{margin-left:-2em!important;}.bili-header-m .nav-menu .nav-con .nav-item .t,.link-navbar .main-ctnr .nav-logo,.link-navbar .nav-item,.shortcuts-ctnr,.link-navbar .nav-item:hover,.link-navbar .main-ctnr .nav-switcher,.my-link-btn{color:$foregroundd!important;}li.nav-item:hover,.link-navbar .nav-item:hover,.shortcuts-ctnr .shortcut-item:hover,.my-link-btn:hover,.publish-btn:hover{background-color:hsla(0,0%,$brightness,.2)!important;}li.nav-item.home:hover,.link-navbar .nav-item:hover .nav-link .label,.shortcuts-ctnr .shortcut-item .label-wrapper .text:hover,.publish-btn:hover::after,.my-link-btn .label:hover,.bilibili-player-video-control-mask{background:transparent!important;}.vip-m{background:white!important;}a.t>i.bili-icon-logo,a.t>i.bili-icon{width:50px!important;left:-60px!important;top:0px!important;height:50px!important;background-position-y:12px!important;}a.t>i.bili-icon-logo,a.t>i.bili-icon,.main-ctnr .nav-logo:before,.link-navbar .nav-item:first-child::before{filter:brightness(0) $filterInvert!important;opacity:0.81!important;}#entryOld,.nav-search-submit,.b-icon-app,.title-icon,.blp-red-tip::after{display:none!important;}.i-face>.face{margin-top:-1px!important;}.i-face>.face,.user-panel-ctnr .msg-hinter{border:1.5px solid #fff3!important;}div.up-load{margin-left:9px!important;height:32px!important;order:4!important;flex-grow:0;flex-shrink:0;}.publish-btn{height:40px!important;line-height:40px!important;background:$customStyleColor!important;border:1px solid $foregroundd!important;border-radius:5px!important;box-shadow:none!important;top:calc(50% - 20px)!important;transition:all 0.2s!important;}.publish-panel{margin-top:7px!important;}.my-link-btn{border-radius:0!important;}.slot-ctnr a{color:#222!important;}.u-link{background:transparent!important;color:$foregroundd!important;border-radius:4px!important;line-height:30px!important;height:30px!important;transition:background-color .2s!important;}.u-link,.shortcuts-ctnr .shortcut-item .hinter,.shortcuts-ctnr .shortcut-item .num-hinter{border:1px solid $foregroundb!important;}.u-link:hover{opacity:1!important;background-color:hsla(0,0%,$brightness,.2)!important;}.stardust-video .nav-con .nav-search{width:130px!important;}.stardust-video .nav-con .nav-search .nav-search-keyword{color:#222!important;width:120px!important;}.stardust-video .nav-con #nav_searchform{margin-top:0.1rem!important;border-radius:4px!important;background:#fffb!important;border:none!important;transition:background-color .2s!important;box-shadow:0px 2px 10px 1px #0002;}.search-bar-ctnr .search-bar{background-color:#fffd!important;transition:all 0.2s!important;}.search-bar-ctnr .search-bar:hover,.stardust-video .nav-con #nav_searchform:hover{background-color:#fff!important;}#bilibiliPlayer{box-shadow:0px 4px 16px 0px $customStyleColor40!important;}.blur-bg{opacity:$blurBackgroundOpacity!important;filter:blur(20px)!important;}.cancel{width:28px!important;}.stardust-video .nav-con ul.bilibili-suggest{margin-left:-35px!important;width:200px!important;}li.suggest-item>a{max-width:155px!important;}div.num{border:1px solid #fff8!important;}#primary_menu,#primary_menu>ul.nav-menu{display:flex!important;align-items:center!important;}div.nav-gif,#primary_menu{padding:0!important;}.filter-item.search{margin:0!important;}.input-box textarea{padding:8px!important;}.link-navbar .main-ctnr .nav-switcher.open-btn{filter:brightness(0) invert(1)!important;opacity:0.8!important;}.guard-rank-cntr.open .tip.rank-desc{visibility:visible!important;}.guard-rank-cntr .rank-cntr .tip{visibility:hidden!important;}.tag-container .tag-item .tag-border .tag-border-inner{width:100%!important;}@media only screen and (min-width: 1291px){.nav-con{margin:0 1em!important;}.stardust-video .nav-con .bilibili-suggest.nav,.stardust-video .nav-con .nav-search{width:250px!important;}.stardust-video .nav-con .nav-search .nav-search-keyword{width:240px!important;}.stardust-video .nav-con ul.bilibili-suggest{margin-left:0px!important;width:250px!important;}.stardust-video .nav-con li.suggest-item>a{max-width:205px!important;}}
|
.bili-wrapper{display:flex!important;justify-content:center!important;align-items:center!important;height:50px!important;}.bili-header-m>.nav-menu,.link-navbar,.link-navbar .main-ctnr .nav-items-ctnr{background:$customStyleColor!important;}.bili-header-m>.nav-menu,.link-navbar-ctnr{box-shadow:$customStyleColor70 0px 2px 10px 1px!important;}div.stardust-player{background:#fff!important;}.nav-mask{background-color:transparent!important;box-shadow:none!important;}.nav-con{flex-grow:10!important;flex-shrink:0!important;}.nav-con.fl{margin-left:-2em!important;}.bili-header-m .nav-menu .nav-con .nav-item .t,.link-navbar .main-ctnr .nav-logo,.link-navbar .nav-item,.shortcuts-ctnr,.link-navbar .nav-item:hover,.link-navbar .main-ctnr .nav-switcher,.my-link-btn{color:$foregroundd!important;}li.nav-item:hover,.link-navbar .nav-item:hover,.shortcuts-ctnr .shortcut-item:hover,.my-link-btn:hover,.publish-btn:hover{background-color:hsla(0,0%,$brightness,.2)!important;}li.nav-item.home:hover,.link-navbar .nav-item:hover .nav-link .label,.shortcuts-ctnr .shortcut-item .label-wrapper .text:hover,.publish-btn:hover::after,.my-link-btn .label:hover,.bilibili-player-video-control-mask{background:transparent!important;}.vip-m{background:white!important;}a.t>i.bili-icon-logo,a.t>i.bili-icon{width:50px!important;left:-60px!important;top:0px!important;height:50px!important;background-position-y:12px!important;}a.t>i.bili-icon-logo,a.t>i.bili-icon,.main-ctnr .nav-logo:before,.link-navbar .nav-item:first-child::before{filter:brightness(0) $filterInvert!important;opacity:0.81!important;}#entryOld,.nav-search-submit,.b-icon-app,.title-icon,.blp-red-tip::after{display:none!important;}.i-face>.face{margin-top:-1px!important;}.i-face>.face,.user-panel-ctnr .msg-hinter{border:1.5px solid #fff3!important;}div.up-load{margin-left:9px!important;height:32px!important;order:4!important;flex-grow:0;flex-shrink:0;}.publish-btn{height:40px!important;line-height:40px!important;background:$customStyleColor!important;border:1px solid $foregroundd!important;border-radius:5px!important;box-shadow:none!important;top:calc(50% - 20px)!important;transition:all 0.2s!important;}.publish-panel{margin-top:7px!important;}.my-link-btn{border-radius:0!important;}.slot-ctnr a{color:#222!important;}.u-link{background:transparent!important;color:$foregroundd!important;border-radius:4px!important;line-height:30px!important;height:30px!important;transition:background-color .2s!important;}.u-link,.shortcuts-ctnr .shortcut-item .hinter,.shortcuts-ctnr .shortcut-item .num-hinter{border:1px solid $foregroundb!important;}.u-link:hover{opacity:1!important;background-color:hsla(0,0%,$brightness,.2)!important;}.stardust-video .nav-con .nav-search{width:130px!important;}.stardust-video .nav-con .nav-search .nav-search-keyword{color:#222!important;width:120px!important;}.stardust-video .nav-con #nav_searchform{margin-top:0.1rem!important;border-radius:4px!important;background:#fffb!important;border:none!important;transition:background-color .2s!important;box-shadow:0px 2px 10px 1px #0002;}.search-bar-ctnr .search-bar{background-color:#fffd!important;transition:all 0.2s!important;}.search-bar-ctnr .search-bar:hover,.stardust-video .nav-con #nav_searchform:hover{background-color:#fff!important;}#bilibiliPlayer{box-shadow:0px 4px 16px 0px $customStyleColor40!important;}.blur-bg{opacity:$blurBackgroundOpacity!important;filter:blur(20px)!important;}.cancel{width:28px!important;}.stardust-video .nav-con ul.bilibili-suggest{margin-left:-35px!important;width:200px!important;}li.suggest-item>a{max-width:155px!important;}div.num{border:1px solid #fff8!important;}#primary_menu,#primary_menu>ul.nav-menu{display:flex!important;align-items:center!important;}div.nav-gif,#primary_menu{padding:0!important;}.filter-item.search{margin:0!important;}.input-box textarea{padding:8px!important;}.link-navbar .main-ctnr .nav-switcher.open-btn{filter:brightness(0) invert(1)!important;opacity:0.8!important;}.guard-rank-cntr.open .tip.rank-desc{visibility:visible!important;}.guard-rank-cntr .rank-cntr .tip{visibility:hidden!important;}.tag-container .tag-item .tag-border .tag-border-inner{width:100%!important;}.player-wrap,.danmaku-box{height:513px;}@media only screen and (min-width: 1291px){.nav-con{margin:0 1em!important;}.stardust-video .nav-con .bilibili-suggest.nav,.stardust-video .nav-con .nav-search{width:250px!important;}.stardust-video .nav-con .nav-search .nav-search-keyword{width:240px!important;}.stardust-video .nav-con ul.bilibili-suggest{margin-left:0px!important;width:250px!important;}.stardust-video .nav-con li.suggest-item>a{max-width:205px!important;}}
|
||||||
@ -266,6 +266,11 @@ div.nav-gif,
|
|||||||
{
|
{
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
.player-wrap,
|
||||||
|
.danmaku-box
|
||||||
|
{
|
||||||
|
height: 513px;
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 1291px)
|
@media only screen and (min-width: 1291px)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user