Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #92692 - jsha:cool-sidebar, r=GuillaumeGomez
Simplify and unify rustdoc sidebar styles Fixes #59860 This switches to just use size, weight, and spacing to distinguish headings in the sidebar. We no longer use boxes, horizontal bars, or centering to distinguish headings. This makes it much easier to understand the hierarchy of headings, and reduces visual noise. I also refactored how the mobile topbar works. Previously, we tried to shift around elements from the sidebar to make the topbar. Now, the topbar gets its own elements, which can be styled on their own. This makes styling and reasoning about those elements simpler. Because the heading font sizes are bigger, increase the sidebar width slightly. As a very minor change, removed version from the "All types" page. It's now only on the crate page. struct - https://rustdoc.crud.net/jsha/cool-sidebar/std/vec/struct.Vec.html trait - https://rustdoc.crud.net/jsha/cool-sidebar/std/io/trait.Read.html crate - https://rustdoc.crud.net/jsha/cool-sidebar/std/index.html mod - https://rustdoc.crud.net/jsha/cool-sidebar/std/any/index.html macro - https://rustdoc.crud.net/jsha/cool-sidebar/std/macro.panic.html fn - https://rustdoc.crud.net/jsha/cool-sidebar/std/io/fn.stdin.html type alias - https://rustdoc.crud.net/jsha/cool-sidebar/std/io/type.Result.html keyword - https://rustdoc.crud.net/jsha/cool-sidebar/std/keyword.as.html primitive - https://rustdoc.crud.net/jsha/cool-sidebar/std/primitive.pointer.html r? `@GuillaumeGomez` cc `@camelid` [Discussed on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/sidebar.20headings). Note: This has a lot of smaller commits, but I plan to squash them before merging.
- Loading branch information