mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
rustdoc: remove no-op CSS .search-results .result-name > span
The rule `display: inline-block` was added in5afa52bc7d
. The `margin: 0` and `font-weight: normal` were added inc01bd560e2
. Both seem to have been added to override class-based rules that were targetted at method sections. See <c01bd560e2/src/librustdoc/html/static/rustdoc.css (L140-L148)
> for an example. The selectors that these were meant to override were changed ina8318e420d
and76a3b609d0
to be more specific, so they no longer need to be overridden.
This commit is contained in:
parent
52e003a6e9
commit
b96322801e
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user