Commit b16a136
committed
docs: Add copy button to prompt blocks via sphinx-copybutton
Target p:last-child inside prompt admonitions so the button lands
inside the div (same positioning context as code blocks). Hidden
at rest, visible on hover — identical behavior to code blocks.
- copybutton_selector extended with div.admonition.prompt > p:last-child
- copybutton_exclude adds .admonition-title
- Hover CSS for button visibility inside prompt blocks
- Fix hidden title still taking space (display:none suffices)
- Remove bottom margin on last paragraph to tighten padding1 parent 2e03186 commit b16a136
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
231 | 248 | | |
232 | 249 | | |
233 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
0 commit comments