rails / sdoc

Standalone sdoc generator
http://api.rubyonrails.org/
Other
820 stars 131 forks source link

Contain more-less `<summary>` inside `<details>` #288

Closed jonathanhefner closed 1 year ago

jonathanhefner commented 1 year ago

Prior to this commit, the <summary> element of a more-less list was positioned just below the bottom of the <details> element, which caused it overlap with any subsequent padding or margin.

This commit extends the <details> element by adding bottom padding, and aligns the bottom of the <summary> element with the bottom of the <details> element so that the <summary> is always contained within the block.

Before After
before1 after1
before2 after2