Added use of the prefers-contrast media query

Used upon areas we usually fade-out to provide a focused user
experience. If the user desires more contrasted we prevent this
behaviour using the prefers-contrast media query.

Related to #2634
This commit is contained in:
Dan Brown 2021-11-23 15:48:55 +00:00
parent 024924eef3
commit 096ed722dd
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
4 changed files with 12 additions and 0 deletions

View File

@ -229,6 +229,9 @@
&:hover, &:focus-within {
opacity: 1;
}
@media (prefers-contrast: more) {
opacity: 1;
}
}
/**

View File

@ -262,6 +262,9 @@ header .search-box {
&:hover, &:focus-within {
opacity: 1;
}
@media (prefers-contrast: more) {
opacity: 1;
}
}
@include smaller-than($l) {

View File

@ -369,6 +369,9 @@ body.flexbox {
&:focus-within {
opacity: 1;
}
@media (prefers-contrast: more) {
opacity: 1;
}
}
}

View File

@ -412,4 +412,7 @@ body.mce-fullscreen, body.markdown-fullscreen {
text-decoration: none;
opacity: 1;
}
@media (prefers-contrast: more) {
opacity: 1;
}
}