Skip to content
Discussion options

You must be logged in to vote

Hi @hellt , on your screenshot you can see that the

[data-md-color-scheme="slate"][data-md-color-primary="indigo"]

rule from the palette.css file isn't overridden by your

[data-md-color-scheme="slate"]

rule from the nokia.css file.

The rule from the palette.css file is more specific than the rule from the custom file, it covers both the data-md-color-scheme and data-md-color-primary. Instead of using !important increase the "range" of your rule to be as explicit as the rule from mkdocs-material, in other words add the [data-md-color-primary="indigo"] part.

EDIT: The "range" is in fact specificity https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@hellt
Comment options

@hellt
Comment options

@squidfunk
Comment options

Comment options

You must be logged in to vote
3 replies
@kamilkrzyskow
Comment options

@hellt
Comment options

@squidfunk
Comment options

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