Explorar el Código

Changes search page and tipuesearch css

Talha Mansoor hace 12 años
padre
commit
1876c396c5
Se han modificado 2 ficheros con 17 adiciones y 63 borrados
  1. 0 35
      static/tipuesearch/tipuesearch.css
  2. 17 28
      templates/search.html

+ 0 - 35
static/tipuesearch/tipuesearch.css

@@ -12,41 +12,6 @@ em
      font: inherit; 
      font-weight: 400;   
 }
-#tipue_search_input
-{
-     font: 13px/1.5 'open sans', sans-serif;
-	color: #333;
-	padding: 7px;
-	margin: 0;
-	width: 160px;
-	border: 1px solid #d3d3d3;
-	border-radius: 2px;
-	-moz-appearance: none;
-	-webkit-appearance: none;
-	outline: none;
-}
-#tipue_search_input:focus
-{
-     border-color: #c3c3c3;
-     box-shadow: 0 0 3px rgba(0,0,0,.2);     
-}
-#tipue_search_button
-{
-     width: 60px;
-     height: 33px;
-     margin-top: 1px;
-     border: 1px solid #dcdcdc;
-     border-radius: 2px;
-     background: #f1f1f1 url('img/search.gif') no-repeat center;
-	outline: none;
-}
-#tipue_search_button:hover
-{
-	border: 1px solid #c3c3c3;
-	-moz-box-shadow: 1px 1px 2px #e3e3e3;
-	-webkit-box-shadow: 1px 1px 2px #e3e3e3;
-	box-shadow: 1px 1px 2px #e3e3e3;
-}
 
 #tipue_search_content
 {

+ 17 - 28
templates/search.html

@@ -1,34 +1,20 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+{% extends "base.html" %}
 
-<html>
-<head>
-    <title>Tipue Search Live Mode</title>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
-<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+{% block title %}
+Search - {{ super() }}
+{% endblock title %}
 
+{% block head %}
+{{ super() }}
 <link href="http://fonts.googleapis.com/css?family=Lato:300,400|Open+Sans:300,400" rel="stylesheet" type="text/css">
-<link rel="stylesheet" type="text/css" href="../../example.css">
-
-<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
-
-<script type="text/javascript" src="tipuesearch/tipuesearch_set.js"></script>
-<link rel="stylesheet" type="text/css" href="tipuesearch/tipuesearch.css">
-<script type="text/javascript" src="tipuesearch/tipuesearch.js"></script>
-
-</head>
-<body>
-
-<div class="block" style="padding-top: 30px;"><a href="http://www.tipue.com"><img src="../../img/head.png" class="light_image" style="width: 76px; height: 42px;" alt="Tipue"></a></div>
+<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/tipuesearch/tipuesearch.css">
+{% endblock head %}
 
-<div class="block" style="padding-top: 31px;">
-
-<div style="float: left;"><input type="text" id="tipue_search_input"></div>
-<div style="float: left; margin-left: 13px;"><input type="button" id="tipue_search_button"></div>
-<div id="tipue_search_content"></div>
-
-</div>
 
+{% block script %}
+<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
+<script type="text/javascript" src="{{ SITEURL }}/theme/tipuesearch/tipuesearch_set.js"></script>
+<script type="text/javascript" src="{{ SITEURL }}/theme/tipuesearch/tipuesearch.js"></script>
 <script>
 $(document).ready(function() {
      $('#tipue_search_input').tipuesearch({
@@ -37,6 +23,9 @@ $(document).ready(function() {
      });
 });
 </script>
+{% endblock script %}
 
-</body>
-</html>
+{% block content %}
+<article>
+<div id="tipue_search_content"></div>
+{% endblock content %}