aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicolas Gallagher <[email protected]>2012-01-19 21:02:00 +0000
committerNicolas Gallagher <[email protected]>2012-01-19 22:27:24 +0000
commit8825443d6e6ff28a97e092f46b42ec508e58cb05 (patch)
tree5b582c7ca699649956fa35eb050ac98f003a2174 /lib
parent25ac318d33329a0fb532d5f9ec922ad76d791959 (diff)
downloadbootstrap-8825443d6e6ff28a97e092f46b42ec508e58cb05.tar.xz
bootstrap-8825443d6e6ff28a97e092f46b42ec508e58cb05.zip
Remove search input cancel button in WebKit-OSX.
On input elements with a `type` of `search`, WebKit on OS X will display a cancel button after text has been entered. This can look ugly or be poorly position when you've added other styles to the input (especially additional padding).
Diffstat (limited to 'lib')
-rw-r--r--lib/reset.less5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/reset.less b/lib/reset.less
index 28638b6b3..8fe04d6d1 100644
--- a/lib/reset.less
+++ b/lib/reset.less
@@ -140,10 +140,11 @@ input[type="search"] { // Appearance in Safari/Chrome
-moz-box-sizing: content-box;
box-sizing: content-box;
}
-input[type="search"]::-webkit-search-decoration {
+input[type="search"]::-webkit-search-decoration,
+input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
}
textarea {
overflow: auto; // Remove vertical scrollbar in IE6-9
vertical-align: top; // Readability and alignment cross-browser
-} \ No newline at end of file
+}