Skip to content

Commit 1815821

Browse files
authored
Popovers: use border-spacing (#1303)
1 parent b21589f commit 1815821

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

src/gtk-4.0/widgets/_popovers.scss

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
background: transparent;
44
border: none;
55
border-radius: 0;
6+
border-spacing: rem(6px);
67
box-shadow: none;
78
color: $fg-color;
89
font: initial;
@@ -48,13 +49,7 @@
4849

4950
check,
5051
radio {
51-
&.left {
52-
margin-right: rem(6px);
53-
}
54-
55-
&.right {
56-
margin-left: rem(6px);
57-
}
52+
margin: 0;
5853
}
5954

6055
switch slider {
@@ -179,14 +174,12 @@ popover.background {
179174
&:dir(ltr) {
180175
image:first-child {
181176
// Off-by-one for some reason. Maybe optical illusion?
182-
margin-left: rem(-23px);
177+
margin-left: rem(-7px);
183178
padding-left: 0;
184-
padding-right: rem(5px);
185179
}
186180

187181
> check,
188182
> radio {
189-
margin-right: rem(6px);
190183
margin-left: rem(-6px);
191184
}
192185
}
@@ -195,13 +188,11 @@ popover.background {
195188
image:first-child {
196189
// Off-by-one for some reason. Maybe optical illusion?
197190
margin-right: rem(-23px);
198-
padding-left: rem(5px);
199191
padding-right: 0;
200192
}
201193

202194
> check,
203195
> radio {
204-
margin-left: rem(6px);
205196
margin-right: rem(-6px);
206197
}
207198
}
@@ -229,16 +220,11 @@ popover.background {
229220
box.inline-buttons {
230221
margin: rem(3px) rem(12px);
231222

232-
&:dir(ltr) button + button {
233-
margin-left: rem(6px);
223+
> box {
224+
border-spacing: rem(6px);
234225
}
235226
}
236227

237-
&:dir(ltr) box.inline-buttons label + box,
238-
&:dir(ltr) modelbutton label + accelerator {
239-
margin-left: rem(12px);
240-
}
241-
242228
.title {
243229
font-weight: 700;
244230

0 commit comments

Comments
 (0)