Skip to content

Commit 150623e

Browse files
Prevent usage of .stab elements to create scrollable areas in doc blocks
1 parent 8fd6d03 commit 150623e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustdoc/html/static/css/rustdoc.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,12 @@ so that we can apply CSS-filters to change the arrow color in themes */
11021102
margin-right: 0.3rem;
11031103
}
11041104

1105+
/* This is to prevent the `.stab` elements to overflow the .docblock elements. */
1106+
.docblock .stab {
1107+
padding: 0 0.125em;
1108+
margin-bottom: 0;
1109+
}
1110+
11051111
/* Black one-pixel outline around emoji shapes */
11061112
.emoji {
11071113
text-shadow:

0 commit comments

Comments
 (0)