]> source.dussan.org Git - nextcloud-server.git/commitdiff
redesigned search box
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Fri, 29 Jul 2011 00:35:16 +0000 (02:35 +0200)
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Fri, 29 Jul 2011 00:35:21 +0000 (02:35 +0200)
core/css/styles.css
core/img/actions/search.png [new file with mode: 0644]
core/templates/part.searchbox.php

index 48a36734e522446985e45932fa4ad79e517f655f..55e050b19620751ed9221288ab9402bbe01df346 100644 (file)
@@ -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 (file)
index 0000000..bfedb80
Binary files /dev/null and b/core/img/actions/search.png differ
index 19b089ef84fb769891e4e4c245edf886586606ed..efce47ecd245c5af5c1f9704a94bb542f2272629 100644 (file)
@@ -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>