From 8e27a0174498d733a1dbb2c4187676cf7d3760d3 Mon Sep 17 00:00:00 2001 From: Johanna England Date: Fri, 1 Mar 2024 11:06:51 +0100 Subject: [PATCH 1/4] Increase contrast in footer --- doc/_static/custom.css | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/_static/custom.css b/doc/_static/custom.css index f95b07c2a3..535968c4bb 100644 --- a/doc/_static/custom.css +++ b/doc/_static/custom.css @@ -23,6 +23,7 @@ img { footer { margin-top: 2em; + color: #575757; } From b9061f08e9c3aa04a5975328972ff58c3d9dc50f Mon Sep 17 00:00:00 2001 From: Johanna England Date: Fri, 1 Mar 2024 11:18:35 +0100 Subject: [PATCH 2/4] Format using prettier --- doc/_static/custom.css | 58 +++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/doc/_static/custom.css b/doc/_static/custom.css index 535968c4bb..b483267862 100644 --- a/doc/_static/custom.css +++ b/doc/_static/custom.css @@ -1,16 +1,29 @@ /* Custom css for the Sphinx theme in NAV */ -a, a:hover, a:focus, a:visited, .alert a, .alert .alert-link {color: #1f74ad;} -.wy-menu a:visited, .wy-menu-vertical a:visited, .wy-menu a:hover, .wy-menu-vertical a:hover { color: #d9d9d9; } - -.wy-nav-top>a img.logo { - display:block; - margin:0 auto; - height:auto; - width:auto; - border-radius:0; - max-width:100%; - background:transparent +a, +a:hover, +a:focus, +a:visited, +.alert a, +.alert .alert-link { + color: #1f74ad; +} + +.wy-menu a:visited, +.wy-menu-vertical a:visited, +.wy-menu a:hover, +.wy-menu-vertical a:hover { + color: #d9d9d9; +} + +.wy-nav-top > a img.logo { + display: block; + margin: 0 auto; + height: auto; + width: auto; + border-radius: 0; + max-width: 100%; + background: transparent; } pre { @@ -26,7 +39,6 @@ footer { color: #575757; } - /* When people creates documentation they usually end up with a big honking list of h3's. This makes it very hard to separate the different sections, and adding this border helps a lot with that. That and I always wanted to make a css style @@ -37,24 +49,22 @@ h3 { /* Override the red color and background for code elements */ code { - color: #2C3E50; - background-color: #ECF0F1; + color: #2c3e50; + background-color: #ecf0f1; } - /* Contrast for pre elements was to small. */ pre { - color: #2C3E50; + color: #2c3e50; } - /* The following overrides the admonition colors. They all pass the WCAG 2.0 level AA test for contrast */ /* This covers the admonitions 'note', 'attention', 'hint', 'important' and 'tip' */ .alert-info { color: #2a617d; - background-color: #D9EDF7; + background-color: #d9edf7; } /* This covers the admonitions 'warning' and 'caution' */ @@ -66,10 +76,9 @@ level AA test for contrast */ /* This covers the admonitions 'alert' and 'danger' */ .alert-danger { color: #a73a00; - background-color: #F2DEDE; + background-color: #f2dede; } - /* Definition list */ dl { overflow: auto; @@ -83,7 +92,7 @@ dt { } dt:after { - content: ':' + content: ":"; } dd { @@ -103,8 +112,9 @@ dd { margin-left: auto; } -.class dt:after { content: initial; } - +.class dt:after { + content: initial; +} /* Highlight versionadded more */ p.versionadded { @@ -115,7 +125,7 @@ p.versionadded { } .guilabel { - background-color: #ECF0F1; + background-color: #ecf0f1; padding: 2px 4px; font-size: 90%; border-radius: 3px; From 5d970620909ca4a4d0bf8fdcdce4e68ad418caaa Mon Sep 17 00:00:00 2001 From: Johanna England Date: Fri, 1 Mar 2024 11:23:08 +0100 Subject: [PATCH 3/4] Add comment for mobile logo --- doc/_static/custom.css | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/_static/custom.css b/doc/_static/custom.css index b483267862..86ca5b51b4 100644 --- a/doc/_static/custom.css +++ b/doc/_static/custom.css @@ -16,6 +16,7 @@ a:visited, color: #d9d9d9; } +/* Show the logo on mobile exactly like on big screen */ .wy-nav-top > a img.logo { display: block; margin: 0 auto; From af1a0df9437b33a411798f8d92d81fe73d62433d Mon Sep 17 00:00:00 2001 From: Johanna England Date: Fri, 1 Mar 2024 11:23:49 +0100 Subject: [PATCH 4/4] Unify doubled pre definition --- doc/_static/custom.css | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/_static/custom.css b/doc/_static/custom.css index 86ca5b51b4..8aa064be86 100644 --- a/doc/_static/custom.css +++ b/doc/_static/custom.css @@ -27,10 +27,6 @@ a:visited, background: transparent; } -pre { - background: #ecf0f1; -} - img { margin-bottom: 1em; } @@ -57,6 +53,7 @@ code { /* Contrast for pre elements was to small. */ pre { color: #2c3e50; + background: #ecf0f1; } /* The following overrides the admonition colors. They all pass the WCAG 2.0