Basic support for forced colors/high contrast mode

This commit is contained in:
Scott Nonnenberg 2022-04-04 10:16:00 -07:00 committed by GitHub
parent b59e85bae5
commit 76a1a805ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 14 deletions

View file

@ -88,6 +88,10 @@
-webkit-mask-size: 62%;
background-color: var(--fg);
@media (forced-colors: active) {
background-color: WindowText;
}
&--direct {
-webkit-mask-image: url('../images/icons/v2/profile-outline-20.svg');
-webkit-mask-size: 60%;

View file

@ -82,6 +82,10 @@
background-color: $color-white;
-webkit-mask-size: contain;
@media (forced-colors: active) {
background-color: WindowText;
}
&--relink {
-webkit-mask: url('../images/icons/v2/link-broken-16.svg') no-repeat
center;
@ -121,6 +125,13 @@
display: block;
width: 100%;
height: 100%;
@media (forced-colors: active) {
background-color: WindowText;
@include dark-theme {
background-color: WindowText;
}
}
}
&:hover,
@ -130,6 +141,21 @@
&:active {
background-color: $color-white-alpha-20;
}
@media (forced-colors: active) {
&:hover,
&:focus,
&:active {
background-color: none;
}
@include dark-theme {
&:hover,
&:focus,
&:active {
background-color: none;
}
}
}
}
&__message {
@ -173,10 +199,18 @@
.LeftPaneDialog__icon {
background-color: $color-black;
@media (forced-colors: active) {
background-color: WindowText;
}
}
.LeftPaneDialog__close-button::before {
background-color: $color-black;
@media (forced-colors: active) {
background-color: WindowText;
}
}
}

View file

@ -123,6 +123,13 @@
@include dark-theme {
background: $color-gray-15;
}
@media (forced-colors: active) {
background-color: WindowText;
@include dark-theme {
background: WindowText;
}
}
}
}
}