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: list elements containing multiple paragraphs have confusing margins #130761

Closed
lolbinarycat opened this issue Sep 23, 2024 · 2 comments
Closed
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@lolbinarycat
Copy link
Contributor

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

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Sep 23, 2024
@lolbinarycat lolbinarycat added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Sep 23, 2024
@lolbinarycat
Copy link
Contributor Author

waiting to open a PR until #129545 is merged.

@joculatrix
Copy link

Note for everyone's convenience: this is a duplicate issue of #130622.

@fmease fmease closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants