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