fixed toggle switch appearance in windows high contrast mode - fixes #4165

This commit is contained in:
Eugene Pankov 2021-07-09 09:47:51 +02:00
parent e09a011c23
commit 485665d449
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -162,3 +162,23 @@ ngb-typeahead-window {
.list-group-item > button {
margin: -7px 0;
}
// Windows high contrast mode
@media screen and (forced-colors: active) {
.custom-switch .custom-control-label::before {
background: buttonface;
}
.custom-switch .custom-control-label::after {
background: buttontext;
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
background: activetext;
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
background: canvas;
}
}