rustdoc: remove redundant CSS .out-of-band > span.since { position }
#101769
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At the time this CSS was added, it was just
span.since
, because the version info could be rendered in two different ways:<div class='since'>
was used for associated items like methods. It was absolutely positioned, and the selector in rustdoc.css that targetted it was just.since
.rust/src/librustdoc/html/static/rustdoc.css
Lines 522 to 529 in a5a2f2b
<span class='since'>
was introduced in a5a2f2b for page-global version info, so that it could be laid out alongside the[-]
/[+]
button. This CSS rule was added to override the absolute position introduced in (1).rust/src/librustdoc/html/static/rustdoc.css
Lines 637 to 641 in a5a2f2b
The selector was changed in 8fc6e42 so that everything could use a
<span>
tag, but the dichotomy of the absolutely-positioned version info for associated items and the static positioned item version info remained.The absolutely positioned
.since
was changed to one nested below a<div class="rightside">
container in 5de1391, so the version information is now always statically-positioned, and, as described in the commit message, "their DOM representation is consistent."