Skip to content

Commit

Permalink
rustdoc: remove no-op mobile CSS #source-sidebar { z-index: 11 }
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 9a963e3 commit 8b0feb8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1922,10 +1922,6 @@ in storage.js plus the media query with (min-width: 701px)
border-bottom: 1px solid;
}

#source-sidebar {
z-index: 11;
}

#main-content > .line-numbers {
margin-top: 0;
}
Expand Down

0 comments on commit 8b0feb8

Please sign in to comment.