readthedocs / sphinx_rtd_theme

Sphinx theme from Read the Docs
https://sphinx-rtd-theme.readthedocs.io/
MIT License
4.74k stars 1.73k forks source link

Display of jshtml animations #1053

Open jofmi opened 3 years ago

jofmi commented 3 years ago

Problem

The control panels of jshtml animations are displayed wrong.

Reproducible Project

You can see a doc with a jshtml animation here: https://agentpy.readthedocs.io/en/latest/agentpy_virus_spread.html#Creating-an-animation

Error Logs/Results

You can see the wrong behavior here:

Screenshot from 2021-02-12 15-31-55

Expected Results

This is how it looks like normally (example from alabaster theme)

Screenshot from 2021-02-12 15-45-20

Possible Solution

The problem is caused by the following lines in theme.css:

label,
legend {
 display:block
}

I solved the problem by adding the following lines to a custom css file:

.anim-state label {
display:unset !important
}

If deemed relevant by the developers, this code could be added to theme.css.

Environment Info

Blendify commented 3 years ago

This is a rule coming from wyrm, maybe we should wait to see if we remove wyrm before looking into this