From: Mark Otto Date: Fri, 7 Feb 2014 10:08:32 +0000 (-0800) Subject: Override iOS search input's extra round corners X-Git-Tag: v3.1.1~14^2~22^2~3^2~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12629%2Fhead;p=thirdparty%2Fbootstrap.git Override iOS search input's extra round corners --- diff --git a/less/forms.less b/less/forms.less index d0189d0cc8..d979933187 100644 --- a/less/forms.less +++ b/less/forms.less @@ -150,10 +150,24 @@ output { } } + +// Search inputs in iOS +// +// This overrides the extra rounded corners on search inputs in iOS so that our +// `.form-control` class can properly style them. Note that this cannot simply +// be added to `.form-control` as it's not specific enough. For details, see +// https://github.com/twbs/bootstrap/issues/11586. + +input[type="search"] { + -webkit-appearance: none; +} + + // Special styles for iOS date input // // In Mobile Safari, date inputs require a pixel line-height that matches the // given height of the input. + input[type="date"] { line-height: @input-height-base; }