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-02 13:17:42 -05:00
|
|
|
// override popover styles for panel menus so
|
|
|
|
// we can draw a box shadow and no arrow
|
2021-12-28 08:46:54 -05:00
|
|
|
-arrow-border-radius: $modal_radius;
|
2022-02-02 13:17:42 -05:00
|
|
|
-arrow-background-color: transparent;
|
|
|
|
-arrow-border-color: transparent;
|
|
|
|
-arrow-border-width: 0;
|
|
|
|
-arrow-base: 0;
|
|
|
|
-arrow-rise: $base_margin; // use this as top margin
|
2021-12-28 08:46:54 -05:00
|
|
|
-arrow-box-shadow: none; // dreaming bugzilla #689995
|
|
|
|
margin: $base_margin; // used as distance from the 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
|
|
|
-boxpointer-gap: $base_margin+2px; // distance from the panel
|
|
|
|
margin-bottom: 1.75em; // so it doesn't touch the bottom of the screen
|
|
|
|
|
|
|
|
// style the menu content instead
|
|
|
|
.popup-menu-content {
|
2022-01-17 11:44:25 -05:00
|
|
|
padding: $base_padding*1.5;
|
2021-12-28 08:46:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.popup-menu-item {}
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
2021-12-28 08:46:54 -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-02 13:17:42 -05:00
|
|
|
border-radius: $modal_radius;
|
|
|
|
border: 1px solid $borders_edge;
|
|
|
|
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 {
|
2021-12-28 08:46:54 -05:00
|
|
|
spacing: $base_spacing;
|
2022-01-17 11:44:25 -05:00
|
|
|
padding: $base_padding*1.5;
|
2021-12-28 08:46:54 -05:00
|
|
|
margin: 2px 0;
|
|
|
|
border-radius: $base_border_radius;
|
|
|
|
transition: 0.2s all ease;
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2022-02-07 12:37:54 -05:00
|
|
|
&:ltr {padding-right:$base_padding; padding-left: 0;}
|
|
|
|
&:rtl {padding-right: 0; padding-left:$base_padding;}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2021-12-28 08:46:54 -05:00
|
|
|
&:hover {
|
|
|
|
background-color: $hover_bg_color;
|
|
|
|
}
|
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&:checked {
|
2021-12-28 08:46:54 -05:00
|
|
|
background-color: $hover_bg_color;
|
|
|
|
margin-bottom: 0;
|
2022-02-07 12:37:54 -05:00
|
|
|
box-shadow: inset 0 -1px 0 0 darken($hover_bg_color, 3%);
|
2021-12-28 08:46:54 -05:00
|
|
|
border-radius: $base_border_radius $base_border_radius 0 0;
|
|
|
|
|
|
|
|
&:hover {
|
2022-02-02 13:17:42 -05:00
|
|
|
background-color: lighten($hover_bg_color, 5%);
|
2021-12-28 08:46:54 -05:00
|
|
|
}
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&.selected {
|
2021-12-28 08:46:54 -05:00
|
|
|
background-color: transparentize($fg_color, if($variant=='light', 0.7, 0.9));
|
2019-12-19 10:38:27 -05:00
|
|
|
color: $fg_color;
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2022-02-07 12:37:54 -05:00
|
|
|
&:active {
|
2022-02-02 13:17:42 -05:00
|
|
|
background-color: lighten($active_bg_color,3%);
|
|
|
|
color: lighten($active_fg_color,3%);
|
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);}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// all icons and other graphical elements
|
|
|
|
.popup-inactive-menu-item {
|
2019-12-19 10:38:27 -05:00
|
|
|
color: $fg_color;
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2021-12-28 08:46:54 -05:00
|
|
|
// "Open Windows" label
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: smaller;
|
|
|
|
|
2022-02-07 12:37:54 -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 {
|
2021-12-28 08:46:54 -05:00
|
|
|
icon-size: 16px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-menu-arrow {
|
|
|
|
margin-right: $base_margin;
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
|
|
|
// popover submenus
|
|
|
|
.popup-sub-menu {
|
2021-12-28 08:46:54 -05:00
|
|
|
border:none;
|
2022-02-02 13:17:42 -05:00
|
|
|
background-color: $hover_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 {
|
|
|
|
min-width: 14px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-menu-item {
|
|
|
|
border-radius: 0;
|
2022-02-02 13:17:42 -05:00
|
|
|
margin: 0;
|
2021-12-28 08:46:54 -05:00
|
|
|
padding: $base_padding*1.5 $base_padding*2;
|
|
|
|
|
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-01-25 09:47:23 -05:00
|
|
|
|
|
|
|
.popup-menu-section {
|
2022-02-07 12:37:54 -05:00
|
|
|
.popup-menu-item:last-child:hover {border-radius: 0 }
|
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 {
|
2019-12-19 10:38:27 -05:00
|
|
|
width: 1.2em;
|
2021-12-28 08:46:54 -05:00
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1em;
|
2020-08-03 10:38:17 -04:00
|
|
|
|
2022-02-07 12:37:54 -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-02 13:17:42 -05:00
|
|
|
padding:0;
|
|
|
|
margin: 4px 0;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-sub-menu & {
|
|
|
|
padding: 0;
|
|
|
|
margin-right: 2.5em !important; // account for ornament
|
|
|
|
background-color: transparent;
|
2021-12-28 08:46:54 -05:00
|
|
|
|
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 {
|
2019-12-19 10:38:27 -05:00
|
|
|
-boxpointer-gap: $base_margin;
|
|
|
|
-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
|
|
|
|
2021-12-28 08:46:54 -05:00
|
|
|
// this is unneeded in at the top-level this menu, hide it
|
2022-02-02 13:17:42 -05:00
|
|
|
.popup-menu-ornament {width:0;padding:0;margin:0;}
|
2021-12-28 08:46:54 -05:00
|
|
|
|
|
|
|
.popup-menu-item {
|
2022-02-07 12:37:54 -05:00
|
|
|
&:ltr {padding-left:$base_padding;padding-right:$base_padding*2;}
|
|
|
|
&:rtl {padding-right:$base_padding;padding-left:$base_padding*2;}
|
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
|
|
|
padding:0;
|
|
|
|
margin: 0 $base_margin;
|
|
|
|
-st-icon-style: symbolic;
|
|
|
|
}
|
|
|
|
|
2022-02-02 13:17:42 -05:00
|
|
|
// account for icons in submenus with padding
|
2019-12-19 10:38:27 -05:00
|
|
|
.popup-sub-menu .popup-menu-item > :first-child {
|
|
|
|
&:ltr {
|
2021-12-28 08:46:54 -05:00
|
|
|
padding-left: 0;
|
2019-12-19 10:38:27 -05:00
|
|
|
margin-left: $base_icon_size;
|
|
|
|
}
|
|
|
|
&:rtl {
|
2021-12-28 08:46:54 -05:00
|
|
|
padding-right: 0;
|
2019-12-19 10:38:27 -05:00
|
|
|
margin-right: $base_icon_size;
|
|
|
|
}
|
|
|
|
}
|
2020-01-24 21:37:16 -05:00
|
|
|
}
|