Skip to content

Commit

Permalink
Popovers: use border-spacing (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Oct 31, 2024
1 parent b21589f commit 1815821
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions src/gtk-4.0/widgets/_popovers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
background: transparent;
border: none;
border-radius: 0;
border-spacing: rem(6px);
box-shadow: none;
color: $fg-color;
font: initial;
Expand Down Expand Up @@ -48,13 +49,7 @@

check,
radio {
&.left {
margin-right: rem(6px);
}

&.right {
margin-left: rem(6px);
}
margin: 0;
}

switch slider {
Expand Down Expand Up @@ -179,14 +174,12 @@ popover.background {
&:dir(ltr) {
image:first-child {
// Off-by-one for some reason. Maybe optical illusion?
margin-left: rem(-23px);
margin-left: rem(-7px);
padding-left: 0;
padding-right: rem(5px);
}

> check,
> radio {
margin-right: rem(6px);
margin-left: rem(-6px);
}
}
Expand All @@ -195,13 +188,11 @@ popover.background {
image:first-child {
// Off-by-one for some reason. Maybe optical illusion?
margin-right: rem(-23px);
padding-left: rem(5px);
padding-right: 0;
}

> check,
> radio {
margin-left: rem(6px);
margin-right: rem(-6px);
}
}
Expand Down Expand Up @@ -229,16 +220,11 @@ popover.background {
box.inline-buttons {
margin: rem(3px) rem(12px);

&:dir(ltr) button + button {
margin-left: rem(6px);
> box {
border-spacing: rem(6px);
}
}

&:dir(ltr) box.inline-buttons label + box,
&:dir(ltr) modelbutton label + accelerator {
margin-left: rem(12px);
}

.title {
font-weight: 700;

Expand Down

0 comments on commit 1815821

Please sign in to comment.