-
DescriptionOn one page of a Quarto website, I'd like to override my site-wide
However, I want the colour to be different depending on whether the website is in light or dark mode. Is there a way of doing that? Is it possible, for example, to evaluate such chunks depending on which mode is active? If this is not possible within a chunk, is there a way of doing it with a raw html block? Even better, is there a way to do this that picks up variables in my
where I have also tried defining additional e.g. in
and in the page yaml:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The body.quarto-dark a:hover {
color: $second-color;
} |
Beta Was this translation helpful? Give feedback.
-
@jimjam-slam, that's a much neater solution for what I wanted to achieve. Thank you 😄. I wasn't sure about making the page-specific chunk pick up the scss variable, but hard-coding the colours is good enough. So now, this css chunk is working well:
|
Beta Was this translation helpful? Give feedback.
@jimjam-slam, that's a much neater solution for what I wanted to achieve. Thank you 😄. I wasn't sure about making the page-specific chunk pick up the scss variable, but hard-coding the colours is good enough. So now, this css chunk is working well: