Skip to content

Commit

Permalink
rustdoc: remove no-op CSS rule #source-sidebar { z-index: 1 }
Browse files Browse the repository at this point in the history
This rule became redundant in 07e3f99.
When `#source-sidebar` became nested below `.sidebar`, it went from being
`position: fixed` to `position: static`, and according to MDN's [z-index]
documentation, this means it has no effect.

[z-index]: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
  • Loading branch information
notriddle committed Sep 23, 2022
1 parent 8b0feb8 commit f570d31
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,6 @@ pre.rust {
}
#source-sidebar {
width: 100%;
z-index: 1;
overflow: auto;
}
#source-sidebar > .title {
Expand Down

0 comments on commit f570d31

Please sign in to comment.