summaryrefslogtreecommitdiff
path: root/data/theme/gnome-shell-sass/widgets/_switches.scss
blob: 30a0f0d5ef05bee2389817ef1d5e2f1b953382b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Switches */

// these are equal to the size of the SVG assets
$switch_height: 26px;
$switch_width: 48px;

.toggle-switch {
  color: $fg_color;
  height: $switch_height;
  width: $switch_width;
  background-size: contain;
  background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-off.svg"),url("resource:///org/gnome/shell/theme/toggle-off-dark.svg"));
  &:checked { 
    background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-on.svg"),url("resource:///org/gnome/shell/theme/toggle-on-dark.svg"));
  }
}