Skip to content

rustdoc: list elements containing multiple paragraphs have confusing margins #130761

Closed as not planned
@lolbinarycat

Description

@lolbinarycat

take the feature flags on the time crate.

before

the descriptions are grouped closer to the next element, instead of the one they actually apply to!

here's my simple fix:

.docblock li {
  margin-bottom: .8em;
}

.docblock li p {
  margin-bottom: .1em;
}

here's what it looks like with this fix applied:

after

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions