Publication cover image

use casper 3.011 , Upload Publication cover image,but header show an dark Publication cover image,I have try
.is-cover::before {
background-color: transparent
}

in Code injection site header.
But nothing happen, It is dark one Publication cover image.I want to ghost show cover color ,no dark cover.
How do I change?

I think the following will do the trick.

<style>
  @media (prefers-color-scheme: dark) {
    .site-header-background:before {
      background: transparent;
    }
  }
</style>

Thank you and your Cool code ! When I injection

.site-header-background:before { background: transparent; }

in Code injection, no dark mask layer,great!

complete code:

<style>
.site-header-background:before {
background: transparent;
}
</style>

casper (default)
Version 3.0.12

Looks like you are only using part of the code I provided, please use it fully.

First,I full code as you write.When I use the full, It is still dark. So I try remove the outer layer, @media (prefers-color-scheme: dark) { }, It works, no dark.

1 Like

Awesome!

Thanks anyway!

1 Like