From 23f051ccd6eb3f6964cd6a61d867e367381dd8d4 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> Date: Fri, 29 Jul 2011 02:35:16 +0200 Subject: [PATCH] redesigned search box --- core/css/styles.css | 3 ++- core/img/actions/search.png | Bin 0 -> 701 bytes core/templates/part.searchbox.php | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 core/img/actions/search.png diff --git a/core/css/styles.css b/core/css/styles.css index 48a36734e5..55e050b196 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -78,7 +78,8 @@ background: linear-gradient(top, #35537a 0%,#1d2d42 100%); /* W3C */ } #metanav li a img { vertical-align:middle; } /* SEARCH --------------------------------------------------------------------- */ -form.searchbox { display:inline; position:fixed; top:1em; right:10em; margin:0; padding:0; } +form.searchbox { display:inline; position:fixed; top:.9em; right:9em; margin:0; padding:0; } +input[type="search"] { font-size:1em; padding-left:2em; background:#eee url('../img/actions/search.png') .5em center no-repeat; } /* NAVIGATION ------------------------------------------------------------- */ #plugins { position:fixed; top:3.5em; float:left; width:15.7em; padding:0; z-index:0; } diff --git a/core/img/actions/search.png b/core/img/actions/search.png new file mode 100644 index 0000000000000000000000000000000000000000..bfedb80bb578838260c22fc96b2f80ab3d318dbf GIT binary patch literal 701 zcmV;u0z&<XP)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV00004b3#c}2nYxW zd<bNS00009a7bBm000fw000fw0YWI7cmMzZ8FWQhbW?9;ba!ELWdL_~cP?peYja~^ zaAhuUa%Y?FJQ@H10y;@VK~y-6rO{1j+F%$5@PFQ<5*$S0WYalOCRS`OLMjytBi&() zNiX7kA9Q1~(j9gX#t_Ob_T+Jc7NOvwlrYLDyJjF0r3nZ{Ryx)qeg)@fv><M<u#1CI zl@<2f-uHRlAJ3ncQWORMQ_T6p+}vD%5E270J-j+H4CB3`C|@Q4)ZYyvkw~25xMy~| z{Tj=%W&jur27OJ_+Pz-yU7=8rCIXR2B;a<tvkr&D9u9|_@p!xj0ForRipAoMR;#5| ztJTMaLSbYR1_1ni|FYF;b<EGt*VotAHvoJBfKVtTCX>l0rBdl8%d*P=UXBHLo?oD8 zni56vgQ}`q=lWZsC|*|-<vGvu3*#aX0I*mrR|p}HWw~^5K$hhaAp|y?jhzU1Jf2gU zrjgI*7cUOv^Z7-ZrZF=!(-;RZ01%Bv<&%?>2UAm1OR-q&)G&;X06+-2?{>SF7={7I zapiFUr6>vnLGW&FZob{y+w<wVu6H_}9{^yp*{*UN$5RwVwcG8lnx?Htl5{u%0DvF} z_xAVqAMWn%-m2H@7L&>Jdv<pAyU*v-x3{+gXJ=<jtyVkKbv?PWvvV*43=uDYy8t`@ zegQZDa9pWWo~G03JN<s2ZZsN4-EQ|)E|*hBfJr3?g0oyMzsY1Ww+Dj(-E20$^?JS6 z*=)8*{`ne!s;Z4(Fu1n5y878{HXAON%j<MHUjV~zyd+W;1Ys?aNEEGB>(5jw)xLCu j3vs3aJOZ$xs_O9{Z@l4Aj{;tE00000NkvXXu0mjfyJIfA literal 0 HcmV?d00001 diff --git a/core/templates/part.searchbox.php b/core/templates/part.searchbox.php index 19b089ef84..efce47ecd2 100644 --- a/core/templates/part.searchbox.php +++ b/core/templates/part.searchbox.php @@ -1,4 +1,3 @@ <form class="searchbox" action="<?php echo $_['searchurl']?>" method="post"> - <input type="text" name="query" value="<?php if(isset($_POST['query'])){echo $_POST['query'];};?>" class="prettybutton" /> - <input type="submit" value="<?php echo $l->t( 'Search' ); ?>" class="prettybutton" /> + <input type="search" name="query" value="<?php if(isset($_POST['query'])){echo $_POST['query'];};?>" class="prettybutton" /> </form> -- GitLab