From: Frédéric Perrin Date: Sun, 2 Oct 2016 22:17:10 +0000 (+0000) Subject: Improve presentation of individual quotes X-Git-Url: http://gitweb.fperrin.net/?p=djsite.git;a=commitdiff_plain;h=471c53df73726601ffdbefc3f709ab5b6cb381ff Improve presentation of individual quotes --- diff --git a/quotes/static/quotes/style.css b/quotes/static/quotes/style.css index a32d644..6898422 100644 --- a/quotes/static/quotes/style.css +++ b/quotes/static/quotes/style.css @@ -1,6 +1,7 @@ body { color: black; - background-color: white; + background-color: #d6d6d6; + font-family: Calibri, sans-serif; } a { color: black; } @@ -10,14 +11,15 @@ a:hover { } .quote { - background-color: #ffbd33; - border: 3px solid #ff5733; + background-color: #fccb51; + border: 7px solid darkorange; + border-radius: 15px; padding: 1.5em 2em; margin: 2em 30em; } .quote .author { - padding-left: 5em; + text-align: right; } .quote .author .name { @@ -33,3 +35,8 @@ a:hover { /* displayed through Javascript */ display: none; } + +.tag_link { + font-weight: bold; + text-decoration: none; +} diff --git a/quotes/templates/quotes/display.html b/quotes/templates/quotes/display.html index 8901085..2b1f03c 100644 --- a/quotes/templates/quotes/display.html +++ b/quotes/templates/quotes/display.html @@ -28,10 +28,10 @@

Tags: {% for tag in quote.tags.all %} - - {{ tag.tag }} - - {% endfor %} + {{ tag.tag }}{% if not forloop.last %}, {% endif %} + {% endfor %}

{% endif %}