High Contrast Inverse: switches

- make sure both non active and active states are contrasty

https://bugzilla.gnome.org/show_bug.cgi?id=763802
This commit is contained in:
Jakub Steiner 2016-03-24 16:43:20 +01:00
parent 7ac7b523d8
commit ac62bc0df9
3 changed files with 9 additions and 9 deletions

View File

@ -1971,11 +1971,11 @@ switch {
border-style: solid;
border-radius: 3px;
border-color: $borders_color;
background-color: mix($bg_color,$borders_color,60%);
background-color: $dark_fill;
box-shadow: inset 0 1px transparentize(black, 0.9); /*outset not working*/
text-shadow: 0 1px transparentize(black, 0.9);
&:checked {
color: white;
&:active {
color: $selected_fg_color;
border-color: $selected_borders_color;
background-color: $selected_bg_color;
text-shadow: 0 0 2px white;

View File

@ -2023,12 +2023,12 @@ switch {
border-style: solid;
border-radius: 3px;
border-color: gray;
background-color: #333333;
background-color: #1a1a1a;
box-shadow: inset 0 1px rgba(0, 0, 0, 0.1);
/*outset not working*/
text-shadow: 0 1px rgba(0, 0, 0, 0.1); }
switch:checked {
color: white;
switch:active {
color: #000;
border-color: #aaa;
background-color: #ddd;
text-shadow: 0 0 2px white; }

View File

@ -2027,12 +2027,12 @@ switch {
border-style: solid;
border-radius: 3px;
border-color: gray;
background-color: #cccccc;
background-color: gray;
box-shadow: inset 0 1px rgba(0, 0, 0, 0.1);
/*outset not working*/
text-shadow: 0 1px rgba(0, 0, 0, 0.1); }
switch:checked {
color: white;
switch:active {
color: #fff;
border-color: #000;
background-color: #000;
text-shadow: 0 0 2px white; }