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.