Skip to content

Commit b273c75

Browse files
committed
rustdoc: remove unused CSS #search { position: relative }
This was added in 611d0e6, to allow its child `#results` element to be absolutely positioned inside it. The child stopped being absolute in 8c04695. To keep the layout looking the same, the links need to not have `width: 100%` any more, relying instead on the box naturally growing to fit because it has `display: block`.
1 parent 98f3001 commit b273c75

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

-5
Original file line numberDiff line numberDiff line change
@@ -596,10 +596,6 @@ h2.location a {
596596
margin: 0;
597597
}
598598

599-
#search {
600-
position: relative;
601-
}
602-
603599
.search-loading {
604600
text-align: center;
605601
}
@@ -977,7 +973,6 @@ so that we can apply CSS-filters to change the arrow color in themes */
977973

978974
.search-results > a {
979975
display: block;
980-
width: 100%;
981976
/* A little margin ensures the browser's outlining of focused links has room to display. */
982977
margin-left: 2px;
983978
margin-right: 2px;

0 commit comments

Comments
 (0)