diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-09-03 00:42:13 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-09-03 01:04:59 +0200 |
| commit | 55bc638a1d3e5c19fcec3462bb8357dea6f7f56c (patch) | |
| tree | e9a2e8ca0119a25edad5a117b149d1c7d1a85915 /src/librustdoc/html/static/css/rustdoc.css | |
| parent | e3af6dc23915f027b9de0721aae86f794a053627 (diff) | |
| download | rust-55bc638a1d3e5c19fcec3462bb8357dea6f7f56c.tar.gz rust-55bc638a1d3e5c19fcec3462bb8357dea6f7f56c.zip | |
Fix wrong padding for expanded scraped example
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index fa5a936d3f4..b69689cfb68 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -789,11 +789,18 @@ both the code example and the line numbers, so we need to remove the radius in t } .rustdoc:not(.src) .scraped-example:not(.expanded) .src-line-numbers, +.rustdoc:not(.src) .scraped-example:not(.expanded) .src-line-numbers > pre, .rustdoc:not(.src) .scraped-example:not(.expanded) pre.rust { padding-bottom: 0; /* See above comment, should be the same max-height. */ overflow: auto hidden; } +.rustdoc:not(.src) .scraped-example .src-line-numbers { + padding-top: 0; +} +.rustdoc:not(.src) .scraped-example.expanded .src-line-numbers { + padding-bottom: 0; +} .rustdoc:not(.src) .example-wrap pre { overflow: auto; |
