]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #90036 - jsha:less-rule, r=GuillaumeGomez
authorYuki Okushi <jtitor@2k36.org>
Tue, 19 Oct 2021 19:35:17 +0000 (04:35 +0900)
committerGitHub <noreply@github.com>
Tue, 19 Oct 2021 19:35:17 +0000 (04:35 +0900)
commit570b999c967ee414ed2ba3b87d87469cd910695b
treef545fe54d9f498c73a25847a6d30de9a9f786e2b
parentd8b3764bd2ae7054dc6896fbd414d95ccb9da2a0
parente39934374a6e27fa446fc2dcb4ea45050059c5a8
Rollup merge of #90036 - jsha:less-rule, r=GuillaumeGomez

Remove border-bottom from most docblocks.

Headings in the top-doc docblock still get a border-bottom due to a rule
that covers all h2, h3, and h4. Method docblocks are generally h5, and
so don't get a border-bottom anymore.

This fixes a problem where a sub-sub-heading within a method would have
a line that went all the way across the page, creating a division that
made that sub-sub-heading look much more important than it really is.

Fixes #90033

Demo at https://jacob.hoffman-andrews.com/rust/less-rule/std/string/struct.String.html

r? ``@GuillaumeGomez``
src/librustdoc/html/static/css/rustdoc.css