Fix transparent effect not blocking fill

This commit is contained in:
the1812 2019-12-30 22:47:46 +08:00
parent 1c6f6a70c2
commit 3b0b3e4019
10 changed files with 25 additions and 18 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -28,9 +28,9 @@
"compact-layout.min.js": "B20609A7CBBDB1845FA0156FB5BE6B1E1A1B8B069EA85F65D16241DD2C12D738",
"custom-control-background.min.css": "1981FD2BF3B17ECF33F98D5DEDAF0D32ACBE9532A51FDB70822286991AB98EF3",
"custom-control-background.min.js": "2A439B045A51D24F5115DD25995ED37E3D0371A074199FE6C727F2235F39C4D9",
"custom-navbar.min.css": "F89E4E3E8764EBF2AC43DC3E91AD0B7D8F4321C82015CC926EEC667F2F24B8AB",
"custom-navbar.min.css": "AD995F2905FBC1CE975A5B8B6FBA5387BD4294097FF6540B8C1A79A1C2D0FF39",
"custom-navbar.min.html": "8A5332791C9693A571F7B885D6367616F519054CACEDA2DDA147735638EDEE15",
"custom-navbar.min.js": "C9B1D0796B79E6B25A7F55031A735CFDF1AD856D54129DDC22E4B60C84EB3902",
"custom-navbar.min.js": "B8AA154A6F02F684A0342A4E872D208012F875DB4BE7A2103D74788B4E9DF496",
"custom-navbar-settings.min.js": "BF251CA22EF6F8B681C70F9CC5C9DC3A31D6AAE3968CA3990722A0191B06AB13",
"danmaku-converter.min.js": "FDAB4DB2E3C79730A39CDA7C5FD193693621FED206C6549E9B8F13778080CC12",
"dark.min.css": "814FA9A31E38AC8FDD64306A7575EC3016A69AED110A2D215CBD9CF1DB53AF5C",

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1427,7 +1427,7 @@ class WatchlaterList extends NavbarComponent {
this.cards = []
return
}
this.cards = rawList.map(item => {
const cards = rawList.map(item => {
const href = (() => {
if (item.pages === undefined) {
return settings.watchLaterRedirect ?
@ -1455,6 +1455,13 @@ class WatchlaterList extends NavbarComponent {
upID: item.owner.mid,
}
})
// const noChange = cards.length === this.cards.length && cards.every((c, i) => this.cards[i].aid === c.aid)
// console.log(noChange)
// if (noChange) {
// console.log('skipped cards update')
// return
// }
this.cards = cards
},
async remove (aid, index) {
this.cards.splice(index, 1)

View File

@ -199,7 +199,7 @@ li.nav-item[report-id="playpage_dynamic"] .i-frame,
path {
fill: var(--navbar-foreground);
}
&.fill path {
&.fill:not(.transparent) path {
fill: var(--foreground-color-d);
}
&.shadow:not(.transparent) {
@ -237,7 +237,7 @@ li.nav-item[report-id="playpage_dynamic"] .i-frame,
&.dark .popup iframe {
box-shadow: rgba(0, 0, 0, 0.2) 0 4px 8px 0px;
}
&.fill {
&.fill:not(.transparent) {
--navbar-background: var(--theme-color);
--navbar-foreground: var(--foreground-color-d);
height: var(--navbar-height);
@ -356,7 +356,7 @@ li.nav-item[report-id="playpage_dynamic"] .i-frame,
opacity: 0.4;
margin: 0;
}
&.fill form {
&.fill:not(.transparent) form {
opacity: 0.8;
}
form:focus-within,