From 394580ed5100e13f2fb2ca2c91586cc1aa65a484 Mon Sep 17 00:00:00 2001 From: vaishk Date: Sat, 23 Dec 2017 02:50:19 +0530 Subject: [PATCH] search bar --- camp/static/css/main.css | 28 +++++++++++++++++++ content/templates/base.html | 4 ++- content/templates/featured.html | 2 +- .../templates/photologue/photo_detail.html | 4 +-- content/templates/preview.html | 2 +- 5 files changed, 35 insertions(+), 5 deletions(-) diff --git a/camp/static/css/main.css b/camp/static/css/main.css index 1ab0e19..50d8290 100644 --- a/camp/static/css/main.css +++ b/camp/static/css/main.css @@ -25,6 +25,7 @@ body, h1, h2, h3, h4, h5, h6 { text-transform: uppercase; font-size: 14px; color: #ffffff; + padding-top: 20px; } .sidebar-title { @@ -155,3 +156,30 @@ ul.clearing-thumbs li { table thead, table tbody, table tfoot { background-color: #000; } + + +.search-form[type=search] { + width: 15rem; + border: 0.125rem solid #e6e6e6; + box-shadow: 0 0 3.125rem rgba(0, 0, 0, 0.18); + border-radius: 0; + background-image: url("http://media.yardhouse.com/images/site/searchicon.png"); + background-position: 4px center; + background-repeat: no-repeat; + background-color: #111111; + padding-left: 30px; + position: absolute; + color: #ffffff !important; + font-size: 10px !important; + top: 13px; + right: 110px; + height: 25px; + padding-top: 0; + padding-bottom: 0; + font-weight: 600; +} + + + + + diff --git a/content/templates/base.html b/content/templates/base.html index ee51b2f..bab1482 100644 --- a/content/templates/base.html +++ b/content/templates/base.html @@ -35,7 +35,9 @@ - +
+ +
{% block content %} {% endblock %} diff --git a/content/templates/featured.html b/content/templates/featured.html index 259f88c..a9b1ab4 100644 --- a/content/templates/featured.html +++ b/content/templates/featured.html @@ -1,7 +1,7 @@ {% for content in featured %}
{% if content.image %} - + {% endif %}

{{content.title}}

diff --git a/content/templates/photologue/photo_detail.html b/content/templates/photologue/photo_detail.html index 2502ec8..771992c 100644 --- a/content/templates/photologue/photo_detail.html +++ b/content/templates/photologue/photo_detail.html @@ -10,7 +10,7 @@ {% if gallery.content.exists %} {% endif %} -
From gallery {{ gallery.title }}
+
{{ gallery.title }}
    {% for photo.pk in gallery.public %}
  • @@ -29,7 +29,7 @@
{% if object.public_galleries %} -

{% trans "Other photos in the gallery" %}:

+

{% trans "Other photos" %}:

{% for photo in gallery.public %} diff --git a/content/templates/preview.html b/content/templates/preview.html index 7ab050d..363e2a4 100644 --- a/content/templates/preview.html +++ b/content/templates/preview.html @@ -2,7 +2,7 @@
{% if content.image_url %} - + {% endif %}