Skip to content

Commit 6d02a4d

Browse files
committed
rustdoc: remove no-op source sidebar opacity
These rules were added in dc2c972 to work with CSS transitions. They're otherwise redundant, since the `visibility` property already hides everything. https://github.com/rust-lang/rust/blob/dc2c9723343c985740be09919236a6e96c4e4433/src/librustdoc/html/static/css/rustdoc.css#L350-L354 The transition was remove with 237d625, but the now-redundant `opacity` property was not.
1 parent 65445a5 commit 6d02a4d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ img {
442442
}
443443

444444
.source .sidebar > *:not(#sidebar-toggle) {
445-
opacity: 0;
446445
visibility: hidden;
447446
}
448447

@@ -451,7 +450,6 @@ img {
451450
}
452451

453452
.source-sidebar-expanded .source .sidebar > *:not(#sidebar-toggle) {
454-
opacity: 1;
455453
visibility: visible;
456454
}
457455

0 commit comments

Comments
 (0)