Skip to content

Commit

Permalink
Add CSS tweak to hide summary when a details section is opened
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterC-DLS committed May 2, 2024
1 parent 873e4a3 commit 3e1a8f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit 3e1a8f8

Please sign in to comment.