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

Spacing before a list in a .. note:: #131

Open
lezcano opened this issue Jun 28, 2021 · 1 comment
Open

Spacing before a list in a .. note:: #131

lezcano opened this issue Jun 28, 2021 · 1 comment

Comments

@lezcano
Copy link

lezcano commented Jun 28, 2021

The current template puts too much space when a list is rendered within a .. note:: directive. See for example the first note in
https://pytorch.org/docs/1.9.0/generated/torch.svd.html

I believe that the spacing between each item is also larger than in other contexts. Compare it with, for example, the list in:
https://pytorch.org/docs/stable/generated/torch.linalg.qr.html

cc @mattip

@mattip
Copy link
Contributor

mattip commented Jun 28, 2021

This is coming from the margin-top: 1.125rem; styling in

article.pytorch-article .note p,
article.pytorch-article .warning p,
article.pytorch-article .tip p,
article.pytorch-article .seealso p,
article.pytorch-article .hint p,
article.pytorch-article .important p,
article.pytorch-article .caution p,
article.pytorch-article .danger p,
article.pytorch-article .attention p,
article.pytorch-article .error p {
margin-top: 1.125rem;
}
article.pytorch-article .note .admonition-title {
background: #54c7ec;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants