Clean up package list search CSS

This commit is contained in:
rubenwardy 2018-05-21 14:56:00 +01:00
parent e5f61f2dc6
commit 47432ea7e4
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
4 changed files with 20 additions and 2 deletions

View File

@ -72,3 +72,13 @@
.pkg_wiz_1, .pkg_wiz_2 { .pkg_wiz_1, .pkg_wiz_2 {
display: none; display: none;
} }
.plsearchform {
padding: 0.5em;
}
.plsearchform p {
display: inline-block;
padding: 0;
margin: 0 0.75em;
}

View File

@ -20,6 +20,10 @@ main {
box-sizing: border-box; box-sizing: border-box;
} }
.clearboth {
clear: both;
}
header h1, header p, header form { header h1, header p, header form {
padding: 0 5px; padding: 0 5px;
margin-left: 0; margin-left: 0;

View File

@ -70,7 +70,7 @@
<li><a href="{{ url_for('user.login') }}">Sign in</a></li> <li><a href="{{ url_for('user.login') }}">Sign in</a></li>
{% endif %} {% endif %}
</ul> </ul>
<div style="clear:both;"></div> <div class="clearboth"></div>
</div> </div>
</nav> </nav>

View File

@ -5,10 +5,14 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<form method="get" action=""> <form method="get" action="" class="plsearchform">
{% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %} {% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %}
<input type="text" name="q" value="{{ query or ''}}" /> <input type="text" name="q" value="{{ query or ''}}" />
<input type="submit" value="Search" /> <input type="submit" value="Search" />
<p>
Found {{ packages | count }} packages.
</p>
</form> </form>
<aside class="box box_grey outsidecontainer"> <aside class="box box_grey outsidecontainer">