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: fix spacing of non-toggled impl blocks #93763

Merged
merged 1 commit into from
Feb 13, 2022

Commits on Feb 10, 2022

  1. rustdoc: fix spacing of non-toggled impl blocks

    We recently removed the "up here" arrows on item-infos, and adjusted
    vertical spacing so that even without the arrow, it would be visually
    clear which item the item-info belonged to. The new CSS styles for
    vertical spacing only applied to toggles, though. This missed
    non-toggled impl blocks - for instance, those without any methods, like
    https://doc.rust-lang.org/nightly/std/marker/trait.Send.html#implementors.
    The result was lists of implementors that were spaced too closely. This
    PR fixes the spacing by making it apply to non-toggled impl blocks as
    well.
    
    This also fixes an issue where item-infos were displayed too far below
    their items. That was a result of display: table on .item-info .stab.
    Changed that to display: inline-block.
    jsha committed Feb 10, 2022
    Configuration menu
    Copy the full SHA
    0b22d41 View commit details
    Browse the repository at this point in the history