about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/rustdoc.css
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-10-11 18:37:55 +0900
committerGitHub <noreply@github.com>2022-10-11 18:37:55 +0900
commit3011538b80a52aedb2d7374798ffa35ea742d475 (patch)
tree5003688052141d525b0e9c626a1e24c4c8fc916d /src/librustdoc/html/static/css/rustdoc.css
parent98764c0c7292d866d795f69ccd286d0599e06361 (diff)
parent44f466cb08650a721d06dece85385506633d55fc (diff)
downloadrust-3011538b80a52aedb2d7374798ffa35ea742d475.tar.gz
rust-3011538b80a52aedb2d7374798ffa35ea742d475.zip
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
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index d4228a2ebc6..661aed71298 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -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