How to change the tippy style for code annotations? #5976
-
DescriptionI've modified my css to achieve the following: via: code.sourceCode .code-annotation-anchor {
margin-top: 2px;
margin-left: 2px;
left: -12px;
position: absolute;
}
.sourceCode > .python {
padding-left: 1em;
} But it'd be really nice if there were a way to change the tippy style so that it can be on the left, not the right and actually work with the CSS. (and not cover the code!) In all my digging of the HTML being used, I couldn't find where to modify it at. Where does quarto set the style that it uses for tippy? Even if I have to manually modify it for the time being until Quarto supports something like this, it'd be wonderful if I could be shown how. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Beta Was this translation helpful? Give feedback.
-
There are tippy options for configuring the popover positioning which I think are probably hard coded when the library is initialized for code annotation. Positioning on the left would be a great enhancement... |
Beta Was this translation helpful? Give feedback.
It default positions itself
right
with some fallback positions:src/resources/formats/html/templates/quarto-html.ejs