diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-11-25 15:33:38 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-11-26 21:03:45 +0100 |
| commit | 20eda22cbf36b5e9bf9fe28c53790c30fb31c9d3 (patch) | |
| tree | e3f0c321e343d333012ae765026ca79c963dfdf4 /src | |
| parent | 6d246f0c8d3063fea86abbb65a824362709541ba (diff) | |
| download | rust-20eda22cbf36b5e9bf9fe28c53790c30fb31c9d3.tar.gz rust-20eda22cbf36b5e9bf9fe28c53790c30fb31c9d3.zip | |
Update the first heading indent rule so it is only applied on the first heading of the top doc block
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index bfad5106951..479b5210f9e 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1129,15 +1129,17 @@ h3.variant { margin-top: 3px; } -.docblock > .section-header:first-child { +.top-doc .docblock > .section-header:first-child { margin-left: 15px; - margin-top: 0; } - -.docblock > .section-header:first-child:hover > a:before { +.top-doc .docblock > .section-header:first-child:hover > a:before { left: -10px; } +.docblock > .section-header:first-child { + margin-top: 0; +} + :target > code, :target > .code-header { opacity: 1; } |
