diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-09-10 07:09:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-10 07:09:21 +0200 |
| commit | 227e25a8d8175f19fa797bcd4e162d0ab8f9e0f9 (patch) | |
| tree | 3ee28d3495cac9eb9ac1ea1c83986f895fa1ac65 /src/librustdoc/html/static/css | |
| parent | 27afe5586054f079c4fc7005b05b6ce93f549766 (diff) | |
| parent | 0698ffbdb590d76cdeec0a1f06331fe82ff9aada (diff) | |
| download | rust-227e25a8d8175f19fa797bcd4e162d0ab8f9e0f9.tar.gz rust-227e25a8d8175f19fa797bcd4e162d0ab8f9e0f9.zip | |
Rollup merge of #101624 - notriddle:notriddle/search, r=GuillaumeGomez
rustdoc: remove unused CSS `#search { position: relative }`
This was added in 611d0e6ccef8b60fa86ff5aa8fe3571cd36c444a, to allow its child `#results` element to be absolutely positioned inside it. The child stopped being absolute in 8c0469552e879f6319f8f96db660bab9eae1de5c.
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`.
Diffstat (limited to 'src/librustdoc/html/static/css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index ec9e3b1ecd1..dae2ff4e226 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -592,10 +592,6 @@ h2.location a { margin: 0; } -#search { - position: relative; -} - .search-loading { text-align: center; } @@ -973,7 +969,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; |
