From 6e4c5778295667568846f11fa628e035f9057e03 Mon Sep 17 00:00:00 2001 From: Kat Shann Date: Mon, 6 Oct 2025 17:26:50 +0100 Subject: [PATCH 1/4] Some quick accessibility wins --- jekyll-assets/_layouts/boxes.html | 4 ++-- jekyll-assets/_layouts/docs.html | 8 ++++---- jekyll-assets/css/style.css | 10 ++++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/jekyll-assets/_layouts/boxes.html b/jekyll-assets/_layouts/boxes.html index 921302169..b86426c8a 100644 --- a/jekyll-assets/_layouts/boxes.html +++ b/jekyll-assets/_layouts/boxes.html @@ -9,12 +9,12 @@

Raspberry Pi Documentation

-
+
{% include tabs.html %}
-
+
{% for item in site.data.index.tabs %} {% if page.dir == item.path or page.dir == "/" and item.default_tab and item.default_tab == "yes" %} diff --git a/jekyll-assets/_layouts/docs.html b/jekyll-assets/_layouts/docs.html index 086155303..8fcc84e3b 100644 --- a/jekyll-assets/_layouts/docs.html +++ b/jekyll-assets/_layouts/docs.html @@ -20,10 +20,10 @@

-
+
-
+
-
+

{{ page.sub_title | markdownify | remove: '

' | remove: '

'}}

{{ content }}
-
On this page
+

On this page

diff --git a/jekyll-assets/css/style.css b/jekyll-assets/css/style.css index 420fe3435..ad2591a2e 100644 --- a/jekyll-assets/css/style.css +++ b/jekyll-assets/css/style.css @@ -15,6 +15,7 @@ --accent: #cd2355; --docsearch-primary-color: var(--accent); --docsearch-logo-color: var(--red-tint); + --docsearch-muted-color: #333; --copy-button-bg: #f6f6f6; --copy-button-text: #444; --textcolor: black; @@ -56,6 +57,7 @@ --accent: #d75a64; --docsearch-primary-color: var(--accent); --docsearch-logo-color: var(--red-tint); + --docsearch-muted-color: #333; --copy-button-bg: #707070; --copy-button-text: #CCC; --textcolor: white; @@ -754,7 +756,7 @@ h6 .anchor::before { #content p { font-size: 0.95em; - font-weight: 300; + font-weight: 400; line-height: 1.5em; margin-bottom: 15px; } @@ -926,7 +928,7 @@ span.mlabel { } #content td.content { - font-weight: 300; + font-weight: 400; } #content p > code, @@ -954,7 +956,7 @@ td div.listingblock div.content code { div.imageblock div.title { color: var(--subtle-text); font-style: italic; - font-weight: 300; + font-weight: 400; font-size: 0.8em; margin-top: -15px; margin-bottom: 30px; @@ -1212,7 +1214,7 @@ div.memitem { table.params, p.returns { - font-weight: 300; + font-weight: 400; } table.params td { From f1a61664f4cf83b12e6a70f5c71eea52133a0536 Mon Sep 17 00:00:00 2001 From: Kat Shann Date: Mon, 6 Oct 2025 17:38:31 +0100 Subject: [PATCH 2/4] Accessibility tweak --- jekyll-assets/_layouts/docs.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jekyll-assets/_layouts/docs.html b/jekyll-assets/_layouts/docs.html index 8fcc84e3b..832f895fe 100644 --- a/jekyll-assets/_layouts/docs.html +++ b/jekyll-assets/_layouts/docs.html @@ -11,11 +11,11 @@
-

+ Documentation -

+ From 12bcd32ec25c4d23661b5a38a04d631a059cb1ea Mon Sep 17 00:00:00 2001 From: Kat Shann Date: Tue, 7 Oct 2025 11:17:09 +0100 Subject: [PATCH 3/4] Update nav header to h2. CSS tweak to retain size. --- jekyll-assets/_layouts/docs.html | 4 ++-- jekyll-assets/css/style.css | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jekyll-assets/_layouts/docs.html b/jekyll-assets/_layouts/docs.html index 832f895fe..f8f6a9948 100644 --- a/jekyll-assets/_layouts/docs.html +++ b/jekyll-assets/_layouts/docs.html @@ -11,11 +11,11 @@
- +

Documentation - +

diff --git a/jekyll-assets/css/style.css b/jekyll-assets/css/style.css index ad2591a2e..75976709a 100644 --- a/jekyll-assets/css/style.css +++ b/jekyll-assets/css/style.css @@ -104,6 +104,10 @@ h1 { background: transparent; } +h2 { + font-size: initial; +} + body, article, div, nav, h1, h2, h3, h4, p { display: block; font-family: 'Roboto', sans-serif; From 93c35536327dc502fcc3b45d4fa1fc8a22feeddc Mon Sep 17 00:00:00 2001 From: Kat Shann Date: Tue, 7 Oct 2025 12:21:33 +0100 Subject: [PATCH 4/4] Further CSS tweaks --- jekyll-assets/css/style.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jekyll-assets/css/style.css b/jekyll-assets/css/style.css index 75976709a..58465ec9b 100644 --- a/jekyll-assets/css/style.css +++ b/jekyll-assets/css/style.css @@ -104,10 +104,6 @@ h1 { background: transparent; } -h2 { - font-size: initial; -} - body, article, div, nav, h1, h2, h3, h4, p { display: block; font-family: 'Roboto', sans-serif; @@ -188,6 +184,10 @@ div.subtitle p { background-color: var(--toc-hover-colour); } +#docs-header h2 { + font-size: initial; +} + #docs-header a { font-size: 1.9em; font-weight: 400;