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 {
|
2021-12-28 08:46:54 -05:00
|
|
|
-arrow-border-radius: $modal_radius;
|
2019-12-19 10:38:27 -05:00
|
|
|
-arrow-background-color: $bg_color;
|
|
|
|
-arrow-border-color: $borders_color;
|
2021-12-28 08:46:54 -05:00
|
|
|
-arrow-border-width: 1px;
|
|
|
|
-arrow-base: 24px;
|
|
|
|
-arrow-rise: 12px;
|
|
|
|
-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;
|
|
|
|
|
|
|
|
//.popup-status-menu-item { font-weight: normal; color: pink; } //dunno what that is
|
|
|
|
&.panel-menu {
|
2021-12-28 08:46:54 -05:00
|
|
|
-boxpointer-gap: $base_margin+2px; // distance from the panel
|
|
|
|
|
|
|
|
// override popover styles for panel menus so
|
|
|
|
// we can draw a box shadow and no arrow
|
|
|
|
-arrow-border-radius: $modal_radius;
|
|
|
|
-arrow-background-color: transparent;
|
|
|
|
-arrow-border-color: transparent;
|
|
|
|
-arrow-border-width: 0;
|
|
|
|
-arrow-base: 0;
|
|
|
|
-arrow-rise: $base_margin; // use this as top margin
|
|
|
|
-arrow-box-shadow: none; // dreaming bugzilla #689995
|
|
|
|
|
|
|
|
margin-bottom: 1.75em; // so it doesn't touch the bottom of the screen
|
|
|
|
|
|
|
|
// style the menu content instead
|
|
|
|
.popup-menu-content {
|
|
|
|
border-radius: $modal_radius;
|
|
|
|
border: 1px solid $borders_color;
|
|
|
|
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.1);
|
|
|
|
background-color: $bg_color;
|
|
|
|
padding: $base_padding * 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// menu items
|
|
|
|
.popup-menu-item {
|
2021-12-28 08:46:54 -05:00
|
|
|
spacing: $base_spacing;
|
|
|
|
padding: $base_padding*2;
|
|
|
|
margin: 2px 0;
|
|
|
|
border-radius: $base_border_radius;
|
|
|
|
transition: 0.2s all ease;
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&:ltr { padding-right:1.75em; padding-left: 0; }
|
|
|
|
&:rtl { padding-right: 0; padding-left:1.75em; }
|
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;
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
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 {
|
|
|
|
background-color: darken($hover_bg_color, 4%);
|
|
|
|
}
|
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
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&:active {
|
2021-12-28 08:46:54 -05:00
|
|
|
background-color: $active_bg_color;
|
|
|
|
color: $active_fg_color;
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2019-12-19 10:38:27 -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;
|
|
|
|
|
|
|
|
&:insensitive { color: $insensitive_fg_color; }
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// symbolic icons in popover
|
|
|
|
.popup-menu-arrow,
|
2021-12-28 08:46:54 -05:00
|
|
|
.popup-menu-icon {
|
|
|
|
margin: 0;
|
|
|
|
padding:0;
|
|
|
|
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
|
|
|
background-color: $hover_bg_color;
|
|
|
|
border:none;
|
|
|
|
border-radius: 0 0 $base_border_radius $base_border_radius;
|
|
|
|
padding: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
&:active {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.popup-menu-ornament {
|
|
|
|
min-width: 14px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-menu-item {
|
|
|
|
margin: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
padding: $base_padding*1.5 $base_padding*2;
|
|
|
|
|
|
|
|
&:last-child:hover{
|
|
|
|
border-radius: 0 0 $base_border_radius $base_border_radius;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-separator-menu-item {
|
|
|
|
margin: 0;
|
|
|
|
}
|
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
|
|
|
|
2021-12-28 08:46:54 -05:00
|
|
|
&:ltr { text-align: right; };
|
|
|
|
&:rtl { text-align: left; };
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// separator
|
|
|
|
.popup-separator-menu-item {
|
2020-02-14 07:36:04 -05:00
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
.popup-separator-menu-item-separator {
|
|
|
|
//-margin-horizontal: 24px;
|
|
|
|
height: 1px; //not really the whole box
|
2021-12-28 08:46:54 -05:00
|
|
|
margin: $base_margin 4em;
|
2020-02-14 07:36:04 -05:00
|
|
|
background-color: lighten($borders_color, 2%);
|
2021-12-28 08:46:54 -05:00
|
|
|
|
2020-02-14 07:36:04 -05:00
|
|
|
.popup-sub-menu & { //submenu separators
|
2021-12-28 08:46:54 -05:00
|
|
|
margin: 0 4em 0 3em; // balance it in the middle
|
|
|
|
padding:0 !important;
|
|
|
|
background-color: darken($hover_bg_color, 5%);
|
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 {
|
2019-12-19 10:38:27 -05:00
|
|
|
min-width: 21em;
|
|
|
|
|
2021-12-28 08:46:54 -05:00
|
|
|
// this is unneeded in at the top-level this menu, hide it
|
|
|
|
.popup-menu-ornament {width:0;padding:0;spacing:0;margin:0;}
|
|
|
|
|
|
|
|
.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 10:38:27 -05:00
|
|
|
// lock screen, shutdown, etc. buttons
|
|
|
|
.popup-menu-icon {
|
|
|
|
padding:0;
|
|
|
|
margin: 0 $base_margin;
|
|
|
|
-st-icon-style: symbolic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-sub-menu .popup-menu-item > :first-child {
|
|
|
|
// account for icons in submenus with padding
|
|
|
|
&: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
|
|
|
}
|