1
0
mirror of https://github.com/djohnlewis/stackdump synced 2025-04-07 10:13:27 +00:00

Minor CSS fixes to make positively voted questions stand out and fixed line height issue with long titles.

This commit is contained in:
Samuel Lai 2012-02-04 17:10:22 +11:00
parent 6511759213
commit 68e5e17f74
2 changed files with 16 additions and 3 deletions
python
media/css
src/stackdump/templates

@ -126,7 +126,7 @@
.post-stat { .post-stat {
text-align: center; text-align: center;
background-color: #CCCCCC; background-color: #F2F2F2;
margin-bottom: 2px; margin-bottom: 2px;
padding: 4px 3px; padding: 4px 3px;
} }
@ -141,10 +141,19 @@
color: #000000; color: #000000;
} }
.post-stat-value-poor {
color: #AAAAAA;
}
.post-summary { .post-summary {
padding-left: 72px; /* 64px for post-stats-vertical + 8px for padding */ padding-left: 72px; /* 64px for post-stats-vertical + 8px for padding */
} }
.post-summary h3 {
line-height: normal;
padding: 7px 0;
}
.post-details { .post-details {
float: right; float: right;
} }

@ -25,11 +25,15 @@
<li> <li>
<div class="post-stats-vertical"> <div class="post-stats-vertical">
<div class="post-stat"> <div class="post-stat">
<p class="post-stat-value">{{ r.question.score }}</p> <p class="post-stat-value {% if r.question.score < 0 %}post-stat-value-poor{% endif %}">
{{ r.question.score }}
</p>
<p>vote{% if r.question.score != 1 %}s{% endif %}</p> <p>vote{% if r.question.score != 1 %}s{% endif %}</p>
</div> </div>
<div class="post-stat"> <div class="post-stat">
<p class="post-stat-value">{{ r.answers|length }}</p> <p class="post-stat-value {% if r.answers|length == 0 %}post-stat-value-poor{% endif %}">
{{ r.answers|length }}
</p>
<p>answer{% if r.answers|length != 1 %}s{% endif %}</p> <p>answer{% if r.answers|length != 1 %}s{% endif %}</p>
</div> </div>
</div> </div>