about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-09-16 20:37:17 -0700
committerGitHub <noreply@github.com>2022-09-16 20:37:17 -0700
commitb1178afcb4bc9199ef09c62b5e34ffc18b93ec94 (patch)
treea10f68ea76d5d3de5922c5f30a5e94ef94196bb9 /compiler/rustc_codegen_llvm/src
parent9c6ef4ae38078a9619fa840e264f0bef569abbd0 (diff)
parentac8628bcf6dcac5b06f9dff311e8dc05e1367e4e (diff)
downloadrust-b1178afcb4bc9199ef09c62b5e34ffc18b93ec94.tar.gz
rust-b1178afcb4bc9199ef09c62b5e34ffc18b93ec94.zip
Rollup merge of #101911 - notriddle:notriddle/source-content, r=GuillaumeGomez
rustdoc: remove no-op CSS on `.source .content`

# `margin-left: 0`

This rule originated in 7669f04fb0ddc3d71a1fb44dc1c5c00a6564ae99, to override the default, massive left margin that content used to accommodate the sidebar:

https://github.com/rust-lang/rust/blob/7669f04fb0ddc3d71a1fb44dc1c5c00a6564ae99/src/librustdoc/html/static/main.css#L307-L309

This massive left margin doesn't exist any more. It was replaced with a flexbox-based sidebar layout in 135281ed1525db15edd8ebd092aa10aa40df2386.

# `max-width: none`

This rule originated in 7669f04fb0ddc3d71a1fb44dc1c5c00a6564ae99, to override the default, limited line-width that makes sense for prose, but doesn't make sense for code (which typically uses hard-wrapped lines):

https://github.com/rust-lang/rust/blob/7669f04fb0ddc3d71a1fb44dc1c5c00a6564ae99/src/librustdoc/html/static/main.css#L153

This line width limiter isn't applied to the `<div class="content">` node any more. It's been moved to a separate wrapper `<div>` that used to be called `main-inner` (in 135281ed1525db15edd8ebd092aa10aa40df2386) but is now called `width-limiter` (since d7528e2157762fadb9665518fd1e4dee6d6a2809).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions