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