diff options
| author | bors <bors@rust-lang.org> | 2021-10-30 19:31:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-10-30 19:31:47 +0000 |
| commit | e249ce6b2345587d6e11052779c86adbad626dff (patch) | |
| tree | 7c821c38d7cce4a75c40c221559eb59ea28e7cd7 /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 2609fab8e46414333aa68412134df65c7fcd1a77 (diff) | |
| parent | 197da45e183097f108c6f5f283a30070845f182d (diff) | |
Auto merge of #90422 - GuillaumeGomez:rollup-s1mdag0, r=GuillaumeGomez
Rollup of 5 pull requests Successful merges: - #90156 (Remove underlines from non-top docblocks.) - #90183 (Show all Deref implementations recursively) - #90202 (Improve and test cross-crate hygiene) - #90375 (Use `is_global` in `candidate_should_be_dropped_in_favor_of`) - #90399 (Skipping verbose diagnostic suggestions when calling .as_ref() on type not implementing AsRef) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index b98dae85ba0..93cbc0debb9 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -134,7 +134,7 @@ h1, h2, h3, h4 { margin: 20px 0 15px 0; padding-bottom: 6px; } -h5, h6 { +.docblock h3, .docblock h4, h5, h6 { margin: 15px 0 5px 0; } h1.fqn { @@ -149,7 +149,14 @@ h1.fqn { h1.fqn > .in-band > a:hover { text-decoration: underline; } -h2, h3, h4 { +/* The only headings that get underlines are: + Markdown-generated headings within the top-doc + Rustdoc-generated h2 section headings (e.g. "Implementations", "Required Methods", etc) + Underlines elsewhere in the documentation break up visual flow and tend to invert + section hierarchies. */ +h2, +.top-doc h3, +.top-doc h4 { border-bottom: 1px solid; } h3.code-header { |
