Fixed issues

This commit is contained in:
vinceliuice 2022-09-13 11:45:05 +08:00
parent 07d3561a64
commit 14cc12eb78
2 changed files with 10 additions and 16 deletions

View file

@ -79,7 +79,7 @@ $backdrop_transition: $longer_duration ease-out;
// Shadow
$shadow_0: 0 1px 2px 0 rgba(black, 0.1), 0 2px 2px 0 rgba(black, 0.05); // Slider hover shadow
$shadow_1: 0 1px 1px 0 rgba(black, 0.12), 0 1px 2px 0 rgba(black, 0.06); // Header-button shadow
$shadow_2: 0 1px 1px 0 rgba(black, 0.1), 0 1px 2px 0 rgba(black, 0.05); // Slider normal shadow
$shadow_2: 0 1px 1px 0 rgba(black, 0.03), 0 1px 2px 0 rgba(black, 0.08); // Slider normal shadow
$shadow_3: 0 1px 1px 0 rgba(black, 0.03), 0 1px 2px 0 rgba(black, 0.01); // Normal button shadow
$shadow_4: 0 2px 3px 0 rgba(black, 0.2), 0 3px 5px 0 rgba(black, 0.15); // Switch-slider hover shadow
$shadow_5: 0 1px 2px 0 rgba(black, 0.15), 0 2px 3px 0 rgba(black, 0.1); // Switch-slider normal shadow

View file

@ -2196,7 +2196,6 @@ menubar,
menu,
.menu,
.context-menu {
// margin: 4px;
padding: $container_padding;
border-radius: $mn_radius;
background-color: opacify($menu_bg, 1);
@ -2295,23 +2294,19 @@ menu,
min-height: 16px;
padding: 2px;
background-color: transparent;
border-radius: 0;
border-radius: $mn_radius - 3px;
border: none;
background-image: none;
color: $fg_color;
&.top {
margin-top: -6px;
border-radius: $mn_radius $mn_radius 0 0;
border-bottom: 1px solid $borders_color;
margin-top: 0;
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
}
&.bottom {
margin-top: 12px;
margin-bottom: -16px;
border-radius: 0 0 $mn_radius $mn_radius;
border-top: 1px solid $borders_color;
margin-bottom: -12px;
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
}
@ -3065,13 +3060,13 @@ scale {
}
slider {
$_slider_border: if($variant=='light', transparentize(darken($button_border, 0%), 0), transparentize($button_border, 0));
$_slider_border: $button_border;
background-color: $selected_fg_color;
border: 1px solid $_slider_border;
border-radius: 100%;
box-shadow: $shadow_2;
background-clip: padding-box;
transition: $button_transition;
transition-property: background, border;
@ -3082,7 +3077,6 @@ scale {
}
&:active {
background-clip: border-box;
background-color: $selected_fg_color;
border-color: $_slider_border;
box-shadow: $shadow_3;