Rollup merge of #102898 - notriddle:notriddle/sidebar-block, r=GuillaumeGomez

rustdoc: remove unneeded `<div>` wrapper from sidebar DOM

When this was added, the sidebar had a bit more complex style. It can be removed, now.

Preview: https://notriddle.com/notriddle-rustdoc-demos/sidebar-block/std/index.html
This commit is contained in:
Yuki Okushi 2022-10-11 18:37:55 +09:00 committed by GitHub
commit 3011538b80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 35 additions and 48 deletions

View file

@ -501,13 +501,14 @@ img {
width: 100px;
}
.block ul, .block li {
ul.block, .block li {
padding: 0;
margin: 0;
list-style: none;
}
.block a,
.sidebar h3 a,
h2.location a {
display: block;
padding: 0.25rem;
@ -767,7 +768,7 @@ h2.small-section-header > .anchor {
text-decoration: underline;
}
.block a.current.crate { font-weight: 500; }
.crate.block a.current { font-weight: 500; }
/* In most contexts we use `overflow-wrap: anywhere` to ensure that we can wrap
as much as needed on mobile (see