Permalink
Browse files

adding a new css style, post_list for list of blog posts summaries on…

… a page
  • Loading branch information...
1 parent 70093d8 commit fa1959a981b392ea0a779655347dd5bc3166681d @oppianmatt oppianmatt committed Dec 16, 2009
Showing with 18 additions and 8 deletions.
  1. +1 −1 apps/basic/blog/templates/blog/post_list.html
  2. +17 −7 media/css/blog.css
@@ -25,7 +25,7 @@
{% for post in object_list %}
<div class="hr"><hr /></div>
{% get_comment_count for post as comment_count %}
- <div class="post">
+ <div class="post_list">
<a href="{{ post.get_absolute_url }}">
{% if post.thumb %}
<img src="{% version post.thumb.path 'blog' %}" class="thumb" alt="{{ post.title }}" style="float:right;" height="110" width="196" />
View
@@ -1,36 +1,46 @@
-.post h3 {
+.post_list h3
+{
font-weight:normal;
letter-spacing:-1px;
}
-.post a:hover h3 {
+.post_list a:hover h3
+{
text-decoration:underline;
}
-.post ul.post_info {
+.post ul.post_info,
+.post_list ul.post_info
+{
font-size:0.8em;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
padding-left:0;
}
-.post ul.post_info li {
+.post ul.post_info li,
+.post_list ul.post_info li
+{
background-position:0 0.2em;
background-repeat:no-repeat;
display:inline;
padding-left:18px;
}
-.post ul.post_info li.date {
+.post ul.post_info li.date
+.post_list ul.post_info li.date,
+{
background-image:url('../images/post.gif');
}
-.post ul.post_info li.comments {
+.post ul.post_info li.comments,
+.post_list ul.post_info li.comments
+{
background-image:url('../images/comments.gif');
margin-left:1.1em;
}
-div.post {
+div.post_list {
min-height:131px;
}

0 comments on commit fa1959a

Please sign in to comment.