Skip to content

Commit 653556d

Browse files
committed
[Gtk-3.22] Fixing & adjusting menu & modelbutton padding
1 parent 0220883 commit 653556d

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/gtk-3.20/scss/widgets/_menu.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
.context-menu {
7474
border: 0;
7575
border-radius: 0;
76-
padding: 2px 0;
76+
padding: 0;
7777
background-color: $menu_bg_color;
7878
color: $menu_fg_color;
7979

@@ -85,15 +85,15 @@
8585
separator,
8686
.csd & separator {
8787
background-color: shade($menu_bg_color, ($contrast + .1));
88-
margin: ($spacing - 2px) 0;
88+
margin: 1px 0;
8989
}
9090

9191
// Firefox workaround
9292
.separator,
9393
.csd & .separator { color: shade($menu_bg_color, ($contrast + .1)); }
9494

9595
menuitem {
96-
min-height: 16px;
96+
min-height: 14px;
9797
min-width: 40px;
9898
padding: $spacing - 1px;
9999
border-radius: 0;
@@ -111,8 +111,8 @@
111111

112112
// submenu indicators
113113
arrow {
114-
min-height: 16px;
115-
min-width: 16px;
114+
min-height: 14px;
115+
min-width: 14px;
116116

117117
&:dir(ltr) {
118118
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
@@ -152,8 +152,8 @@
152152
> arrow {
153153
//@include button(undecorated);
154154

155-
min-height: 16px;
156-
min-width: 16px;
155+
min-height: 14px;
156+
min-width: 14px;
157157
padding: $spacing;
158158
background-color: $menu_bg_color;
159159
border-radius: 0;
@@ -196,8 +196,8 @@
196196
}
197197

198198
check, radio {
199-
min-height: 16px;
200-
min-width: 16px;
199+
min-height: 14px;
200+
min-width: 14px;
201201

202202
&:dir(ltr) { margin-right: 7px; }
203203
&:dir(rtl) { margin-left: 7px; }
@@ -288,7 +288,7 @@
288288

289289
modelbutton.flat,
290290
menuitem.button.flat {
291-
padding: $spacing ($spacing + 2px);
291+
padding: ($spacing - 1px) ($spacing + 1px);
292292
outline-color: transparent;
293293
transition: none;
294294

0 commit comments

Comments
 (0)