2019-12-18 16:25:03 -05:00
|
|
|
/* Popovers/Menus */
|
|
|
|
|
2021-12-28 08:46:54 -05:00
|
|
|
// the popover itself
|
2020-01-21 09:36:36 -05:00
|
|
|
.popup-menu-boxpointer {
|
2022-02-23 12:45:59 -05:00
|
|
|
-arrow-rise: $base_margin+2px; // distance from the panel & screen edge
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// container of the popover menu
|
|
|
|
.popup-menu {
|
2019-12-19 10:38:27 -05:00
|
|
|
min-width: 15em;
|
|
|
|
color: $fg_color;
|
|
|
|
|
2022-02-07 12:37:54 -05:00
|
|
|
//.popup-status-menu-item {font-weight: normal; color: pink;} //dunno what that is
|
2019-12-19 10:38:27 -05:00
|
|
|
&.panel-menu {
|
2021-12-28 08:46:54 -05:00
|
|
|
margin-bottom: 1.75em; // so it doesn't touch the bottom of the screen
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
2022-02-07 13:22:40 -05:00
|
|
|
// popover content
|
2019-12-18 16:25:03 -05:00
|
|
|
.popup-menu-content {
|
2021-12-28 08:46:54 -05:00
|
|
|
padding: $base_padding;
|
2022-02-07 13:22:40 -05:00
|
|
|
border-radius: $modal_radius - 2px;
|
|
|
|
border: 1px solid $borders_edge;
|
2022-02-02 13:17:42 -05:00
|
|
|
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.1);
|
|
|
|
background-color: $bg_color;
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// menu items
|
|
|
|
.popup-menu-item {
|
2022-02-07 13:22:40 -05:00
|
|
|
padding: $base_padding*1.5 $base_padding*2;
|
2021-12-28 08:46:54 -05:00
|
|
|
border-radius: $base_border_radius;
|
2022-02-23 12:45:59 -05:00
|
|
|
spacing: $base_padding;
|
2021-12-28 08:46:54 -05:00
|
|
|
transition: 0.2s all ease;
|
2022-02-07 13:22:40 -05:00
|
|
|
background-color: transparent;
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2022-02-23 12:45:59 -05:00
|
|
|
&:ltr {padding-left: $base_padding;}
|
|
|
|
&:rtl {padding-right: $base_padding;}
|
|
|
|
|
2022-02-07 13:22:40 -05:00
|
|
|
&:focus, &:hover {
|
|
|
|
background-color: $hover_bg_color !important;
|
|
|
|
&:active { background-color: $active_bg_color !important;}
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2022-02-07 13:22:40 -05:00
|
|
|
&:checked {background-color: $checked_bg_color !important;}
|
2021-12-28 08:46:54 -05:00
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&:checked {
|
2021-12-28 08:46:54 -05:00
|
|
|
margin-bottom: 0;
|
2022-02-07 13:22:40 -05:00
|
|
|
box-shadow: inset 0 -1px 0 0 darken($checked_bg_color, 5%);
|
2021-12-28 08:46:54 -05:00
|
|
|
border-radius: $base_border_radius $base_border_radius 0 0;
|
2022-02-07 13:22:40 -05:00
|
|
|
&:focus,&:hover { background-color: lighten($checked_bg_color, 3%) !important;}
|
|
|
|
&:active { background-color: lighten($checked_bg_color, 5%) !important;}
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2022-02-07 12:37:54 -05:00
|
|
|
&:active {
|
2022-02-07 13:22:40 -05:00
|
|
|
background-color: lighten($active_bg_color, 5%);
|
|
|
|
color: $active_fg_color;
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2022-02-07 12:37:54 -05:00
|
|
|
&:insensitive {color: transparentize($fg_color,0.5);}
|
2022-02-23 12:45:59 -05:00
|
|
|
|
|
|
|
// add margin to switches in menu items
|
|
|
|
.toggle-switch {
|
|
|
|
&:ltr { margin-left: $base_margin;}
|
|
|
|
&:rtl { margin-right: $base_margin;}
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
2022-02-07 13:22:40 -05:00
|
|
|
|
|
|
|
// all other graphical elements (sliders)
|
2019-12-18 16:25:03 -05:00
|
|
|
.popup-inactive-menu-item {
|
2019-12-19 10:38:27 -05:00
|
|
|
color: $fg_color;
|
2022-02-07 13:22:40 -05:00
|
|
|
&:insensitive { color: $insensitive_fg_color; }
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// symbolic icons in popover
|
|
|
|
.popup-menu-arrow,
|
2022-02-07 12:37:54 -05:00
|
|
|
.popup-menu-icon {
|
2022-02-07 13:22:40 -05:00
|
|
|
icon-size: 16px !important; // for some reason the variable doesn't work here
|
2021-12-28 08:46:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.popup-menu-arrow {
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2022-02-07 13:22:40 -05:00
|
|
|
|
2019-12-18 16:25:03 -05:00
|
|
|
// popover submenus
|
|
|
|
.popup-sub-menu {
|
2022-02-07 13:22:40 -05:00
|
|
|
background-color: $checked_bg_color;
|
2021-12-28 08:46:54 -05:00
|
|
|
border-radius: 0 0 $base_border_radius $base_border_radius;
|
2022-02-02 13:17:42 -05:00
|
|
|
|
2021-12-28 08:46:54 -05:00
|
|
|
.popup-menu-ornament {
|
2022-02-07 13:22:40 -05:00
|
|
|
min-width: $base_icon_size !important;
|
2021-12-28 08:46:54 -05:00
|
|
|
}
|
|
|
|
|
2022-02-07 13:22:40 -05:00
|
|
|
// submenu specific styles
|
2021-12-28 08:46:54 -05:00
|
|
|
.popup-menu-item {
|
|
|
|
border-radius: 0;
|
2022-02-02 13:17:42 -05:00
|
|
|
margin: 0;
|
2021-12-28 08:46:54 -05:00
|
|
|
|
2022-02-02 13:17:42 -05:00
|
|
|
&:last-child {
|
2021-12-28 08:46:54 -05:00
|
|
|
border-radius: 0 0 $base_border_radius $base_border_radius;
|
|
|
|
}
|
2022-02-07 13:22:40 -05:00
|
|
|
|
|
|
|
&:focus,&:hover { background-color: lighten($hover_bg_color, 10%) !important;}
|
|
|
|
&:checked {
|
|
|
|
background-color: lighten($checked_bg_color, 10%) !important;
|
|
|
|
&:focus,&:hover { background-color: lighten($checked_bg_color, 8%) !important;}
|
|
|
|
}
|
|
|
|
&:active { background-color: lighten($active_bg_color, 10%) !important;}
|
2021-12-28 08:46:54 -05:00
|
|
|
}
|
2022-01-25 09:47:23 -05:00
|
|
|
|
|
|
|
.popup-menu-section {
|
2022-02-07 13:22:40 -05:00
|
|
|
.popup-menu-item:last-child {
|
2022-02-23 12:45:59 -05:00
|
|
|
&:hover,&:focus { border-radius: 0;}
|
2022-02-07 13:22:40 -05:00
|
|
|
}
|
2022-02-02 13:17:42 -05:00
|
|
|
&:last-child .popup-menu-item:last-child {
|
2022-01-25 09:47:23 -05:00
|
|
|
border-radius: 0 0 $base_border_radius $base_border_radius;
|
|
|
|
}
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// container for radio and check boxes
|
|
|
|
.popup-menu-ornament {
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %heading;
|
2019-12-19 10:38:27 -05:00
|
|
|
width: 1.2em;
|
2022-02-07 13:22:40 -05:00
|
|
|
text-align: center !important;
|
2020-08-03 10:38:17 -04:00
|
|
|
|
2022-02-23 12:45:59 -05:00
|
|
|
&:ltr { text-align: right;}
|
|
|
|
&:rtl { text-align: left;}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// separator
|
|
|
|
.popup-separator-menu-item {
|
2022-02-21 14:21:53 -05:00
|
|
|
margin: 6px 0;
|
2022-02-23 12:45:59 -05:00
|
|
|
padding:0 !important;
|
|
|
|
&:ltr { margin-right: $base_margin;}
|
|
|
|
&:rtl { margin-left: $base_margin;}
|
2022-01-17 11:44:25 -05:00
|
|
|
|
2020-02-14 07:36:04 -05:00
|
|
|
.popup-separator-menu-item-separator {
|
|
|
|
height: 1px; //not really the whole box
|
2022-01-17 11:44:25 -05:00
|
|
|
background-color: $borders_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-menu-ornament {
|
|
|
|
width: 0 !important;
|
|
|
|
}
|
|
|
|
|
2022-02-23 12:45:59 -05:00
|
|
|
// separators in submenus
|
2022-01-17 11:44:25 -05:00
|
|
|
.popup-sub-menu & {
|
|
|
|
background-color: transparent;
|
2021-12-28 08:46:54 -05:00
|
|
|
|
2022-02-23 12:45:59 -05:00
|
|
|
// account for ornament
|
|
|
|
&:ltr { margin-right: 2.5em;}
|
|
|
|
&:rtl { margin-left: 2.5em;}
|
|
|
|
|
2022-01-17 11:44:25 -05:00
|
|
|
.popup-separator-menu-item-separator {
|
|
|
|
background-color: lighten($borders_color, 7%);
|
2020-02-13 15:45:02 -05:00
|
|
|
}
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// desktop background menu
|
|
|
|
.background-menu {
|
2022-02-23 12:45:59 -05:00
|
|
|
-boxpointer-gap: 0px;
|
2019-12-19 10:38:27 -05:00
|
|
|
-arrow-rise: 0px; // hide the beak on the menu
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// system status menu
|
|
|
|
.aggregate-menu {
|
2022-01-17 11:44:25 -05:00
|
|
|
min-width: 22em;
|
2019-12-19 10:38:27 -05:00
|
|
|
|
2022-02-07 13:22:40 -05:00
|
|
|
// this is unneeded at the top-level in this menu, hide it
|
|
|
|
.popup-menu-ornament { width: 0 !important; }
|
2021-12-28 08:46:54 -05:00
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
// lock screen, shutdown, etc. buttons
|
2022-02-07 12:37:54 -05:00
|
|
|
.popup-menu-icon {
|
2019-12-19 10:38:27 -05:00
|
|
|
-st-icon-style: symbolic;
|
2022-02-07 13:22:40 -05:00
|
|
|
&:ltr {margin-right: $base_margin*2;}
|
|
|
|
&:rtl {margin-left: $base_margin*2;}
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
|
|
|
|
2022-02-07 13:22:40 -05:00
|
|
|
// account for ornaments in submenus with padding
|
2019-12-19 10:38:27 -05:00
|
|
|
.popup-sub-menu .popup-menu-item > :first-child {
|
2022-02-07 13:22:40 -05:00
|
|
|
// this value is hardcoded for visual effect
|
2022-02-23 12:45:59 -05:00
|
|
|
&:ltr { margin-left: 1em;}
|
|
|
|
&:rtl { margin-right: 1em;}
|
2022-02-07 13:22:40 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// right-click (and panel) app menu
|
|
|
|
.app-menu {
|
|
|
|
max-width: 27.25em;
|
|
|
|
|
|
|
|
// this is unneeded at the top-level in this menu, hide it
|
|
|
|
.popup-menu-ornament { width: 0 !important; }
|
|
|
|
|
|
|
|
.popup-inactive-menu-item:first-child {
|
|
|
|
// "Open Windows" label
|
|
|
|
> StLabel {
|
|
|
|
@extend %caption_heading;
|
|
|
|
&:ltr {margin-right: $base_margin*2;}
|
|
|
|
&:rtl {margin-left: $base_margin*2;}
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
|
|
|
}
|
2020-01-24 21:37:16 -05:00
|
|
|
}
|