2021-04-08 22:59:05 +08:00
|
|
|
/* Popovers/Menus */
|
|
|
|
|
2023-03-11 19:39:40 +08:00
|
|
|
$popop_menuitem_radius: $po_radius - $base_padding;
|
2020-12-27 18:33:02 +08:00
|
|
|
|
2021-04-08 22:59:05 +08:00
|
|
|
//.the popover itself
|
|
|
|
.popup-menu-boxpointer {
|
2023-03-11 19:39:40 +08:00
|
|
|
-arrow-border-radius: $po_radius;
|
2021-04-08 22:59:05 +08:00
|
|
|
-arrow-background-color: transparent;
|
|
|
|
-arrow-border-width: 0;
|
|
|
|
-arrow-border-color: transparent;
|
2022-11-12 22:15:51 +08:00
|
|
|
-arrow-base: 32px;
|
2021-04-08 22:59:05 +08:00
|
|
|
-arrow-rise: 0;
|
|
|
|
-arrow-box-shadow: none; //dreaming. bug #689995
|
|
|
|
}
|
|
|
|
|
2022-11-12 22:15:51 +08:00
|
|
|
.arcmenu-menu {
|
|
|
|
-arrow-base: 0;
|
|
|
|
}
|
|
|
|
|
2021-08-23 18:42:07 +08:00
|
|
|
@if $scale != 'default' {
|
|
|
|
#lockDialogGroup .popup-menu,
|
|
|
|
.login-screen .popup-menu { // FIXME: not use? how to set the popovers on login-screen?
|
|
|
|
min-width: 24em;
|
|
|
|
@include fontsize($base_font_size * 2 - 2);
|
|
|
|
|
|
|
|
.popup-menu-content {
|
2021-09-22 14:56:38 +08:00
|
|
|
padding: 12px 0;
|
2021-08-23 18:42:07 +08:00
|
|
|
box-shadow: 0 10px 20px 0 rgba(black, 0.18);
|
|
|
|
border: 2px solid if($variant=='light', rgba(black, 0), rgba(black, 0.75));
|
2021-09-22 14:56:38 +08:00
|
|
|
margin: 8px 24px 34px 24px;
|
2021-08-23 18:42:07 +08:00
|
|
|
@include fontsize($base_font_size * 2 - 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-menu-item {
|
|
|
|
spacing: $base_spacing * 4;
|
2021-09-22 14:56:38 +08:00
|
|
|
padding-top: 12px;
|
|
|
|
padding-bottom: 12px;
|
2021-08-23 18:42:07 +08:00
|
|
|
border-radius: $popop_menuitem_radius * 2;
|
|
|
|
margin: 0 12px;
|
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
&:ltr { padding-right: 4em; padding-left: 0; }
|
|
|
|
&:rtl { padding-right: 0; padding-left: 4em; }
|
2021-08-23 18:42:07 +08:00
|
|
|
|
|
|
|
&:checked {
|
|
|
|
border-radius: $popop_menuitem_radius * 2 $popop_menuitem_radius * 2 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-sub-menu {
|
|
|
|
border-radius: 0 0 $popop_menuitem_radius * 2 $popop_menuitem_radius * 2;
|
|
|
|
margin: 0 6px;
|
|
|
|
|
|
|
|
.popup-menu-item {
|
|
|
|
border-radius: $popop_menuitem_radius * 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.panel-menu {
|
|
|
|
-boxpointer-gap: $base_margin * 2; // distance from the panel
|
|
|
|
margin-bottom: 3.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// symbolic icons in popover
|
|
|
|
.popup-menu-arrow,
|
|
|
|
.popup-menu-icon { icon-size: $base_icon_size * 2; }
|
|
|
|
}
|
|
|
|
|
2021-04-08 22:59:05 +08:00
|
|
|
// container of the popover menu
|
2020-12-27 18:33:02 +08:00
|
|
|
.popup-menu {
|
|
|
|
min-width: 12em;
|
|
|
|
color: $alt_fg_color;
|
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
//.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;
|
2020-12-27 18:33:02 +08:00
|
|
|
}
|
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
StEntry {
|
|
|
|
selection-background-color: $light_alt_fg_color;
|
|
|
|
selected-background-color: $light_alt_fg_color;
|
|
|
|
selected-color: $primary_color;
|
|
|
|
caret-color: $fg_color;
|
2020-12-27 18:33:02 +08:00
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
StLabel.hint-text {
|
|
|
|
margin-left: 2px;
|
|
|
|
color: transparentize($fg_color, 0.3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-12-27 18:33:02 +08:00
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
.popup-menu-content {
|
2022-06-02 23:02:12 +08:00
|
|
|
padding: $base_padding;
|
2021-09-22 14:56:38 +08:00
|
|
|
box-shadow: 0 5px 10px 0 rgba(black, 0.18);
|
|
|
|
margin: 4px 12px 17px 12px;
|
2023-03-11 19:39:40 +08:00
|
|
|
background-color: $dialog_bg_color;
|
|
|
|
border-radius: $po_radius;
|
|
|
|
border: solid if($variant=='light', rgba(black, 0), rgba(black, 0.75));
|
|
|
|
border-width: if($variant=='light', 0, 1px);
|
2021-09-22 14:56:38 +08:00
|
|
|
}
|
2020-12-27 18:33:02 +08:00
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
.popup-menu-item {
|
2022-06-02 23:02:12 +08:00
|
|
|
spacing: $base_spacing;
|
|
|
|
padding: $base_padding * 1.5 $base_padding * 2;
|
2021-09-22 14:56:38 +08:00
|
|
|
color: $alt_fg_color;
|
2023-03-11 17:34:24 +08:00
|
|
|
text-shadow: none !important;
|
|
|
|
icon-shadow: none !important;
|
2023-05-11 01:39:04 +08:00
|
|
|
border-radius: $popop_menuitem_radius !important;
|
2021-09-22 14:56:38 +08:00
|
|
|
font-weight: normal;
|
|
|
|
transition: none;
|
|
|
|
|
|
|
|
&:checked {
|
|
|
|
font-weight: normal;
|
2023-05-11 01:39:04 +08:00
|
|
|
border-radius: $popop_menuitem_radius $popop_menuitem_radius 0 0 !important;
|
2021-09-22 14:56:38 +08:00
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
2022-04-17 22:49:54 +08:00
|
|
|
color: $alt_fg_color !important;
|
|
|
|
background-color: $submenu_bg_color !important;
|
2021-09-22 14:56:38 +08:00
|
|
|
background-gradient-direction: none !important;
|
2020-12-27 18:33:02 +08:00
|
|
|
|
2022-05-05 17:53:22 +08:00
|
|
|
&:focus, &:hover, &:selected {
|
2022-04-17 22:49:54 +08:00
|
|
|
color: $selected_fg_color !important;
|
|
|
|
background-color: $selected_bg_color !important;
|
2021-09-22 14:56:38 +08:00
|
|
|
background-gradient-direction: none !important;
|
2020-12-27 18:33:02 +08:00
|
|
|
}
|
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
&:active {
|
2022-04-17 22:49:54 +08:00
|
|
|
color: $selected_fg_color !important;
|
2024-10-30 18:05:53 +08:00
|
|
|
@if $gnome_version == 'old' {
|
|
|
|
background-color: mix($fg_color, $selected_bg_color, 5%) !important;
|
|
|
|
} @else {
|
|
|
|
background-color: st-mix($fg_color, $selected_bg_color, 5%) !important;
|
|
|
|
}
|
2020-12-27 18:33:02 +08:00
|
|
|
}
|
|
|
|
|
2022-04-17 22:49:54 +08:00
|
|
|
&:insensitive { color: $disabled_fg_color !important; }
|
2020-12-27 18:33:02 +08:00
|
|
|
}
|
|
|
|
|
2022-05-05 17:53:22 +08:00
|
|
|
&:focus, &:hover, &:selected {
|
2022-04-17 22:49:54 +08:00
|
|
|
color: $selected_fg_color !important;
|
|
|
|
background-color: $selected_bg_color !important;
|
2021-09-22 14:56:38 +08:00
|
|
|
transition-duration: 0ms !important;
|
|
|
|
}
|
2020-12-27 18:33:02 +08:00
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
&:active, &.selected:active {
|
2022-04-17 22:49:54 +08:00
|
|
|
color: $selected_fg_color !important;
|
2024-10-30 18:05:53 +08:00
|
|
|
@if $gnome_version == 'old' {
|
|
|
|
background-color: mix($fg_color, $selected_bg_color, 5%) !important;
|
|
|
|
} @else {
|
|
|
|
background-color: st-mix($fg_color, $selected_bg_color, 5%) !important;
|
|
|
|
}
|
2020-12-27 18:33:02 +08:00
|
|
|
}
|
|
|
|
|
2022-04-17 22:49:54 +08:00
|
|
|
&:insensitive { color: $disabled_fg_color !important; }
|
2024-04-18 16:06:36 +08:00
|
|
|
|
|
|
|
// add margin to switches in menu items
|
|
|
|
.toggle-switch {
|
|
|
|
&:ltr { margin-left: $base_margin; }
|
|
|
|
&:rtl { margin-right: $base_margin; }
|
|
|
|
}
|
2021-09-22 14:56:38 +08:00
|
|
|
}
|
2020-12-27 18:33:02 +08:00
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
.popup-sub-menu {
|
2022-04-17 22:49:54 +08:00
|
|
|
background-color: $submenu_bg_color !important;
|
2023-05-11 01:39:04 +08:00
|
|
|
border-radius: 0 0 $popop_menuitem_radius $popop_menuitem_radius !important;
|
2021-09-22 14:56:38 +08:00
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
2020-12-27 18:33:02 +08:00
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
.popup-menu-item {
|
|
|
|
margin: 0;
|
2023-05-11 01:39:04 +08:00
|
|
|
border-radius: $popop_menuitem_radius !important;
|
|
|
|
background-color: transparent !important;
|
2021-04-08 23:38:37 +08:00
|
|
|
|
2022-05-05 17:53:22 +08:00
|
|
|
&:focus, &:hover, &:selected {
|
2022-04-17 22:49:54 +08:00
|
|
|
color: $selected_fg_color !important;
|
|
|
|
background-color: $selected_bg_color !important;
|
2021-09-22 14:56:38 +08:00
|
|
|
}
|
2021-04-08 23:38:37 +08:00
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
&:active {
|
2022-04-17 22:49:54 +08:00
|
|
|
color: $selected_fg_color !important;
|
2024-10-30 18:05:53 +08:00
|
|
|
@if $gnome_version == 'old' {
|
|
|
|
background-color: mix($fg_color, $selected_bg_color, 5%) !important;
|
|
|
|
} @else {
|
|
|
|
background-color: st-mix($fg_color, $selected_bg_color, 5%) !important;
|
|
|
|
}
|
2021-04-08 23:38:37 +08:00
|
|
|
}
|
|
|
|
}
|
2020-12-27 18:33:02 +08:00
|
|
|
}
|
2021-09-22 14:56:38 +08:00
|
|
|
|
2024-04-18 16:06:36 +08:00
|
|
|
.popup-ornamented-menu-item {
|
|
|
|
&:ltr { padding-left: $base_padding; }
|
|
|
|
&:rtl { padding-right: $base_padding; }
|
|
|
|
}
|
|
|
|
|
2021-09-22 14:56:38 +08:00
|
|
|
.popup-inactive-menu-item { //all icons and other graphical elements
|
2022-05-05 17:53:22 +08:00
|
|
|
color: $alt_fg_color !important;
|
2021-09-22 14:56:38 +08:00
|
|
|
|
2022-05-05 17:53:22 +08:00
|
|
|
&:insensitive { color: $disabled_fg_color !important; }
|
2021-09-22 14:56:38 +08:00
|
|
|
}
|
|
|
|
|
2021-04-08 22:59:05 +08:00
|
|
|
// symbolic icons in popover
|
|
|
|
.popup-menu-arrow,
|
2023-03-11 17:34:24 +08:00
|
|
|
.popup-menu-icon {
|
|
|
|
icon-size: $base_icon_size;
|
|
|
|
icon-shadow: none !important;
|
|
|
|
}
|
2020-12-27 18:33:02 +08:00
|
|
|
|
2021-04-08 22:59:05 +08:00
|
|
|
// container for radio and check boxes
|
2020-12-27 18:33:02 +08:00
|
|
|
.popup-menu-ornament {
|
2024-04-18 16:06:36 +08:00
|
|
|
icon-size: $scalable_icon_size !important;
|
|
|
|
width: $scalable_icon_size;
|
2020-12-27 18:33:02 +08:00
|
|
|
}
|
|
|
|
|
2021-04-08 22:59:05 +08:00
|
|
|
// desktop background menu
|
|
|
|
.background-menu {
|
|
|
|
-boxpointer-gap: $base_margin;
|
|
|
|
-arrow-rise: 0px; // hide the beak on the menu
|
2020-12-27 18:33:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// system status popover menu
|
|
|
|
.aggregate-menu {
|
|
|
|
min-width: 21em;
|
|
|
|
|
|
|
|
// lock screen, shutdown, etc. buttons
|
|
|
|
.popup-menu-icon {
|
2022-06-02 23:02:12 +08:00
|
|
|
padding: 0 !important;
|
2020-12-27 18:33:02 +08:00
|
|
|
-st-icon-style: symbolic;
|
2022-06-02 23:02:12 +08:00
|
|
|
|
|
|
|
&:ltr { margin-right: $base_margin * 2 !important; }
|
|
|
|
&:rtl { margin-left: $base_margin * 2 !important; }
|
2020-12-27 18:33:02 +08:00
|
|
|
}
|
|
|
|
}
|
2022-10-10 23:22:02 +08:00
|
|
|
|
|
|
|
// right-click app menu
|
|
|
|
.app-menu,
|
|
|
|
.app-well-menu {
|
|
|
|
max-width: 27.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Rename popup for app folders
|
|
|
|
.rename-folder-popup {
|
|
|
|
.rename-folder-popup-item {
|
|
|
|
spacing: $base_spacing;
|
|
|
|
&:ltr, &:rtl { padding: 0 $base_padding * 2; }
|
|
|
|
}
|
|
|
|
}
|