Skip to content

Commit

Permalink
update: popular page hide banner
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jun 17, 2024
1 parent 57bca4f commit 6af52a1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
27 changes: 20 additions & 7 deletions src/rules/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,12 @@ if (!isPageLiveHome()) {
maxValue: 2000,
disableValue: -1,
unit: 'px',
itemCSS: `.bili-header .bili-header__bar, [class^="BiliHeaderV3_biliHeaderBar___"] {padding-left: ???px !important;}`,
itemCSS: `
.bili-header .bili-header__bar,
.mini-header__content,
[class^="BiliHeaderV3_biliHeaderBar___"] {
padding-left: ???px !important;
}`,
itemCSSPlaceholder: '???',
}),
new NumberItem({
Expand All @@ -926,11 +931,14 @@ if (!isPageLiveHome()) {
maxValue: 2000,
disableValue: -1,
unit: 'px',
itemCSS: `.bili-header .center-search-container .center-search__bar {
width: ???px !important;
max-width: ???px !important;
min-width: 0px !important;
}`,
itemCSS: `
.bili-header .center-search-container .center-search__bar,
.bili-header-m .nav-search-box,
.international-header .nav-search-box {
width: ???px !important;
max-width: ???px !important;
min-width: 0px !important;
}`,
itemCSSPlaceholder: '???',
}),
new NumberItem({
Expand All @@ -941,7 +949,12 @@ if (!isPageLiveHome()) {
maxValue: 2000,
disableValue: -1,
unit: 'px',
itemCSS: `.bili-header .bili-header__bar, [class^="BiliHeaderV3_biliHeaderBar___"] {padding-right: ???px !important;}`,
itemCSS: `
.bili-header .bili-header__bar,
.mini-header__content,
[class^="BiliHeaderV3_biliHeaderBar___"] {
padding-right: ???px !important;
}`,
itemCSSPlaceholder: '???',
}),
]
Expand Down
15 changes: 13 additions & 2 deletions src/rules/popular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ if (isPagePopular()) {
new CheckboxItem({
itemID: 'homepage-hide-banner',
description: '隐藏 横幅banner',
itemCSS: `.header-banner__inner, .bili-header__banner {
itemCSS: `
.header-banner__inner, .bili-header__banner {
display: none !important;
}
.bili-header .bili-header__bar:not(.slide-down) {
Expand Down Expand Up @@ -45,7 +46,17 @@ if (isPagePopular()) {
}
/* header高度 */
#biliMainHeader {min-height: unset !important;}
`,
/* 旧版banner */
#internationalHeader .bili-banner {display: none;}
.mini-header__content {box-shadow: 0 2px 4px #00000014;}
.bili-icon_dingdao_zhuzhan:before {color: #00AEEC;}
.mini-header__content .nav-link .nav-link-ul .nav-link-item .link {color: black; text-shadow: unset;}
.mini-header__content .nav-search-box {border: 1px solid #E3E5E7;}
#nav_searchform {background-color: #F2F3F4 !important;}
.bili-header-m .nav-search .nav-search-btn, .international-header .nav-search .nav-search-btn {background-color: #F2F3F4;}
.mini-header__content .nav-user-center .user-con .item .name {color: black; text-shadow: unset;}
`,
}),
// 隐藏 滚动页面时 顶部吸附顶栏, 同步首页设定
new CheckboxItem({
Expand Down

0 comments on commit 6af52a1

Please sign in to comment.