183 lines
4.0 KiB
SCSS
Raw Normal View History

2022-10-06 21:04:06 +08:00
.quick-settings {
2022-10-08 16:52:14 +08:00
padding: $base_padding * 3;
border-radius: $modal_radius * 2;
2022-10-06 21:04:06 +08:00
.icon-button, .button {
2022-10-09 23:40:31 +08:00
padding: $container_padding;
2022-10-28 18:34:59 +08:00
StIcon { icon-size: $base_icon_size !important; }
2022-10-06 21:04:06 +08:00
}
}
.quick-settings-grid {
spacing-rows: $base_padding * 2;
spacing-columns: $base_padding * 2;
}
.quick-toggle {
border-radius: $circular_radius;
2022-10-08 16:52:14 +08:00
min-width: 12em;
max-width: 12em;
min-height: 40px;
2022-10-06 21:04:06 +08:00
border: none;
background-color: $fill_color !important;
&:hover {
background-color: $divider_color !important;
}
&:active {
background-color: $visit_color !important;
}
&:checked {
background-color: $primary_color !important;
color: $light_fg_color;
&:hover {
background-color: mix($text_color, $primary_color, 6%) !important;
color: $light_fg_color;
}
&:active {
background-color: mix($text_color, $primary_color, 15%) !important;
color: $light_fg_color;
}
}
2022-11-11 16:45:37 +08:00
> StBoxLayout {
spacing: $base_padding;
padding: 0 $base_padding * 2;
}
2022-10-06 21:04:06 +08:00
/* Move padding into the box; this is to allow menu arrows
to extend to the border */
2022-10-08 16:52:14 +08:00
&.button { padding: 0; }
2022-11-11 16:45:37 +08:00
2022-10-08 16:52:14 +08:00
&:ltr > StBoxLayout { padding-left: $base_padding * 2.5; }
&:rtl > StBoxLayout { padding-right: $base_padding * 2.5; }
2022-10-06 21:04:06 +08:00
.quick-toggle-label { font-weight: bold; }
2022-10-28 18:34:59 +08:00
.quick-toggle-icon, .quick-toggle-arrow { icon-size: $base_icon_size !important; }
2022-10-06 21:04:06 +08:00
}
.quick-menu-toggle {
2022-10-08 16:52:14 +08:00
&:ltr > StBoxLayout { padding-right: 0; }
&:rtl > StBoxLayout { padding-left: 0; }
2022-10-06 21:04:06 +08:00
.quick-toggle-arrow {
background-color: $fill_color !important;
2022-10-08 16:52:14 +08:00
padding: $base_padding $base_padding * 1.75;
2022-10-06 21:04:06 +08:00
&:active {
background-color: $divider_color !important;
}
&:ltr { border-radius: 0 $circular_radius $circular_radius 0; }
&:rtl { border-radius: $circular_radius 0 0 $circular_radius; }
}
}
.quick-slider {
padding: 0 $base_padding;
& > StBoxLayout { spacing: $base_padding; }
.slider-bin {
&:focus { @include button(focus); }
min-height: 16px; // slider size
padding: $base_padding;
border-radius: $circular_radius;
}
2022-11-11 16:45:37 +08:00
.quick-toggle-icon, .quick-toggle-arrow {
2022-10-28 18:34:59 +08:00
icon-size: $base_icon_size !important;
2022-10-06 21:04:06 +08:00
}
.icon-button {
background-color: transparent;
color: $text_color !important;
&:hover {
background-color: $fill_color;
}
&:active {
background-color: $divider_color;
}
}
}
.quick-toggle-menu {
background-color: $menu_bg !important;
color: $text_color !important;
2022-10-08 16:52:14 +08:00
border-radius: $base_border_radius * 3;
padding: $base_padding * 2;
margin: $base_padding * 2 $base_padding * 6 0;
2022-10-06 21:04:06 +08:00
.popup-menu-item {
border-radius: $circular_radius !important;
2022-10-08 16:52:14 +08:00
min-height: 20px;
2022-10-06 21:04:06 +08:00
&:focus, &:hover, &.selected {
color: $text_color !important;
background-color: $divider_color !important;
}
> StIcon { -st-icon-style: symbolic; }
}
& .header {
spacing-rows: 0.5 * $base_padding;
spacing-columns: $base_padding * 2;
padding-bottom: 2 * $base_padding;
& .icon {
icon-size: $base_icon_size * 1.5; // a non-standard symbolic size but ok
border-radius: $circular_radius;
padding: 1.5 * $base_padding;
background-color: $divider_color !important;
&.active {
background-color: $primary_color !important;
color: $light_fg_color;
}
}
}
}
.quick-settings-system-item {
& > StBoxLayout { spacing: 2 * $base_padding; }
.icon-button {
background-color: $fill_color;
color: $text_color;
border-radius: $circular_radius;
2022-10-09 23:40:31 +08:00
min-height: 24px !important;
min-width: 24px !important;
// padding: $container_padding;
2022-10-06 21:04:06 +08:00
&:hover { @include button(flat-hover); }
&:active { @include button(flat-active); }
2022-10-09 23:40:31 +08:00
> StIcon {
-st-icon-style: symbolic;
icon-size: $base_icon_size;
}
2022-10-06 21:04:06 +08:00
}
2022-10-09 23:40:31 +08:00
.power-item {
2022-10-06 21:04:06 +08:00
min-height: 0;
min-width: 0;
&:insensitive {
@include button(normal);
background-color: transparent;
}
}
}
.nm-network-item {
.wireless-secure-icon { icon-size: 0.5 * $base_icon_size; }
}