-
I am trying to change the link colour using custom css, but I can't get it to work the way I want it to. I only want to change the colour of links inside my articles, not in the sidebar etc. a:link {
color: #09bfdd;
} Does not change the colour in my article, but everywhere else, and :root {
--md-primary-fg-color: #000000;
--md-primary-fg-color--light: #000000;
--md-accent-fg-color: #09bfdd;
--md-accent-bg-color--light: #09bfdd;
--md-accent-bg-color: #09bfdd;
--md-accent-fg-color: #09bfdd;
--md-accent-fg-color--light: #09bfdd;
--md-accent-fg-color--transparent: #09bfdd;
} Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Answered by
squidfunk
Jan 1, 2021
Replies: 1 comment 1 reply
-
You need to scope your changes accordingly. To only change the link color, you can use the .md-content {
--md-typeset-a-color: #09bfdd;
} For a list of all definitions please see the color variable definitions. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
KaratekHD
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to scope your changes accordingly. To only change the link color, you can use the
--md-typeset-a-color
variable and scope it to the content area:For a list of all definitions please see the color variable definitions.