From 1fda48452b204ce9d4fee462f6368ba5e0b78eec Mon Sep 17 00:00:00 2001 From: Olivier Bado Date: Fri, 28 Jan 2022 17:06:12 +0100 Subject: [PATCH 1/3] Improve accessibility * better color contrasts for links when "contrasted colors is activated) * add some titles on links containing only an icon * add some alt on img * add some aria- attributes on mobile toggle button --- .hugo_build.lock | 0 assets/css/custom.css | 10 +++++++++- config.yml | 13 +++++++++++++ layouts/index.html | 2 +- layouts/partials/header.html | 6 +++--- package-lock.json | 12 ++++++------ 6 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 .hugo_build.lock diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/assets/css/custom.css b/assets/css/custom.css index adaa0be..8f12edf 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -48,6 +48,13 @@ $accessible-gray-column-color: $gray-column-color; background-color: $accessible-neutral-color; } +.accessible-colors .navbar-default .navbar-nav>li>a{ + color: #707070; /* Grey */ +} + +.accessible-colors{ + --accent: #BB4E06; +} /** Layout for desktop and laptop **/ @@ -59,10 +66,11 @@ Layout for desktop and laptop } .home h1 { - color: #f98012; + color: var(--accent); margin-bottom: 2ex; } + footer .copyright { margin: 1em 2em; padding: 0 15px; diff --git a/config.yml b/config.yml index dee838b..fc466c8 100644 --- a/config.yml +++ b/config.yml @@ -70,6 +70,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" fr: languageName: Français @@ -101,6 +102,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "sources GitHub" it: languageName: Italiano @@ -133,6 +135,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" de: languageName: Deutsch @@ -168,6 +171,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" es: languageName: Español @@ -200,6 +204,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" nl: languageName: Nederlands @@ -235,6 +240,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" eu: languageName: Euskara @@ -267,6 +273,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" pt-br: languageName: Português (Brasil) @@ -298,6 +305,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" pt-pt: languageName: Português @@ -329,6 +337,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" zh: languageName: 中文 @@ -361,6 +370,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" fi: languageName: Suomi @@ -392,6 +402,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" et: languageName: Eesti @@ -424,6 +435,7 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" sv: languageName: Svenska @@ -459,3 +471,4 @@ languages: - url: 'https://github.com/martignoni/moodle-tool-guide' name: github weight: 2 + title: "GitHub sources" diff --git a/layouts/index.html b/layouts/index.html index d2d7f70..99144dc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,7 +2,7 @@
-

{{ site.Params.slogan }} 

+

{{ site.Params.slogan }} Moodle.org

{{ with .Content }}
{{ . }}
{{ end }} {{ partial "toolguide" . }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e5cfede..bea5dff 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -28,13 +28,13 @@
-