Merge with 9f809996c613ba183b5ec116628ad4ccc7029459
authorymh <ymh.work@gmail.com>
Mon, 26 Nov 2012 17:01:47 +0100
changeset 84 4507168941a4
parent 83 07c9aa7de765 (current diff)
parent 77 9f809996c613 (diff)
child 85 22e6ab16d7b7
Merge with 9f809996c613ba183b5ec116628ad4ccc7029459
--- a/src/hp/static/hp/css/common.css	Mon Nov 26 17:01:05 2012 +0100
+++ b/src/hp/static/hp/css/common.css	Mon Nov 26 17:01:47 2012 +0100
@@ -2,6 +2,10 @@
     font-family: OpenSans; background: url(../img/main-bg.png) repeat-x #f5f5f5;
 }
 
+input, textarea {
+    font-family: OpenSans;
+}
+
 .container {
     margin: 0 auto; width: 980px;
 }
@@ -15,7 +19,7 @@
 }
 
 h1 {
-    font-size: 22px; line-height: 40px;
+    font-size: 22px; line-height: 40px; float: left;
 }
 
 h1, h1 a {
@@ -31,6 +35,20 @@
     margin: 8px 0 5px; padding: 0 5px 5px; border-bottom: 1px solid #666;
 }
 
+.header form {
+    float: right; position: relative; margin: 8px 0;
+}
+
+.header input[type=search] {
+    width: 240px; line-height: 16px; font-size: 13px; border: 1px solid #CCCCCC; border-radius: 3px;
+    padding: 2px; margin: 0;
+}
+
+.header input[type=submit] {
+    position: absolute; top: 0; right: 0; border: none; margin: 0; padding: 0; text-indent: -9999px;
+    background: url(../img/search.png) transparent no-repeat center; width: 20px; height: 20px;
+}
+
 .clearer {
     clear:both;
 }
Binary file src/hp/static/hp/img/search.png has changed
--- a/src/hp/templates/hp/base.html	Mon Nov 26 17:01:05 2012 +0100
+++ b/src/hp/templates/hp/base.html	Mon Nov 26 17:01:47 2012 +0100
@@ -32,6 +32,10 @@
           <!--  HEADER  -->
             <div class="header row">
                 <h1><a href="{% url home %}" title="{% trans 'homepage' %}">{% trans 'Hyper<b>plateau</b>' %}</a></h1>
+                <form action="{% url home %}">
+                    <input type="search" name="search" placeholder="{% trans 'Search videos' %}"/>
+                    <input type="submit" value="{% trans 'Search' %}" />
+                </form>
             </div>
         {% block body %}