diff --git a/scss/torchdyn/_torchdyn.scss b/scss/torchdyn/_torchdyn.scss index 024526c7..c1f1dc3f 100644 --- a/scss/torchdyn/_torchdyn.scss +++ b/scss/torchdyn/_torchdyn.scss @@ -112,6 +112,12 @@ article.pytorch-article .class dt { padding-left: 5em; } +/* for nested dt with no class (e.g. "Parameters" heading) */ +article.pytorch-article .class dl dt { + padding-left: 1rem; + padding-right: 1rem; +} + article.pytorch-article .class dt em.property { position: absolute; left: 0.2rem; diff --git a/torchdyn_sphinx_theme/static/css/theme.css b/torchdyn_sphinx_theme/static/css/theme.css index 8e749c11..1d3daf72 100644 --- a/torchdyn_sphinx_theme/static/css/theme.css +++ b/torchdyn_sphinx_theme/static/css/theme.css @@ -14078,6 +14078,12 @@ article.pytorch-article .class dt { padding-left: 5em; } +/* for nested dt with no class (e.g. "Parameters" heading) */ +article.pytorch-article .class dl dt { + padding-left: 1rem; + padding-right: 1rem; +} + article.pytorch-article .class dt em.property { position: absolute; left: 0.2rem;