drime

French rhyme dictionary with web and CLI interface
git clone https://a3nm.net/git/drime/
Log | Files | Refs | README

commit 639963548e9c360b0a6409e243f80c43e9c3a3b8
parent a23dc86a9b4d0403370475da3098ae7d63bd7e0d
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 27 Dec 2011 17:33:21 +0100

fixed styling

Diffstat:
static/main.css | 15+++++++++++----
templates/page.html | 37+++++++++++++++++++++++++++++++++++++
templates/results.html | 33---------------------------------
3 files changed, 48 insertions(+), 37 deletions(-)

diff --git a/static/main.css b/static/main.css @@ -8,7 +8,6 @@ h1 { } #body { - padding: 1em; } h1 a, #about { @@ -20,6 +19,9 @@ header { background: black; overflow: auto; color: white; + width: 100%; + position: fixed; + top: 0; } #about a { @@ -88,10 +90,15 @@ header #query { } #result_header { - background: #dfd; + clear: both; + text-align: center; margin: 0; - padding: 0.3em; - border: 2px solid #CDCDCD; +} + +#body { + margin-top: 3em; + padding-left: 0.5em; + padding-right: 0.5em; } header form { diff --git a/templates/page.html b/templates/page.html @@ -62,6 +62,43 @@ /> </form> {% endif %} + + {% if result %} +<p id="result_header"> +{% if lang == 'fr' %} +Affichage de +{% else %} +Displaying +{% endif %} +{{ displayed }} +{% if lang == 'fr' %} +résultat{% if displayed > 1 %}s{% endif %} +{% else %} +result{% if displayed != 1 %}s{% endif %} +{% endif %} +{# results +{{ page * pagesize + 1 }} to {{ (page+1) * pagesize }} #} +{% if displayed < count %} +{% if lang == 'fr' %} +sur +{% else %} +of +{% endif %} +{{ count }} +{% if lang == 'fr' %} +{% if count != 1 %}résultats totaux{% else %}résultat total{% endif %} +{% else %} +{% if count != 1 %}total results{% else %}total result{% endif %} +{% endif %} +{% endif %} +{% if lang == 'fr' %} +pour&nbsp;: +{% else %} +for: +{% endif %} +<strong>{{ keys[0][-1] }}</strong></p> +{%endif%} + </header> <div id="body"> {% block body %} diff --git a/templates/results.html b/templates/results.html @@ -2,39 +2,6 @@ {% block body %} <div> -<p id="result_header"> -{% if lang == 'fr' %} -Affichage de -{% else %} -Displaying -{% endif %} -{{ displayed }} -{% if lang == 'fr' %} -résultat{% if displayed > 1 %}s{% endif %} -{% else %} -result{% if displayed != 1 %}s{% endif %} -{% endif %} -{# results -{{ page * pagesize + 1 }} to {{ (page+1) * pagesize }} #} -{% if displayed < count %} -{% if lang == 'fr' %} -sur -{% else %} -of -{% endif %} -{{ count }} -{% if lang == 'fr' %} -{% if count != 1 %}résultats totaux{% else %}résultat total{% endif %} -{% else %} -{% if count != 1 %}total results{% else %}total result{% endif %} -{% endif %} -{% endif %} -{% if lang == 'fr' %} -pour&nbsp;: -{% else %} -for: -{% endif %} -<strong>{{ keys[0][-1] }}</strong></p> <table id="results" class="tablesorter"> <thead> <tr>