Skip to content

Commit

Permalink
Merge pull request #32 from pybamm-team/a11y-fix
Browse files Browse the repository at this point in the history
Accessibility improvements
  • Loading branch information
agriyakhetarpal authored Jul 14, 2023
2 parents e4cb9b9 + 8585ce9 commit c299200
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 5 deletions.
68 changes: 66 additions & 2 deletions assets/css/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,26 @@ to near-parity with NumPy and SciPy websites (which use older versions of the th
.hero-title-content {
flex-direction: column;
align-items: center;
align-self: center;
justify-content: center;
}

button.cta-button {
align-items: center;
align-self: center;
}

.hero-cta {
align-self: center;
}

.flex-column {
/* align all items center */
align-items: center;
}

.footer-column {
padding-inline-end: 20px;
}
}

Expand All @@ -74,11 +94,17 @@ to near-parity with NumPy and SciPy websites (which use older versions of the th

.hero-subtitle {
text-align: center;
padding-top: 20px;
}

.hero-cta {
align-self: center;
}

.hero-title {
flex-direction: column;
}

}

@media only screen and (max-width: 400px) {
Expand All @@ -88,7 +114,45 @@ to near-parity with NumPy and SciPy websites (which use older versions of the th

.hero-logo {
align-self: center;
max-width: 80%;
padding-bottom: 20px
}
}

/* Accessibility improvements */

.footer-link, .footer-link:hover {
line-height: 2rem;
}

.copyright {
font-size: 16px;
}

.footer-link:hover {
color: var(--colorHighlight);
}

/* Individual highlights */

.cta-button:hover {
color: var(--colorHighlight);
}

.news-title a:hover, .news-date a:hover {
color: var(--colorHighlight);
}

/* Animations */

a {
transition: color 0.25s ease-in-out;
}

a:hover {
font-weight: bold;
transition: color 0.25s ease-in-out;
}

a:active {
font-weight: bold;
transition: color 0.25s ease-in-out;
}
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ params:
link: https://docs.pybamm.org/en/latest/source/user_guide/installation/index.html

- text: Getting started
link: /get-started/
link: /learn/

- text: Learn with examples
link: https://github.com/pybamm-team/PyBaMM/tree/develop/examples/
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# pwa = 0.2

# optional, deploy the lighthouse report to a path under your site
[plugins.inputs]
output_path = "reports/lighthouse.html"
# [plugins.inputs]
# output_path = "reports/lighthouse.html"

[[redirects]]
from = "/benchmarks"
Expand Down

0 comments on commit c299200

Please sign in to comment.