mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
35 lines
787 B
SCSS
35 lines
787 B
SCSS
// 将元素移到视图外来实现隐藏, 避免触发内部的 lazy load 内容
|
|
@mixin layout-shift {
|
|
position: fixed;
|
|
visibility: hidden;
|
|
top: 200vh;
|
|
left: 0;
|
|
height: 0 !important;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
overflow: hidden !important;
|
|
}
|
|
.bili-header-m .head-banner .head-content .head-logo,
|
|
.international-home > :not(.international-header),
|
|
.international-header .b-wrap,
|
|
.international-footer,
|
|
.palette-button-wrap {
|
|
@include layout-shift();
|
|
}
|
|
#app {
|
|
> .bili-wrapper,
|
|
> .elevator-module,
|
|
> .bili-header-m.stardust-common > .bili-wrapper {
|
|
@include layout-shift();
|
|
}
|
|
}
|
|
#i_cecream {
|
|
> main,
|
|
.palette-button-outer,
|
|
.bili-header__channel,
|
|
> .bili-feed4 > :not(.bili-header),
|
|
.bili-footer {
|
|
@include layout-shift();
|
|
}
|
|
}
|