From d5dc522dada359f37da74253b0c8c7dc83b265cf Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 10 Apr 2013 23:19:55 +0000 Subject: [PATCH] Twenty Thirteen: add fallback selectors for older browsers that don't understand `search` input elements. Fixes #23997, props obenland. git-svn-id: http://core.svn.wordpress.org/trunk@23961 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentythirteen/style.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index de613b9629..efd99de156 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -937,7 +937,8 @@ ul.nav-menu li:hover > ul, top: 1px; } -.site-header .searchform [type="search"] { +.site-header .searchform [type="search"], +.site-header .searchform [type="text"] { background-color: transparent; background-image: url(images/search-icon.png); background-position: 5px center; @@ -954,7 +955,8 @@ ul.nav-menu li:hover > ul, width: 0; } -.site-header .searchform [type="search"]:focus { +.site-header .searchform [type="search"]:focus, +.site-header .searchform [type="text"]:focus { background-color: #fff; border: 2px solid #c3c0ab; cursor: text; @@ -3185,7 +3187,8 @@ footer.entry-meta { (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) { - .site-header .searchform [type="search"] { + .site-header .searchform [type="search"], + .site-header .searchform [type="text"] { background-image: url(images/search-icon-2x.png); }