From 471fde4d536602b2d61050f268922a643a9cfe82 Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" Date: Mon, 7 Oct 2024 14:40:20 +0200 Subject: [PATCH 1/4] Fix contrast issues with color overrides --- content/_static/overrides.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/_static/overrides.css b/content/_static/overrides.css index 26a0f16..cdd28d1 100644 --- a/content/_static/overrides.css +++ b/content/_static/overrides.css @@ -26,7 +26,7 @@ background: #DDDDDD; } .rst-content .instructor-note > .admonition-title { - background: #BBBBBB; + background: #595959; } .rst-content .instructor-note > .admonition-title::before { content: ""; @@ -37,7 +37,7 @@ background: #EEEEBB; } .rst-content .callout > .admonition-title { - background: #BBCC33; + background: #595959; } /* questions */ @@ -45,15 +45,15 @@ background: rgba(253, 219, 199, 0.3); } .rst-content .questions > .admonition-title { - background: rgba(204, 51, 17, 0.5); + background: #A7280C; } /* discussion */ .rst-content .discussion { - background: rgba(231, 212, 232 0.3); + background: rgba(231, 212, 232, 0.3); } .rst-content .discussion > .admonition-title { - background: rgba(194, 165, 207, 0.5); + background: #714884; } /* signature */ From 224e7e34d96286e6a95fe4ea86956b7b0b74e580 Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" Date: Mon, 7 Oct 2024 15:01:58 +0200 Subject: [PATCH 2/4] Fix background of typealong directive, which differs from type-along in sphinx-lesson --- content/_static/overrides.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_static/overrides.css b/content/_static/overrides.css index cdd28d1..9d3d191 100644 --- a/content/_static/overrides.css +++ b/content/_static/overrides.css @@ -83,7 +83,7 @@ background: rgba(221, 221, 221, 0.3); } .rst-content .typealong > .admonition-title { - background: rgba(187, 187, 187, 1.0); + background: rgba(89, 89, 89, 1.0); } .rst-content .typealong > .admonition-title::before { content: "\02328"; From ceb85ce06c4d7f4a4444f338b963606769ccabf7 Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" Date: Mon, 7 Oct 2024 16:38:32 +0200 Subject: [PATCH 3/4] Use a pinkish shade for questions directive --- content/_static/overrides.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_static/overrides.css b/content/_static/overrides.css index 9d3d191..af5ac91 100644 --- a/content/_static/overrides.css +++ b/content/_static/overrides.css @@ -45,7 +45,7 @@ background: rgba(253, 219, 199, 0.3); } .rst-content .questions > .admonition-title { - background: #A7280C; + background: #993360; } /* discussion */ From ba23d21e8cf83444ddf4b9a8ca315dacc534417a Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" Date: Mon, 7 Oct 2024 16:56:09 +0200 Subject: [PATCH 4/4] Fix signature and parameters directives --- content/_static/overrides.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/_static/overrides.css b/content/_static/overrides.css index af5ac91..56413f4 100644 --- a/content/_static/overrides.css +++ b/content/_static/overrides.css @@ -61,7 +61,7 @@ background: rgba(217, 240, 211, 0.3); } .rst-content .signature > .admonition-title { - background: rgba(172, 211, 158, 0.5); + background: #21634b; } .rst-content .signature > .admonition-title::before { content: "\01F527"; @@ -72,7 +72,7 @@ background: rgba(217, 240, 211, 0.0); } .rst-content .parameters > .admonition-title { - background: rgba(172, 211, 158, 0.5); + background: #21634b; } .rst-content .parameters > .admonition-title::before { content: "\01F4BB";