]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
auto width on button inputs in topbar 7389/head
authorGeorge Spake <gpspake@gmail.com>
Fri, 4 Dec 2015 02:08:06 +0000 (20:08 -0600)
committerGeorge Spake <gpspake@gmail.com>
Fri, 4 Dec 2015 02:08:06 +0000 (20:08 -0600)
Inputs in the topbar use the fixed $topbar-input-width and are 200px wide by default.
That applies to button inputs as well which is probably not desirable for a search submit button, for instance.
This just excludes inputs with the button class from that rule.

scss/components/_top-bar.scss

index fe841b6d1b846026c4fb40cbae3d000010391dea..cb9780485e447227228956cd2a747e48b941f981 100644 (file)
@@ -40,6 +40,10 @@ $topbar-input-width: 200px !default;
     width: $topbar-input-width;
     margin-#{$global-right}: 1rem;
   }
+  
+  input.button {
+    width:auto;
+  }
 }
 
 @mixin foundation-top-bar {