Browse Source

Display tags list vertically

Talha Mansoor 11 years ago
parent
commit
5f2a44e4c1
2 changed files with 7 additions and 2 deletions
  1. 5 0
      static/css/style.css
  2. 2 2
      templates/article.html

+ 5 - 0
static/css/style.css

@@ -24,6 +24,11 @@
     font-size: 0.8em;
 }
 
+.tags-in-article li {
+    line-height:28px;
+    float:none;
+}
+
 .article-content {
     text-align:justify;
     max-width:50em;

+ 2 - 2
templates/article.html

@@ -20,7 +20,7 @@
 </div>
 
 <div class="row-fluid">
-    <div class="span9 article-content">
+    <div class="span8 offset1 article-content">
         {{ article.content }}
     </div>
     <div class="span2 offset1">
@@ -46,7 +46,7 @@
         {% endif %}
         {% if article.tags %}
         <h4>Tags</h4>
-        <ul class="list-of-tags"> 
+        <ul class="list-of-tags tags-in-article"> 
             {% for tag in article.tags %}
             <li><a href="/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}
                 {% for aTag, tagged_articles in tags if aTag == tag %}