]> gitweb.fperrin.net Git - djsite.git/commitdiff
Improve presentation of individual quotes
authorFrédéric Perrin <frederic.perrin@resel.fr>
Sun, 2 Oct 2016 22:17:10 +0000 (22:17 +0000)
committerFrédéric Perrin <frederic.perrin@resel.fr>
Sun, 2 Oct 2016 22:17:10 +0000 (22:17 +0000)
quotes/static/quotes/style.css
quotes/templates/quotes/display.html

index a32d644a5974cc8f842f61d5b190738589510c1a..6898422c211255b696c03672593501c7a5c26ca4 100644 (file)
@@ -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;
+}
index 89010857aba943beb62d6a2f3ff65b904e437a99..2b1f03c31a0881fd7cba983bbb4f8447ef65f339 100644 (file)
       <p class="tags">
        Tags:
        {% for tag in quote.tags.all %}
-       <a href="{% url 'quotes:tags' tag.id %}" class="tag_link">
-         {{ tag.tag }}
-       </a>
-       {% endfor %}
+         <a href="{% url 'quotes:tags' tag.id %}" class="tag_link"
+           >{{ tag.tag }}</a
+           >{% if not forloop.last %}, {% endif %}
+        {% endfor %}
       </p>
       {% endif %}