]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add height value for select elements to match text input height. 3821/head
authorFitz Haile <fitzhaile@gmail.com>
Thu, 5 Dec 2013 20:53:01 +0000 (15:53 -0500)
committerFitz Haile <fitzhaile@gmail.com>
Thu, 5 Dec 2013 20:53:01 +0000 (15:53 -0500)
When changing the default $form-spacing, heights for select elements were not matching the input[type=text]'s, which looks inconsistent.

scss/foundation/components/_forms.scss

index 6b5b5ba12753daf045788751299b81cd7dfdf93f..fceb8fe7f5f3f0e6d55ea181149a288b14fb168b 100644 (file)
@@ -402,6 +402,11 @@ $select-bg-color: #fafafa;
           @include single-transition(all, 0.15s, linear);
       }
     }
+    
+    /* Add height value for select elements to match text input height */
+    select {
+      height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
+    }
 
     /* Adjust margin for form elements below */
     input[type="file"],