49c0b849c4
- new drawing function to convert px to em, for select instances - updated fontsize function to convert fonts in pt to em - replace instances of discrete sizes with defined values - fix instances where assets or icons did not scale along with text - rework panel buttons to accommodate the scaling padding and icons - new 'scalable' definitions for elements that follow text scaling Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3033>
17 lines
572 B
SCSS
17 lines
572 B
SCSS
/* 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-light.svg"),url("resource:///org/gnome/shell/theme/toggle-off.svg"));
|
|
&:checked {
|
|
background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-on-light.svg"),url("resource:///org/gnome/shell/theme/toggle-on.svg"));
|
|
}
|
|
}
|