Skip to content

Footer color not changing with css? #2230

Answered by squidfunk
SDBonhof asked this question in Q&A
Discussion options

You must be logged in to vote

While the base colors are set on :root (which is html), the more concrete colors, like the footer colors, must be set on body. This Is because otherwise, they won't work with color schemes, as they are also set on the body. If you add a new declaration for the CSS variable on the body, there should be no problem.

If unsure, it's best to check the definitions.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SDBonhof
Comment options

@squidfunk
Comment options

@SDBonhof
Comment options

@squidfunk
Comment options

Answer selected by squidfunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants