Commits

Yang Zhang committed de81860

make comment number center

  • Participants
  • Parent commits 872ef61

Comments (0)

Files changed (2)

File static/style.css

 .bottom-divider{
 border-bottom:1px solid #D4D4D4;
 }
+.bottom-divider:hover{
+border-bottom:1px solid #3A87AD;
+}
+
 
 .topic,.comment{
     padding: 10px 0 0 0;

File templates/macro/topiclist.html

             </div>
             <div class='muted span2 pull-right visit'>
                 <!--<small>评论数</small>-->
-                 评论数<a href='/topic/{{topic.id}}#{{topic.comments_number}}'><span class="badge badge-info pull-right">{{topic.comments_number}}</span></a>
+                  
+                <a href='/topic/{{topic.id}}#{{topic.comments_number}}'>
+                 <span class="badge badge-info pull-right" 
+                    style='margin-right: -{{3*(topic.comments_number|string|length-1)}}px;'>
+                    {{topic.comments_number}}
+                </span></a>
             
             </div>