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:
204
204
.. toggle ::
205
205
206
206
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 12
12
}
13
13
14
14
/* 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%;
17
19
}
18
20
21
+ /* hides all the content of a page until de-toggled */
19
22
div.admonition.toggle-hidden .admonition-title ~ * {
23
+ height: 0;
24
+ margin: 0;
25
+ float: left; /* so they overlap when hidden */
20
26
opacity: 0;
21
27
visibility: hidden;
22
28
}
You can’t perform that action at this time.
0 commit comments