Skip to content

Commit

Permalink
Rollup merge of #102203 - notriddle:notriddle/source-sidebar, r=Guill…
Browse files Browse the repository at this point in the history
…aumeGomez

rustdoc: remove no-op CSS `#source-sidebar { z-index }`

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
matthiaskrgr authored Sep 24, 2022
2 parents 455a20b + f570d31 commit 1c4a85f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,6 @@ pre.rust {
}
#source-sidebar {
width: 100%;
z-index: 1;
overflow: auto;
}
#source-sidebar > .title {
Expand Down Expand Up @@ -1918,10 +1917,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 1c4a85f

Please sign in to comment.