Skip to content

Commit 8b0feb8

Browse files
committed
rustdoc: remove no-op mobile CSS #source-sidebar { z-index: 11 }
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
1 parent 9a963e3 commit 8b0feb8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,10 +1922,6 @@ in storage.js plus the media query with (min-width: 701px)
19221922
border-bottom: 1px solid;
19231923
}
19241924

1925-
#source-sidebar {
1926-
z-index: 11;
1927-
}
1928-
19291925
#main-content > .line-numbers {
19301926
margin-top: 0;
19311927
}

0 commit comments

Comments
 (0)