Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CSS tweak to hide summary when a details section is opened #1382

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions manual/source/_static/details_summary_hide.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
details[open] > summary {
width: 0.5em;
height: 2.2ex;
overflow: hidden;
}
3 changes: 3 additions & 0 deletions manual/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
],
}

def setup(app):
app.add_css_file('details_summary_hide.css')

# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
Expand Down
Loading