Skip to content

Commit f52633e

Browse files
committed
Attempting to fix >1px height in linked combobox-button
Still not perfect More will come once I unify button (image, text, image-text, popup, radio) paddings
1 parent ec299d4 commit f52633e

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
}
4444

4545
%button {
46-
min-height: 16px;
47-
min-width: 16px;
48-
padding: $spacing ($spacing + 2px);
46+
//min-height: 16px;
47+
//min-width: 16px;
48+
padding: $spacing ($spacing + 1);
4949
border-width: 1px;
5050
border-style: solid;
5151
border-radius: $roundness;
@@ -525,8 +525,8 @@
525525
button.combo {
526526
// otherwise the arrow placement is not symmetric
527527
min-width: 0;
528-
padding-left: $spacing + 2px;
529-
padding-right: $spacing + 2px;
528+
//padding-left: $spacing + 1px;
529+
//padding-right: $spacing + 1px;
530530
}
531531

532532
arrow {
@@ -537,9 +537,11 @@
537537

538538
box button, box entry {
539539
@extend %linked_button;
540-
padding: $spacing ($spacing + 2px);
541540
}
542541

542+
//hack to get rid of extra +1px height in linked combobox
543+
//.linked:not(.vertical) button.combo { padding: 4px; }
544+
543545
.linked:not(.vertical) > & > box > button.combo {
544546
// the combo is a composite widget so the way we do button linked doesn't
545547
// work, special case needed. See

0 commit comments

Comments
 (0)