From d589751f10eccb5ccf85446d7eb35c7e3d2249b9 Mon Sep 17 00:00:00 2001 From: Joshua Shapiro Date: Sat, 4 Nov 2023 21:58:35 -0400 Subject: [PATCH 1/7] Move nav to left and make content wider --- docs/_static/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_static/style.css b/docs/_static/style.css index 28d9fe8e..f4bdd316 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -9,6 +9,7 @@ body { } .wy-nav-content { + max-width: 900px !important; background: #fdfdfd; } @@ -195,8 +196,7 @@ div.version { @media (min-width: 950px) { .wy-grid-for-nav { - position: relative; - width: 900px; + max-width: 1200px; margin-left: auto; margin-right: auto; } From bf506e879b3e47139d4c4795d666e300b36aabc3 Mon Sep 17 00:00:00 2001 From: Joshua Shapiro Date: Thu, 30 Nov 2023 14:54:28 -0500 Subject: [PATCH 2/7] test Nozomi's fix --- docs/_static/style.css | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/_static/style.css b/docs/_static/style.css index f4bdd316..c271ec6d 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -6,6 +6,9 @@ body { font-family: 'Source Sans Pro', sans-serif; font-weight: 400; line-height: 1.5; + margin: 0 auto; + position: relative; + width: 1200px; } .wy-nav-content { @@ -58,7 +61,9 @@ a, a:visited { } .wy-nav-side { - background-image: linear-gradient(0deg,#fdfdfd 0%,#edf7fd 100%); + background: linear-gradient(0deg,#fdfdfd 0%,#edf7fd 100%); + max-height: calc(100% - 45px); + overflow: auto; color: #000000; } @@ -190,12 +195,21 @@ a, a:visited { content: "ScPCA Portal" } +.rst-versions { + position: sticky; + top: calc(100% - 45px); +} + div.version { color: white !important; } @media (min-width: 950px) { + body { + width: 100%; + } .wy-grid-for-nav { + position: relative; max-width: 1200px; margin-left: auto; margin-right: auto; From db25c6c9dfdbc9593469234e0bc03a5d3fc82f54 Mon Sep 17 00:00:00 2001 From: Joshua Shapiro Date: Thu, 30 Nov 2023 16:20:10 -0500 Subject: [PATCH 3/7] Revert "test Nozomi's fix" This reverts commit bf506e879b3e47139d4c4795d666e300b36aabc3. --- docs/_static/style.css | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/docs/_static/style.css b/docs/_static/style.css index c271ec6d..f4bdd316 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -6,9 +6,6 @@ body { font-family: 'Source Sans Pro', sans-serif; font-weight: 400; line-height: 1.5; - margin: 0 auto; - position: relative; - width: 1200px; } .wy-nav-content { @@ -61,9 +58,7 @@ a, a:visited { } .wy-nav-side { - background: linear-gradient(0deg,#fdfdfd 0%,#edf7fd 100%); - max-height: calc(100% - 45px); - overflow: auto; + background-image: linear-gradient(0deg,#fdfdfd 0%,#edf7fd 100%); color: #000000; } @@ -195,21 +190,12 @@ a, a:visited { content: "ScPCA Portal" } -.rst-versions { - position: sticky; - top: calc(100% - 45px); -} - div.version { color: white !important; } @media (min-width: 950px) { - body { - width: 100%; - } .wy-grid-for-nav { - position: relative; max-width: 1200px; margin-left: auto; margin-right: auto; From 324119b09d5880778cc81e5a84eda53655eb7fd0 Mon Sep 17 00:00:00 2001 From: Joshua Shapiro Date: Thu, 30 Nov 2023 16:27:20 -0500 Subject: [PATCH 4/7] Try a more complex calc --- docs/_static/style.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/_static/style.css b/docs/_static/style.css index f4bdd316..4093c46b 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -6,10 +6,13 @@ body { font-family: 'Source Sans Pro', sans-serif; font-weight: 400; line-height: 1.5; + margin: 0 auto; + position: relative; + width: 1200px; } .wy-nav-content { - max-width: 900px !important; + max-width: 900px; background: #fdfdfd; } @@ -190,6 +193,10 @@ a, a:visited { content: "ScPCA Portal" } +.rst-versions{ + margin-left: max(calc(50% - 600px), 0px); +} + div.version { color: white !important; } From 146df8c54510b3947b779b2f02169227bce5a07a Mon Sep 17 00:00:00 2001 From: Joshua Shapiro Date: Thu, 30 Nov 2023 16:35:23 -0500 Subject: [PATCH 5/7] use max width for body --- docs/_static/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_static/style.css b/docs/_static/style.css index 4093c46b..cd45a90a 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -8,7 +8,7 @@ body { line-height: 1.5; margin: 0 auto; position: relative; - width: 1200px; + max-width: 1200px; } .wy-nav-content { From 79ac428ee1eb19cfbd3bcedde29da3bc667b1c0d Mon Sep 17 00:00:00 2001 From: Joshua Shapiro Date: Thu, 30 Nov 2023 16:48:09 -0500 Subject: [PATCH 6/7] Add scroll for long TOC --- docs/_static/style.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/_static/style.css b/docs/_static/style.css index cd45a90a..a3e55e49 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -61,8 +61,9 @@ a, a:visited { } .wy-nav-side { - background-image: linear-gradient(0deg,#fdfdfd 0%,#edf7fd 100%); + background: linear-gradient(0deg,#fdfdfd 0%,#edf7fd 100%); color: #000000; + overflow: auto; } .wy-menu-vertical a { From d3bd741e63587de896d8533d0ac726cba1573a52 Mon Sep 17 00:00:00 2001 From: Joshua Shapiro Date: Thu, 30 Nov 2023 18:53:37 -0500 Subject: [PATCH 7/7] revert some other changes --- docs/_static/style.css | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/_static/style.css b/docs/_static/style.css index a3e55e49..c6eb2ab1 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -6,9 +6,6 @@ body { font-family: 'Source Sans Pro', sans-serif; font-weight: 400; line-height: 1.5; - margin: 0 auto; - position: relative; - max-width: 1200px; } .wy-nav-content { @@ -204,6 +201,7 @@ div.version { @media (min-width: 950px) { .wy-grid-for-nav { + position: relative; max-width: 1200px; margin-left: auto; margin-right: auto;