mirror of
https://github.com/vinceliuice/WhiteSur-gtk-theme.git
synced 2025-06-07 07:53:07 +00:00
239 lines
6.1 KiB
SCSS
239 lines
6.1 KiB
SCSS
/* Popovers/Menus */
|
|
|
|
$popop_menuitem_radius: $wm_radius - 4px;
|
|
|
|
//.the popover itself
|
|
.popup-menu-boxpointer {
|
|
-arrow-border-radius: 2px;
|
|
-arrow-background-color: transparent;
|
|
-arrow-border-width: 0;
|
|
-arrow-border-color: transparent;
|
|
-arrow-base: 64px;
|
|
-arrow-rise: 0;
|
|
-arrow-box-shadow: none; //dreaming. bug #689995
|
|
}
|
|
|
|
@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 {
|
|
padding: 12px 0;
|
|
box-shadow: 0 10px 20px 0 rgba(black, 0.18);
|
|
border: 2px solid if($variant=='light', rgba(black, 0), rgba(black, 0.75));
|
|
margin: 8px 24px 34px 24px;
|
|
@include fontsize($base_font_size * 2 - 2);
|
|
}
|
|
|
|
.popup-menu-item {
|
|
spacing: $base_spacing * 4;
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
border-radius: $popop_menuitem_radius * 2;
|
|
margin: 0 12px;
|
|
|
|
&:ltr { padding-right: 4em; padding-left: 0; }
|
|
&:rtl { padding-right: 0; padding-left: 4em; }
|
|
|
|
&: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; }
|
|
}
|
|
|
|
// container of the popover menu
|
|
.popup-menu {
|
|
min-width: 12em;
|
|
color: $alt_fg_color;
|
|
@include font(body-1);
|
|
|
|
//.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;
|
|
}
|
|
|
|
StEntry {
|
|
selection-background-color: $light_alt_fg_color;
|
|
selected-background-color: $light_alt_fg_color;
|
|
selected-color: $primary_color;
|
|
caret-color: $fg_color;
|
|
|
|
StLabel.hint-text {
|
|
margin-left: 2px;
|
|
color: transparentize($fg_color, 0.3);
|
|
}
|
|
}
|
|
}
|
|
|
|
.popup-menu-content {
|
|
padding: 6px 0;
|
|
@extend %theme_dialogs;
|
|
box-shadow: 0 5px 10px 0 rgba(black, 0.18);
|
|
border: 1px solid if($variant=='light', rgba(black, 0), rgba(black, 0.75));
|
|
margin: 4px 12px 17px 12px;
|
|
@include font(body-1);
|
|
}
|
|
|
|
.popup-menu-item {
|
|
spacing: $base_spacing * 2;
|
|
padding-top: 6px;
|
|
padding-bottom: 6px;
|
|
color: $alt_fg_color;
|
|
text-shadow: none;
|
|
border-radius: $popop_menuitem_radius;
|
|
margin: 0 6px;
|
|
font-weight: normal;
|
|
transition: none;
|
|
|
|
&:ltr { padding-right: 1.5em; padding-left: 0; }
|
|
&:rtl { padding-right: 0; padding-left: 1.5em; }
|
|
// &:ltr { padding-right: $base_padding * 2 !important; padding-left: 0 !important; }
|
|
// &:rtl { padding-left: $base_padding * 2 !important; padding-right: 0 !important; }
|
|
|
|
&:checked {
|
|
font-weight: normal;
|
|
border-radius: $popop_menuitem_radius $popop_menuitem_radius 0 0;
|
|
border: none;
|
|
box-shadow: none;
|
|
color: $alt_fg_color !important;
|
|
background-color: $submenu_bg_color !important;
|
|
background-gradient-direction: none !important;
|
|
|
|
&:hover, &.selected {
|
|
color: $selected_fg_color !important;
|
|
background-color: $selected_bg_color !important;
|
|
background-gradient-direction: none !important;
|
|
}
|
|
|
|
&:active {
|
|
color: $selected_fg_color !important;
|
|
background-color: mix($fg_color, $selected_bg_color, 5%) !important;
|
|
}
|
|
|
|
&:insensitive { color: $disabled_fg_color !important; }
|
|
}
|
|
|
|
&.selected {
|
|
color: $selected_fg_color !important;
|
|
background-color: $selected_bg_color !important;
|
|
transition-duration: 0ms !important;
|
|
}
|
|
|
|
&:active, &.selected:active {
|
|
color: $selected_fg_color !important;
|
|
background-color: mix($fg_color, $selected_bg_color, 5%) !important;
|
|
}
|
|
|
|
&:insensitive { color: $disabled_fg_color !important; }
|
|
}
|
|
|
|
.popup-sub-menu {
|
|
background-color: $submenu_bg_color !important;
|
|
border-radius: 0 0 $popop_menuitem_radius $popop_menuitem_radius;
|
|
border: none;
|
|
box-shadow: none;
|
|
margin: 0 6px;
|
|
|
|
.popup-menu-item {
|
|
margin: 0;
|
|
border-radius: $popop_menuitem_radius;
|
|
|
|
&:focus, &:hover {
|
|
color: $selected_fg_color !important;
|
|
background-color: $selected_bg_color !important;
|
|
}
|
|
|
|
&:active {
|
|
color: $selected_fg_color !important;
|
|
background-color: mix($fg_color, $selected_bg_color, 5%) !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.popup-inactive-menu-item { //all icons and other graphical elements
|
|
color: $alt_fg_color;
|
|
|
|
&:insensitive { color: $disabled_fg_color; }
|
|
}
|
|
|
|
// symbolic icons in popover
|
|
.popup-menu-arrow,
|
|
.popup-menu-icon { icon-size: $base_icon_size; }
|
|
|
|
// container for radio and check boxes
|
|
.popup-menu-ornament {
|
|
width: 1.2em;
|
|
|
|
&:ltr { text-align: right; }
|
|
&:rtl { text-align: left; }
|
|
}
|
|
|
|
// separator
|
|
.popup-separator-menu-item {
|
|
background: none;
|
|
border: none;
|
|
// margin: 6px 32px;
|
|
padding-top: 0 !important;
|
|
padding-bottom: 0 !important;
|
|
|
|
.popup-separator-menu-item-separator {
|
|
height: 1px; //not really the whole box
|
|
margin: 0 0;
|
|
background-color: $borders_color;
|
|
|
|
.popup-sub-menu & { //submenu separators
|
|
margin: 0 32px 0 0;
|
|
height: 1px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// desktop background menu
|
|
.background-menu {
|
|
-boxpointer-gap: $base_margin;
|
|
-arrow-rise: 0px; // hide the beak on the menu
|
|
}
|
|
|
|
// system status popover menu
|
|
.aggregate-menu {
|
|
min-width: 21em;
|
|
|
|
// lock screen, shutdown, etc. buttons
|
|
.popup-menu-icon {
|
|
padding: 0;
|
|
margin: 0 0;
|
|
-st-icon-style: symbolic;
|
|
}
|
|
|
|
.popup-sub-menu .popup-menu-item > :first-child {
|
|
// &:ltr { padding-left: $base_padding * 2 !important; margin-left: $base_padding / 2 !important; }
|
|
// &:rtl { padding-right: $base_padding * 2 !important; margin-right: $base_padding / 2 !important; }
|
|
|
|
&:ltr { /* 12px spacing + 2*4px padding */
|
|
padding-left: $base_padding * 2 + 4px; margin-left: 1em; }
|
|
&:rtl { /* 12px spacing + 2*4px padding */
|
|
padding-right: $base_padding * 2 + 4px; margin-right: 1em; }
|
|
}
|
|
}
|