From 13a70f5e5d302dd420ab24291b6e7b48bee99033 Mon Sep 17 00:00:00 2001 From: Rambaud Pierrick <12rambau@users.noreply.github.com> Date: Sun, 12 Nov 2023 17:16:44 +0000 Subject: [PATCH 1/4] fix: increase margins of autosummary tables --- src/pydata_sphinx_theme/assets/styles/content/_api.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pydata_sphinx_theme/assets/styles/content/_api.scss b/src/pydata_sphinx_theme/assets/styles/content/_api.scss index 22c228438..4baca5320 100644 --- a/src/pydata_sphinx_theme/assets/styles/content/_api.scss +++ b/src/pydata_sphinx_theme/assets/styles/content/_api.scss @@ -44,6 +44,11 @@ table.field-list { td:first-child { white-space: nowrap; } + + // increas margin of each element to differentiate functions from decriptions + dl { + margin-bottom: 2rem; + } } /* overriding basic.css to use our own monospace font */ From 1d66572873d9259ed89feb7b0cc5d152869d1bed Mon Sep 17 00:00:00 2001 From: Rambaud Pierrick <12rambau@users.noreply.github.com> Date: Sun, 12 Nov 2023 17:40:18 +0000 Subject: [PATCH 2/4] fix: the dl is not part of the table --- src/pydata_sphinx_theme/assets/styles/content/_api.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pydata_sphinx_theme/assets/styles/content/_api.scss b/src/pydata_sphinx_theme/assets/styles/content/_api.scss index 4baca5320..ca282f10c 100644 --- a/src/pydata_sphinx_theme/assets/styles/content/_api.scss +++ b/src/pydata_sphinx_theme/assets/styles/content/_api.scss @@ -44,11 +44,11 @@ table.field-list { td:first-child { white-space: nowrap; } +} - // increas margin of each element to differentiate functions from decriptions - dl { - margin-bottom: 2rem; - } +//increase margin bottom after the dl elements +dl { + margin-bottom: 2rem; } /* overriding basic.css to use our own monospace font */ From 1213632c7c0fb58f1205a4f71c3536486b1716ff Mon Sep 17 00:00:00 2001 From: Pierrick Rambaud Date: Thu, 16 Nov 2023 06:48:17 +0000 Subject: [PATCH 3/4] use the real API selector --- src/pydata_sphinx_theme/assets/styles/content/_api.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/pydata_sphinx_theme/assets/styles/content/_api.scss b/src/pydata_sphinx_theme/assets/styles/content/_api.scss index ca282f10c..d44dab263 100644 --- a/src/pydata_sphinx_theme/assets/styles/content/_api.scss +++ b/src/pydata_sphinx_theme/assets/styles/content/_api.scss @@ -46,11 +46,6 @@ table.field-list { } } -//increase margin bottom after the dl elements -dl { - margin-bottom: 2rem; -} - /* overriding basic.css to use our own monospace font */ .sig { font-family: var(--pst-font-family-monospace); @@ -123,6 +118,9 @@ span.highlighted { // the API selector // from https://github.com/pradyunsg/furo/blob/main/src/furo/assets/styles/content/_api.sass#L6) dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) { + //increase margin bottom after the dl elements + margin-bottom: 2rem; + dd { margin-left: 2rem; From 869f6f86c96fe77c7a552dee2475aa7f76da63dc Mon Sep 17 00:00:00 2001 From: Pierrick Rambaud Date: Thu, 16 Nov 2023 06:48:48 +0000 Subject: [PATCH 4/4] increase margin to 3rem --- src/pydata_sphinx_theme/assets/styles/content/_api.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydata_sphinx_theme/assets/styles/content/_api.scss b/src/pydata_sphinx_theme/assets/styles/content/_api.scss index d44dab263..5ec1c49d9 100644 --- a/src/pydata_sphinx_theme/assets/styles/content/_api.scss +++ b/src/pydata_sphinx_theme/assets/styles/content/_api.scss @@ -119,7 +119,7 @@ span.highlighted { // from https://github.com/pradyunsg/furo/blob/main/src/furo/assets/styles/content/_api.sass#L6) dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) { //increase margin bottom after the dl elements - margin-bottom: 2rem; + margin-bottom: 3rem; dd { margin-left: 2rem;