Skip to content
Merged
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
8 changes: 8 additions & 0 deletions assets/sass/anchorlink.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
background-color 0.3s ease,
opacity 0.3s ease;

@media (prefers-reduced-motion: reduce) {
transition: none;
}

&:hover,
&:focus {
background-color: var(--bg-neutral);
Expand Down Expand Up @@ -89,6 +93,10 @@
margin: 1rem;
text-wrap: balance;
z-index: 22;

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}

.a-snackbar--show {
Expand Down
4 changes: 4 additions & 0 deletions assets/sass/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ button {
display: block;
}

@media (prefers-reduced-motion: reduce) {
transition: none;
}

&__internal {
border: none;
}
Expand Down
8 changes: 8 additions & 0 deletions assets/sass/contentNavigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@
display: none;
}

@media (prefers-reduced-motion: reduce) {
transition: none;
}

&--open {
transform: translateY(0);
}
Expand Down Expand Up @@ -183,6 +187,10 @@

* {
transition: opacity 0.3s ease-in-out;

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}
}

Expand Down
16 changes: 16 additions & 0 deletions assets/sass/dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
& > :not(.a-icon) {
text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}
}

Expand Down Expand Up @@ -87,6 +91,10 @@
background 0.2s,
color 0.2s;

@media (prefers-reduced-motion: reduce) {
transition: none;
}

&:hover,
&:focus {
color: var(--link-hovered);
Expand All @@ -112,6 +120,10 @@

.o-dropdown__icon .a-icon {
transition: transform 0.2s;

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}

&__menu {
Expand All @@ -132,6 +144,10 @@
max-height: 20rem;
overflow-y: auto;

@media (prefers-reduced-motion: reduce) {
animation: none;
}

&--above {
bottom: anchor(top);
animation-name: dropdown-open-above;
Expand Down
8 changes: 8 additions & 0 deletions assets/sass/expander.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
padding: 0.6rem;
}

@media (prefers-reduced-motion: reduce) {
transition: none;
}

&:hover,
&:focus {
.o-expander__title-text {
Expand All @@ -38,6 +42,10 @@
@media print {
display: none;
}

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}

&-title {
Expand Down
4 changes: 4 additions & 0 deletions assets/sass/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
@media print {
display: none;
}

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}

#overlay.overlay--show {
Expand Down
12 changes: 12 additions & 0 deletions assets/sass/interactiveMap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
fill: var(--link-default) !important;
transition: all 0.2s ease;
cursor: pointer;

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}

&:hover path,
Expand All @@ -48,6 +52,10 @@
fill: var(--bg-neutral) !important;
transition: all 0.2s ease;
cursor: not-allowed;

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}
}

Expand All @@ -73,6 +81,10 @@
}

@include focus-indicator(0.2rem);

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}

&__legend {
Expand Down
8 changes: 8 additions & 0 deletions assets/sass/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ menu > li > menu {
transform: translateX(100%);
transition: transform 0.3s ease-in-out;

@media (prefers-reduced-motion: reduce) {
transition: none;
}

> menu {
margin-top: 4rem;
padding-bottom: 1rem;
Expand Down Expand Up @@ -248,6 +252,10 @@ menu > li > menu {
height: fit-content;
line-height: normal;

@media (prefers-reduced-motion: reduce) {
transition: none;
}

&:hover {
color: var(--link-hovered);
}
Expand Down
4 changes: 4 additions & 0 deletions assets/sass/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ pagefind-modal-trigger {
transition:
background 0.2s,
color 0.2s !important;

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}

:is(
Expand Down
10 changes: 10 additions & 0 deletions assets/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ html {
scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}

body {
color: var(--color-body);
background-color: var(--bg-neutral);
Expand Down Expand Up @@ -67,6 +73,10 @@ a,

@include focus-indicator(0.2rem);

@media (prefers-reduced-motion: reduce) {
transition: none;
}

@media print {
text-decoration: none;
color: var(--bs-body-color);
Expand Down
4 changes: 4 additions & 0 deletions assets/sass/teamMember.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
border-radius: var(--border-radius-m);
transition: transform 0.2s ease;

@media (prefers-reduced-motion: reduce) {
transition: none;
}

&__image {
width: 8rem;
height: 8rem;
Expand Down
4 changes: 4 additions & 0 deletions assets/sass/teaser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
transition:
background 0.2s,
color 0.2s;

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}
}

Expand Down
Loading