pytorch_sphinx_theme icon indicating copy to clipboard operation
pytorch_sphinx_theme copied to clipboard

Spacing before a list in a `.. note::`

Open lezcano opened this issue 4 years ago • 1 comments

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

lezcano avatar Jun 28 '21 15:06 lezcano

This is coming from the margin-top: 1.125rem; styling in https://github.com/pytorch/pytorch_sphinx_theme/blob/6998a964e49c60179892685006d266e12c6c3292/pytorch_sphinx_theme/static/css/theme.css#L10914-L10927

mattip avatar Jun 28 '21 16:06 mattip