Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: remove no-op CSS .search-results .result-name > span #101737

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/librustdoc/html/static/css/rustdoc.css
Expand Up @@ -987,12 +987,6 @@ so that we can apply CSS-filters to change the arrow color in themes */
padding-right: 1em;
}

.search-results .result-name > span {
display: inline-block;
margin: 0;
font-weight: normal;
}

.popover {
font-size: 1rem;
position: absolute;
Expand Down
3 changes: 3 additions & 0 deletions src/test/rustdoc-gui/search-result-display.goml
Expand Up @@ -13,6 +13,9 @@ size: (600, 100)
// when computed it's larger.
assert-css: (".search-results div.desc", {"width": "566px"})

// The result set is all on one line.
assert-css: (".search-results .result-name > span", {"display": "inline"})

// Check that the crate filter `<select>` is correctly handled when it goes to next line.
// To do so we need to update the length of one of its `<option>`.
size: (900, 900)
Expand Down