Change code-annotations hover window's background colour #4960
-
Hello everyone, Quarto version -
Steps to reproduce:Step 1 - Copy the below contents to an
Step 2 - Copy the below contents to a
Step 3 - Copy the below contents to a
Step 4 - Things to observe:When As I'm a css novice, I seek your help please. Is it possible to annotated hover window's background? What is the related variable? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You can use the following two SASS variables: $code-annotation-higlight-color
$code-annotation-higlight-bg Note that these are not described currently in documentation. Note that the scss is supposed to follow a specific structure, see https://quarto.org/docs/output-formats/html-themes-more.html.
---
title: "Quarto- Minimal Working Example"
format:
html:
theme: [litera, style.scss]
highlight-style: dracula
code-annotations: hover
---
I'm looking to change the background colour of the code-annotation's hover popup inside a code block.
Currently it inherits the main body's background colour.
```{.bash filename="Terminal"}
quarto --version # <1>
```
1. Checks quarto version
/*-- scss:defaults --*/
$code-annotation-higlight-color: #b22222;
$code-annotation-higlight-bg: #22b222; |
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestions. However, I don't think this is the output I expected. Is there a css variable for the window? |
Beta Was this translation helpful? Give feedback.
-
The file with theming of the bubble annotation ("tippy box") for the |
Beta Was this translation helpful? Give feedback.
The file with theming of the bubble annotation ("tippy box") for the
code-annotations
feature is https://github.com/quarto-dev/quarto-cli/blob/main/src/resources/formats/html/tippy/_tippy.scss.