Skip to content

Commit e24e502

Browse files
committed
Revert back to more restrictive css selector for images
1 parent 28fa50e commit e24e502

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sass/_theme_rst.sass

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
.rst-content
1717
// Sphinx by default applies HxW style attributes to images. This fixes that oversite.
1818
img
19-
margin-bottom: $base-line-height
2019
max-width: 100%
2120
height: auto
2221

@@ -29,6 +28,11 @@
2928
&.align-center
3029
text-align: center
3130

31+
// Usually it's a good idea to give images some space.
32+
.section, section >
33+
img, a > img
34+
margin-bottom: $base-line-height
35+
3236
// normalize browser styling
3337
abbr[title]
3438
text-decoration: none

0 commit comments

Comments
 (0)