Skip to content

Commit 5f9ec36

Browse files
authored
Merge pull request readthedocs#635 from rtfd/bottom-margin-in-tables
Prevent extra whitespace at bottom of some table cells
2 parents 8e86b27 + 1b43a8e commit 5f9ec36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sass/_theme_rst.sass

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@
247247
border-color: $table-border-color
248248
&:not(.field-list)
249249
@extend .wy-table-striped
250+
// Remove bottom margin for the last element (and it's last child)
251+
td .last, td .last :last-child
252+
margin-bottom: 0
250253
// This table is what gets spit out for auto-generated API stuff. I style it smaller bits of padding.
251254
table.field-list
252255
@extend .wy-table

0 commit comments

Comments
 (0)