diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-09-21 16:08:29 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-09-21 16:12:14 +0200 |
| commit | 150623eb6c0084042623f521c052694bd6718e2d (patch) | |
| tree | 3d7eab49024cad8e62e0a9013f7a7b41f17600a6 /src | |
| parent | 8fd6d03e22fba2930ad377b87299de6a37076074 (diff) | |
| download | rust-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.css | 6 |
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: |
