Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor accessibility improvements #46

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ Icon
Network Trash Folder
Temporary Items
.apdisk
.hugo_build.lock
6 changes: 5 additions & 1 deletion assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ $accessible-gray-column-color: $gray-column-color;
background-color: $accessible-neutral-color;
}

.accessible-colors{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit of difficulty, as default accent color (#f98012) is a brand color. Anyway, a step in a good direction.

--accent: #BB4E06;
}
/**
Layout for desktop and laptop
**/
Expand All @@ -59,10 +62,11 @@ Layout for desktop and laptop
}

.home h1 {
color: #f98012;
color: var(--accent);
margin-bottom: 2ex;
}


footer .copyright {
margin: 1em 2em;
padding: 0 15px;
Expand Down
4 changes: 4 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ a:hover {
border-top: var(--border-width) solid var(--accent);
}

.navbar-default .navbar-nav>li>a{
color: #707070; /* Accessible Grey */
}

footer {
border-bottom: var(--border-width) solid var(--accent);
background-color: #f8f8f8;
Expand Down
13 changes: 13 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "GitHub sources"

fr:
languageName: Français
Expand Down Expand Up @@ -101,6 +102,7 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "sources GitHub"

it:
languageName: Italiano
Expand Down Expand Up @@ -133,6 +135,7 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "GitHub sources"

de:
languageName: Deutsch
Expand Down Expand Up @@ -168,6 +171,7 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "GitHub sources"

es:
languageName: Español
Expand Down Expand Up @@ -200,6 +204,7 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "GitHub sources"

nl:
languageName: Nederlands
Expand Down Expand Up @@ -235,6 +240,7 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "GitHub sources"

eu:
languageName: Euskara
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -329,6 +337,7 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "GitHub sources"

zh:
languageName: 中文
Expand Down Expand Up @@ -361,6 +370,7 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "GitHub sources"

fi:
languageName: Suomi
Expand Down Expand Up @@ -392,6 +402,7 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "GitHub sources"

et:
languageName: Eesti
Expand Down Expand Up @@ -424,6 +435,7 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "GitHub sources"

sv:
languageName: Svenska
Expand Down Expand Up @@ -459,3 +471,4 @@ languages:
- url: 'https://github.com/martignoni/moodle-tool-guide'
name: github
weight: 2
title: "GitHub sources"
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<main>
<div class="">
<h1>{{ site.Params.slogan }} <a href="https://moodle.org" target="_blank"><img src="/img/moodle-logo-icon.png" height="50px" width="50px"></img></a></h1>
<h1>{{ site.Params.slogan }} <a href="https://moodle.org" target="_blank"><img src="/img/moodle-logo-icon.png" height="50px" width="50px" alt="Moodle.org"/></a></h1>
{{ with .Content }} <div class="homepage-content text-justify">{{ . }}</div> {{ end }}
{{ partial "toolguide" . }}
</div>
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@
<div class="container">
<div class="navbar-header">
<a class="navbar-brand visible-xs" href="#">{{ .Title }}</a>
<button class="navbar-toggle" data-target=".navbar-collapse" data-toggle="collapse">
<button class="navbar-toggle" data-target=".navbar-collapse" data-toggle="collapse" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse">
<div class="collapse navbar-collapse" id="navbarSupportedContent">
{{ if site.Menus.main }}
<ul class="nav navbar-nav">
{{ range sort site.Menus.main }}
<li><a href="{{ .URL | absLangURL }}">{{ .Name }}</a></li>
{{ end }}
{{ if site.Menus.icon }}
{{ range sort site.Menus.icon }}
<li class="navbar-icon"><a href="{{ .URL | absLangURL }}"><i class="fa fa-{{ .Name }}"></i></a></li>
<li class="navbar-icon"><a href="{{ .URL | absLangURL }}" title="{{ .Title }}"><i class="fa fa-{{ .Name }}"></i></a></li>
{{ end }}
{{ end }}
</ul>
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.