Skip to content

Commit

Permalink
rustdoc: remove no-op CSS .source .content { max-width: none }
Browse files Browse the repository at this point in the history
This rule originated in 7669f04, 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 135281e) but is
now called `width-limiter` (since
d7528e2).
  • Loading branch information
notriddle committed Sep 16, 2022
1 parent 1676a9a commit ac8628b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ img {
}

.source .content {
max-width: none;
overflow: visible;
}

Expand Down

0 comments on commit ac8628b

Please sign in to comment.