File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
sphinx_togglebutton/_static Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -204,3 +204,16 @@ Here's how they look right after one another:
204204.. toggle ::
205205
206206 This is my second.
207+
208+ .. admonition :: A really long admonition that will take up multiple lines A really long admonition that will take up multiple lines
209+ :class: toggle
210+
211+ Admonition content.
212+
213+ .. image :: https://jupyterbook.org/_static/logo.png
214+
215+ .. admonition :: A really long admonition that will take up multiple lines A really long admonition that will take up multiple lines
216+
217+ Admonition content.
218+
219+ .. image :: https://jupyterbook.org/_static/logo.png
Original file line number Diff line number Diff line change 1212}
1313
1414/* Overrides for admonition toggles */
15- div.admonition.toggle-hidden {
16- height: 3em;
15+
16+ /* Titles should cut off earlier to avoid overlapping w/ button */
17+ div.admonition.toggle p.admonition-title {
18+ padding-right: 20%;
1719}
1820
21+ /* hides all the content of a page until de-toggled */
1922div.admonition.toggle-hidden .admonition-title ~ * {
23+ height: 0;
24+ margin: 0;
25+ float: left; /* so they overlap when hidden */
2026 opacity: 0;
2127 visibility: hidden;
2228}
You can’t perform that action at this time.
0 commit comments