From f52633e9769d63e608c278e471f6182a826c398c Mon Sep 17 00:00:00 2001 From: Khurshid Alam Date: Wed, 15 Feb 2017 12:46:53 +0530 Subject: [PATCH] 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 --- src/gtk-3.20/scss/widgets/_button.scss | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/gtk-3.20/scss/widgets/_button.scss b/src/gtk-3.20/scss/widgets/_button.scss index 7175bad..709acf3 100644 --- a/src/gtk-3.20/scss/widgets/_button.scss +++ b/src/gtk-3.20/scss/widgets/_button.scss @@ -43,9 +43,9 @@ } %button { - min-height: 16px; - min-width: 16px; - padding: $spacing ($spacing + 2px); + //min-height: 16px; + //min-width: 16px; + padding: $spacing ($spacing + 1); border-width: 1px; border-style: solid; border-radius: $roundness; @@ -525,8 +525,8 @@ button.combo { // otherwise the arrow placement is not symmetric min-width: 0; - padding-left: $spacing + 2px; - padding-right: $spacing + 2px; + //padding-left: $spacing + 1px; + //padding-right: $spacing + 1px; } arrow { @@ -537,9 +537,11 @@ box button, box entry { @extend %linked_button; - padding: $spacing ($spacing + 2px); } + //hack to get rid of extra +1px height in linked combobox + //.linked:not(.vertical) button.combo { padding: 4px; } + .linked:not(.vertical) > & > box > button.combo { // the combo is a composite widget so the way we do button linked doesn't // work, special case needed. See