1
Fork 0

rustdoc: remove unused CSS #search { position: relative }

This was added in 611d0e6cce, to allow its
child `#results` element to be absolutely positioned inside it. The
child stopped being absolute in 8c0469552e.

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`.
This commit is contained in:
Michael Howell 2022-09-09 10:09:01 -07:00
parent 98f3001eec
commit b273c7502e

View file

@ -596,10 +596,6 @@ h2.location a {
margin: 0;
}
#search {
position: relative;
}
.search-loading {
text-align: center;
}
@ -977,7 +973,6 @@ so that we can apply CSS-filters to change the arrow color in themes */
.search-results > a {
display: block;
width: 100%;
/* A little margin ensures the browser's outlining of focused links has room to display. */
margin-left: 2px;
margin-right: 2px;