Fixed issues

This commit is contained in:
vinceliuice 2024-04-28 23:56:43 +08:00
parent 9c71a2f1ea
commit 3a99c10a7d
2 changed files with 33 additions and 24 deletions

View file

@ -717,25 +717,6 @@ button {
&:dir(rtl) { background-position: left 3px; }
}
// menu buttons
modelbutton.flat,
.menuitem.button.flat {
min-height: $menuitem-size;
padding: 0 8px;
border-radius: $corner-radius;
color: $text;
@extend %button-flat-simple;
&:selected { @extend %selected_items; }
}
modelbutton.flat arrow {
&.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
&.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
}
button.color {
min-height: $small-size;
min-width: $small-size;
@ -1828,7 +1809,7 @@ popover.background {
}
}
> stack { margin: 0; } // remove extra padding from menu style popovers
> stack { margin: -4px; } // remove extra padding from menu style popovers
> toolbar { margin: 0; }
@ -1873,6 +1854,28 @@ popover.background {
// &:checked { color: $primary; }
}
// menu buttons
modelbutton.flat,
.menuitem.button.flat {
min-height: $menuitem-size;
padding: 0 8px;
border-radius: $corner-radius;
color: $text;
@extend %button-flat-simple;
&:selected { @extend %selected_items; }
}
modelbutton.flat + modelbutton.flat,
modelbutton.flat + box.vertical,
.menuitem.button.flat + .menuitem.button.flat { margin-top: 2px; }
modelbutton.flat arrow {
&.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
&.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
}
separator { margin: $space-size / 2 0; }
list separator { margin: 0; }
@ -3278,6 +3281,8 @@ stacksidebar.sidebar {
padding: 0 $space-size / 2;
border-radius: $corner-radius;
+ row { margin-top: $space-size / 2; }
&:selected {
background-color: $primary;
color: on($primary);
@ -3288,8 +3293,6 @@ stacksidebar.sidebar {
}
}
+ row { margin-top: $space-size / 2; }
> label {
padding-left: $space-size;
padding-right: $space-size;
@ -3332,6 +3335,8 @@ placessidebar.sidebar {
padding: 0;
border-radius: $corner-radius;
+ row { margin-top: $space-size / 2; }
// Using margins/padding directly in the SidebarRow
// will make the animation of the new bookmark row jump
> revealer { padding: 0 8px 0 16px; }

View file

@ -469,6 +469,8 @@ frame.gedit-map-frame > border {
leaflet list.navigation-sidebar {
background-color: $base-alt;
> row + row { margin-top: $space-size / 2; }
window.background.csd:not(.maximized) & {
border-bottom-left-radius: $window-radius;
}
@ -588,11 +590,13 @@ window.background.csd {
list { // left-pane
background-color: transparent;
padding: $space-size / 2;
padding: $space-size;
row.activatable {
> row.activatable {
border-radius: $corner-radius;
+ row { margin-top: $space-size / 2; }
&:not(:hover):not(:active):not(:selected) {
background-color: transparent;
}