coderefinery / sphinx-lesson

Sphinx extension for creating CodeRefinery lessons
https://coderefinery.github.io/sphinx-lesson/
MIT License
15 stars 20 forks source link

css: for sphinx-togglebutton, remove buffer space in collapsed admonitions #76

Closed rkdarst closed 2 years ago

rkdarst commented 2 years ago
rkdarst commented 2 years ago

It can be browsed here: https://coderefinery.github.io/sphinx-lesson/branch/rkdarst--toggle-style-remove-margin/sample-episode-rst/

I just checked with two other themes: sphinx_book_theme and alabaster. Both are constructed so that it this CSS doesn't affect them. In the futere, it would be better to not make this unconditional, but sphinx-lesson would look at what theme is in use and then inject the custom CSS. Or better yet, do that in the upstream sphinx-togglebutton. But that can be improved later, I think.

So, I think this is good to go.