sphinx-tippy icon indicating copy to clipboard operation
sphinx-tippy copied to clipboard

Tippy css for light mode only with Furo

Open vict0rsch opened this issue 2 years ago • 3 comments
trafficstars

Hello,

first of all, thanks for the package!

I'm having an issue where I want to only change the tippy's css when Furo is in Light mode. The tippys are fine in Dark mode but not readable in Light mode:

Link issue:

SCR-20230831-isxt

Inline code issue: SCR-20230831-iswx

Any advice on how to procede?

Thanks!

vict0rsch avatar Aug 31 '23 13:08 vict0rsch

I'm also looking for a way around this problem (but for PyData-Sphinx-Theme)!

dbitouze avatar Jan 03 '24 18:01 dbitouze

Well, in fact, it is enough in the case of PyData-Sphinx-Theme to follow the “Important” admonition here.

dbitouze avatar Jan 03 '24 19:01 dbitouze

The following CSS improves basic compatibility with furo and can be applied as documented:

.tippy-box {
    background-color: var(--color-background-hover);
    color: var(--color-foreground-primary);
    border: 1px solid var(--color-foreground-border);
}

More furo color variables: https://github.com/pradyunsg/furo/blob/main/src/furo/assets/styles/variables/_colors.scss

lkubb avatar Aug 27 '24 00:08 lkubb