Difference between revisions of "MediaWiki:Searchbox"

From Culture.si
Line 1: Line 1:
<noinclude><div style="position:relative; height:40px; width:300px"></noinclude>
+
<noinclude><div style="width:{{#if:{{#cgi:width|}}|{{#cgi:width|}}px|100%}};height:{{{height|36}}}px; position:relative;background:silver"
{{#custom:raw|
+
></noinclude>{{#custom:raw|
<div style="position:absolute;top:0;left:0;width:100%;height:100%;background: #76B82A url(/en/images/thumb/c/ca/Culture.si_%28logo%29.svg/60px-Culture.si_%28logo%29.svg.png) top left no-repeat;"><form target="_top" action="http://www.culture.si/en/index.php?title=Special%3ASearch">
+
<form target="_top" action="http://www.culture.si/en/index.php?title=Special%3ASearch"><div style="position:absolute;top:0;left:0;width:100%;height:100%;background:#76B82A;padding:4px {{{height|36}}}px 4px {{{height|36}}}px;box-sizing:border-box"><a href="http://www.culture.si"><img src = "http://www.culture.si/en/images/thumb/7/74/Culture.si_%28icon2%29.svg/100px-Culture.si_%28icon2%29.svg.png" style="position:absolute;top:2px;left:2px;height:{{#expr:{{{height|36}}}-4}}px;width:{{#expr:{{{height|36}}}-4}}px;"></a><input name="search" style="width:100%;height:100%;border:none;margin:0;box-sizing:border-box;padding:0 6px;color:#4f4f4f" onfocus="this.value='';this.onfocus=null;" value="search culture.si"><button style="position:absolute;top:2px;right:2px;height:{{#expr:{{{height|36}}}-4}}px;width:{{#expr:{{{height|36}}}-4}}px;border:none;background:none;padding:0;margin:0" name="go"><img src="http://www.culture.si/en/images/9/95/Search.png" style="width:100%;height:100%"></button></div></form>
<input name="search" type="text" style="position:absolute;top:2px;left:62px;right:34px;bottom:2px;border:none;padding: 4px;color:#4f4f4f" value="search on culture.si..." onfocus="this.value='';this.onfocus=null;">
+
}}<noinclude></div></noinclude>
<input type="submit" name="go" style="position:absolute;top:2px;right:2px;width:30px;bottom:2px;border:none;background: #76B82A url(http://png-5.findicons.com/files/icons/1389/g5_system/32/toolbar_find.png) center no-repeat;cursor:pointer;color:transparent;font-size:8px;" value="Go">
 
</form>
 
</div>
 
}}
 
<noinclude></div></noinclude>
 

Revision as of 19:39, 23 May 2011