2019-12-18 16:25:03 -05:00
|
|
|
/* Popovers/Menus */
|
|
|
|
|
|
|
|
$popover_arrow_height: 12px;
|
|
|
|
|
|
|
|
//.the popover itself
|
|
|
|
.popup-menu-boxpointer,
|
|
|
|
.candidate-popup-boxpointer {
|
2019-12-19 10:38:27 -05:00
|
|
|
-arrow-border-radius: $base_border_radius+4;
|
|
|
|
-arrow-background-color: $bg_color;
|
|
|
|
-arrow-border-width: 1px;
|
|
|
|
-arrow-border-color: $borders_color;
|
|
|
|
-arrow-base: $popover_arrow_height * 2;
|
|
|
|
-arrow-rise: $popover_arrow_height;
|
|
|
|
-arrow-box-shadow: 0 1px 3px rgba(0,0,0,0.5); // dreaming bugzilla #689995
|
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 {
|
|
|
|
-boxpointer-gap: $base_margin; // distance from the panel
|
|
|
|
margin-bottom: 1.75em;
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.popup-menu-content {
|
2019-12-19 10:38:27 -05:00
|
|
|
padding: $base_padding * 2 + $base_margin 0;
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// menu items
|
|
|
|
.popup-menu-item {
|
2019-12-19 10:38:27 -05:00
|
|
|
spacing: $base_padding;
|
|
|
|
padding: $base_padding;
|
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
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&:checked {
|
|
|
|
background-color: lighten($bg_color, 2%);
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&.selected {
|
|
|
|
background-color: transparentize(white, if($variant=='light', 0.2, 0.9));
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&:active {
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
color: $selected_fg_color;
|
|
|
|
}
|
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
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&:insensitive { color: transparentize($fg_color,0.5); }
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// symbolic icons in popover
|
|
|
|
.popup-menu-arrow,
|
|
|
|
.popup-menu-icon { icon-size: $base_icon_size; }
|
|
|
|
|
|
|
|
// popover submenus
|
|
|
|
.popup-sub-menu {
|
2019-12-19 10:38:27 -05:00
|
|
|
background-color: darken($bg_color, 3%);
|
|
|
|
box-shadow: none;
|
|
|
|
border-top: 1px solid transparentize($borders_color, 0.2);
|
|
|
|
border-bottom: 1px solid transparentize($borders_color, 0.2);
|
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
|
|
|
text-align: right;
|
|
|
|
width: 1.2em;
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// separator
|
|
|
|
.popup-separator-menu-item {
|
2019-12-19 10:38:27 -05:00
|
|
|
//-margin-horizontal: 24px;
|
|
|
|
height: 1px; //not really the whole box
|
|
|
|
margin: 6px 64px;
|
|
|
|
background-color: lighten($borders_color, 2%);
|
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;
|
|
|
|
|
|
|
|
// 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 {
|
|
|
|
padding-left: $base_padding + $base_margin * 2;
|
|
|
|
margin-left: $base_icon_size;
|
|
|
|
}
|
|
|
|
&:rtl {
|
|
|
|
padding-right: $base_padding + $base_margin * 2; ;
|
|
|
|
margin-right: $base_icon_size;
|
|
|
|
}
|
|
|
|
}
|
2020-01-24 21:37:16 -05:00
|
|
|
}
|