_switch.scss
ASCII text
1
/* Switches */
2
3
// these are equal to the size of the SVG assets
4
$switch_height: 22px;
5
$switch_width: 46px;
6
7
.toggle-switch {
8
color: $fg_color;
9
height: $switch_height;
10
width: $switch_width;
11
background-size: contain;
12
background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-off.svg"),url("resource:///org/gnome/shell/theme/toggle-off-dark.svg"));
13
&:checked {
14
background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-on.svg"),url("resource:///org/gnome/shell/theme/toggle-on-dark.svg"));
15
}
16
}