tags = kwargs.pop('tags', [])
super(SearchForm, self).__init__(*args, **kwargs)
self.fields['q'].widget.attrs['title'] = _('title, author, theme/topic, epoch, kind, genre')
- self.fields['q'].widget.attrs['style'] = 'float: left; width: 200px; border: medium none; height: 15px; margin-top: 2px;'
+ #self.fields['q'].widget.attrs['style'] = ''
self.fields['tags'].initial = '/'.join(tag.slug for tag in Tag.get_tag_list(tags))
margin: 0.5em 0;
padding: 0.5em;
background-color: rgb(132, 191, 42);
+}
+
+#searchContainer {
+ width: 100%;
+ min-height: 65px;
+ background-color: rgb(132, 191, 42);
+ padding: 0px 5px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
border-right: 0.15em solid #7B9C2D;
}
+#searchContainer #search-form {
+ padding: 0;
+ margin: 0;
+}
+
#search-form p {
margin: 0em 0 0 0;
}
}
.ac_input {
- width: 18em;
+ width: 300px;
+ border: 0;
}
p .ac_input {
width: 28em;
}
-
+#searchSubmit {
+ float: left;
+ margin-top: 10px;
+ height: 33px;
+}
/* ================== */
/* = Search matches = */
/* ================== */
{% load i18n %}
{% load catalogue_tags %}
-<form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form" style="float:left;">
- <div style="width: 900px;">
+<div id="searchContainer">
+ <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
<ul class="facelist-selections" style="float:left;">
{% for tag in tag_list %}
<li class="facelist-selection-item">
- <span style="margin-left: 5px;">
- <a href="{% catalogue_url tag %}">{{ tag }}</a>
- <a class="facelist-close" href="{% catalogue_url tag_list -tag %}">x</a>
- </span>
- </li>
+ <span style="margin-left: 5px;">
+ <a href="{% catalogue_url tag %}">{{ tag }}</a>
+ <a class="facelist-close" href="{% catalogue_url tag_list -tag %}">x</a>
+ </span>
+ </li>
{% empty %}
- <li class="facelist-selection-item">
- </li>
+ <li class="facelist-selection-item">
+ </li>
{% endfor %}
{% if search_form %}
<li>{{ search_form.q }} {{ search_form.tags }}</li>
{% endif %}
</ul>
- <input type="submit" value="{% trans "Search" %}" style="float: left; margin-top: 10px; height: 33px;"/>
- </div>
-</form>
+ <input type="submit" value="{% trans "Search" %}" id="searchSubmit"/>
+ </form>
+</div>
<div class="clearboth"></div>