-
I want to use the code annotation in some of my code blocks. Because of this would I like to override the default main colour used for them, but I'm unable to find out what class(es) to override in CSS to achieve a different colour while not affecting other parts of the page itself. Is that doable? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sure, just use CSS: /* Inactive annotation */
.md-annotation__index::after {
background-color: red;
}
/* Focused or hovered annotation */
:where(:focus-within, :hover) > .md-annotation__index::after {
background-color: blue;
} On a side note, you might want to strip comments when using annotations. |
Beta Was this translation helpful? Give feedback.
Sure, just use CSS:
On a side note, you might want to strip comments when using annotations.