about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-09-21 16:08:29 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-09-21 16:12:14 +0200
commit150623eb6c0084042623f521c052694bd6718e2d (patch)
tree3d7eab49024cad8e62e0a9013f7a7b41f17600a6 /src
parent8fd6d03e22fba2930ad377b87299de6a37076074 (diff)
downloadrust-150623eb6c0084042623f521c052694bd6718e2d.tar.gz
rust-150623eb6c0084042623f521c052694bd6718e2d.zip
Prevent usage of `.stab` elements to create scrollable areas in doc blocks
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index b4f5bf933a6..0a95c81aa72 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1102,6 +1102,12 @@ so that we can apply CSS-filters to change the arrow color in themes */
 	margin-right: 0.3rem;
 }
 
+/* This is to prevent the `.stab` elements to overflow the .docblock elements. */
+.docblock .stab {
+	padding: 0 0.125em;
+	margin-bottom: 0;
+}
+
 /* Black one-pixel outline around emoji shapes */
 .emoji {
 	text-shadow: