Fixed Gsconnect issues

This commit is contained in:
Vince 2021-06-22 12:54:06 +08:00
parent 8941fee536
commit fbcc8f67fd
2 changed files with 26 additions and 9 deletions

View file

@ -97,10 +97,6 @@ $popop_menuitem_radius: $wm_radius - 4px;
color: $selected_fg_color;
background-color: mix($fg_color, $selected_bg_color, 5%);
}
&:not(:first-child):last-child {
border-radius: 0 0 $popop_menuitem_radius $popop_menuitem_radius;
}
}
}
@ -142,20 +138,15 @@ $popop_menuitem_radius: $wm_radius - 4px;
// separator
.popup-separator-menu-item {
margin: 0 0;
padding: 0 0;
background: none;
border: none;
height: 1px;
.popup-separator-menu-item-separator {
height: 1px; //not really the whole box
margin: 0 0;
background-color: $borders_color;
padding: 0 0;
.popup-sub-menu & { //submenu separators
padding: 0 0;
margin: 0 32px 0 0;
height: 1px;
}

View file

@ -57,3 +57,29 @@
&-sunset-icon,
&-build-icon { color: $alt_fg_color; }
}
//
// Gsconnect
//
.gsconnect-device-menu {
background-color: if($variant == 'light', white, rgba(white, 0.06));
border-radius: $bt_radius;
margin: $container_padding / 2;
padding: $bt_radius 0;
box-shadow: 1px 2px 3px rgba(black, if($variant == 'light', 0.08, 0.35));
.popup-menu-item {
border-radius: 0 !important;
&:hover {
color: $fg_color !important;
background-color: rgba($fg_color, 0.1) !important;
}
> :first-child {
&:ltr { padding-left: 0 !important; margin-left: 0 !important; }
&:rtl { padding-right: 0 !important; margin-right: 0 !important; }
}
}
}