2016-04-09 04:30:09 +00:00
|
|
|
/***********************
|
|
|
|
! Check and Radio items
|
|
|
|
************************/
|
|
|
|
|
|
|
|
$suffix: if($variant == "dark", "-dark", "");
|
|
|
|
|
|
|
|
@mixin toggle($type) {
|
|
|
|
background-image: none;
|
|
|
|
|
|
|
|
-gtk-icon-source: url("../assets/#{$type}-unchecked#{$suffix}.png");
|
|
|
|
|
|
|
|
&:disabled { -gtk-icon-source: url("../assets/#{$type}-unchecked-insensitive#{$suffix}.png"); }
|
|
|
|
|
|
|
|
&:checked, &:active {
|
|
|
|
-gtk-icon-source: url("../assets/#{$type}-checked#{$suffix}.png");
|
|
|
|
|
|
|
|
&:disabled { -gtk-icon-source: url("../assets/#{$type}-checked-insensitive#{$suffix}.png"); }
|
|
|
|
}
|
|
|
|
|
|
|
|
&:indeterminate {
|
|
|
|
-gtk-icon-source: url("../assets/#{$type}-mixed#{$suffix}.png");
|
|
|
|
|
|
|
|
&:disabled { -gtk-icon-source: url("../assets/#{$type}-mixed-insensitive#{$suffix}.png"); }
|
|
|
|
}
|
|
|
|
|
2016-04-13 17:49:15 +00:00
|
|
|
menuitem &, modelbutton & {
|
|
|
|
-gtk-icon-source: url("../assets/menuitem-#{$type}-checked-insensitive.png");
|
2016-04-09 04:30:09 +00:00
|
|
|
|
|
|
|
&:disabled { -gtk-icon-source: none; }
|
|
|
|
|
|
|
|
&:checked, &:active {
|
|
|
|
-gtk-icon-source: url("../assets/menuitem-#{$type}-checked.png");
|
|
|
|
|
|
|
|
&:hover { -gtk-icon-source: url("../assets/menuitem-#{$type}-checked-hover.png"); }
|
|
|
|
|
|
|
|
&:disabled { -gtk-icon-source: url("../assets/menuitem-#{$type}-checked-insensitive.png"); }
|
|
|
|
}
|
|
|
|
|
|
|
|
&:indeterminate {
|
|
|
|
-gtk-icon-source: url("../assets/menuitem-#{$type}-mixed.png");
|
|
|
|
|
|
|
|
&:hover { -gtk-icon-source: url("../assets/menuitem-#{$type}-mixed-hover.png"); }
|
|
|
|
|
|
|
|
&:disabled { -gtk-icon-source: url("../assets/menuitem-#{$type}-mixed-insensitive.png"); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include exports("checkradio") {
|
|
|
|
radio {
|
|
|
|
@include toggle("radio");
|
|
|
|
min-width: 16px;
|
|
|
|
min-height: 16px;
|
2016-04-14 11:53:03 +00:00
|
|
|
margin-right: $spacing;
|
2016-04-09 04:30:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check {
|
|
|
|
@include toggle("checkbox");
|
|
|
|
min-width: 16px;
|
|
|
|
min-height: 16px;
|
2016-04-14 11:53:03 +00:00
|
|
|
margin-right: $spacing;
|
|
|
|
}
|
|
|
|
|
|
|
|
radio:dir(rtl), check:dir(rtl) {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: $spacing;
|
2016-04-09 04:30:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
iconview.content-view.cell.check {
|
|
|
|
-gtk-icon-source: url("assets/grid-selection-unchecked#{$suffix}.png");
|
|
|
|
|
|
|
|
&:active { -gtk-icon-source: url("assets/grid-selection-checked#{$suffix}.png"); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/********
|
|
|
|
! Switch
|
|
|
|
*********/
|
|
|
|
|
|
|
|
@include exports("switch") {
|
|
|
|
switch {
|
2016-04-12 07:56:03 +00:00
|
|
|
border-radius: $roundness;
|
|
|
|
padding: $spacing;
|
2016-04-09 04:30:09 +00:00
|
|
|
border: none;
|
|
|
|
outline: none;
|
2016-04-12 07:56:03 +00:00
|
|
|
transition: background-color 0.3s linear;
|
2016-04-09 04:30:09 +00:00
|
|
|
min-width: 93px;
|
|
|
|
min-height: 25px;
|
2016-04-12 07:56:03 +00:00
|
|
|
background-color: $switch_bg_color;
|
|
|
|
color: $switch_fg_color;
|
2016-04-09 04:30:09 +00:00
|
|
|
|
|
|
|
slider {
|
2016-04-12 07:56:03 +00:00
|
|
|
background-color: $switch_slider_bg_color;
|
2016-04-14 11:53:03 +00:00
|
|
|
transition: all 0.3s ease-in;
|
2016-04-09 04:30:09 +00:00
|
|
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
|
2016-04-12 07:56:03 +00:00
|
|
|
border-radius: $roundness;
|
2016-04-09 04:30:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:checked {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
background-image: none;
|
|
|
|
border-color: $selected_bg_color;
|
2016-04-12 07:56:03 +00:00
|
|
|
color: $base_color;
|
2016-04-09 04:30:09 +00:00
|
|
|
|
|
|
|
slider {
|
2016-04-12 07:56:03 +00:00
|
|
|
background-color: $white;
|
2016-04-09 04:30:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled {
|
2016-04-12 07:56:03 +00:00
|
|
|
background-color: $switch_disabled_bg_color;
|
2016-04-09 04:30:09 +00:00
|
|
|
background-image: none;
|
2016-04-12 07:56:03 +00:00
|
|
|
border-color: $switch_disabled_border_color;
|
|
|
|
color: $switch_disabled_fg_color;
|
2016-04-09 04:30:09 +00:00
|
|
|
|
|
|
|
slider {
|
2016-04-12 07:56:03 +00:00
|
|
|
background-color: $switch_disabled_slider_bg_color;
|
2016-04-09 04:30:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|