Skip to content

Commit 43a7438

Browse files
authored
Rollup merge of rust-lang#101397 - notriddle:notriddle/source-nav-not-sidebar-sub, r=GuillaumeGomez
rustdoc: remove redundant mobile-sized `.source nav:not(.sidebar).sub` It's redundant because there's already a selector `.source nav.sub` with exactly the same margin-left at [line 796]. [line 796]: https://github.com/rust-lang/rust/blob/84f0c3f79a85329dd79a54694ff8a7f427c842e9/src/librustdoc/html/static/css/rustdoc.css#L796 This selector was added in 1e98fb1, along with an identical desktop selector, but that desktop selector was removed in 6a5f8b1 as part of a larger simplification.
2 parents 723f0c4 + 3e743a0 commit 43a7438

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustdoc/html/static/css/rustdoc.css

-4
Original file line numberDiff line numberDiff line change
@@ -1883,10 +1883,6 @@ in storage.js plus the media query with (min-width: 701px)
18831883
background-color: var(--sidebar-background-color);
18841884
}
18851885

1886-
.source nav:not(.sidebar).sub {
1887-
margin-left: 32px;
1888-
}
1889-
18901886
.content {
18911887
margin-left: 0px;
18921888
}

0 commit comments

Comments
 (0)