diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-21 14:56:00 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-21 14:56:00 +0100 |
commit | 47432ea7e4e7abda7021e3e125d6347fbe6534e0 (patch) | |
tree | 2405c639868c05a249292871d4fc13b68fb31ff5 | |
parent | e5f61f2dc6587c955d8a1203fb38eab44a969124 (diff) | |
download | cheatdb-47432ea7e4e7abda7021e3e125d6347fbe6534e0.tar.xz |
Clean up package list search CSS
-rw-r--r-- | app/scss/packages.scss | 10 | ||||
-rw-r--r-- | app/scss/page.scss | 4 | ||||
-rw-r--r-- | app/templates/base.html | 2 | ||||
-rw-r--r-- | app/templates/packages/list.html | 6 |
4 files changed, 20 insertions, 2 deletions
diff --git a/app/scss/packages.scss b/app/scss/packages.scss index 1d13547..2eafb42 100644 --- a/app/scss/packages.scss +++ b/app/scss/packages.scss @@ -72,3 +72,13 @@ .pkg_wiz_1, .pkg_wiz_2 { display: none; } + +.plsearchform { + padding: 0.5em; +} + +.plsearchform p { + display: inline-block; + padding: 0; + margin: 0 0.75em; +} diff --git a/app/scss/page.scss b/app/scss/page.scss index 708ec82..f87a996 100644 --- a/app/scss/page.scss +++ b/app/scss/page.scss @@ -20,6 +20,10 @@ main { box-sizing: border-box; } +.clearboth { + clear: both; +} + header h1, header p, header form { padding: 0 5px; margin-left: 0; diff --git a/app/templates/base.html b/app/templates/base.html index 50cf3ef..f2ece29 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -70,7 +70,7 @@ <li><a href="{{ url_for('user.login') }}">Sign in</a></li> {% endif %} </ul> - <div style="clear:both;"></div> + <div class="clearboth"></div> </div> </nav> diff --git a/app/templates/packages/list.html b/app/templates/packages/list.html index 79426fd..d516f2c 100644 --- a/app/templates/packages/list.html +++ b/app/templates/packages/list.html @@ -5,10 +5,14 @@ {% endblock %} {% block content %} - <form method="get" action=""> + <form method="get" action="" class="plsearchform"> {% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %} <input type="text" name="q" value="{{ query or ''}}" /> <input type="submit" value="Search" /> + + <p> + Found {{ packages | count }} packages. + </p> </form> <aside class="box box_grey outsidecontainer"> |