mirror of
https://github.com/djohnlewis/stackdump
synced 2024-12-04 23:17:37 +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:
parent
6511759213
commit
68e5e17f74
@ -126,7 +126,7 @@
|
||||
|
||||
.post-stat {
|
||||
text-align: center;
|
||||
background-color: #CCCCCC;
|
||||
background-color: #F2F2F2;
|
||||
margin-bottom: 2px;
|
||||
padding: 4px 3px;
|
||||
}
|
||||
@ -141,10 +141,19 @@
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.post-stat-value-poor {
|
||||
color: #AAAAAA;
|
||||
}
|
||||
|
||||
.post-summary {
|
||||
padding-left: 72px; /* 64px for post-stats-vertical + 8px for padding */
|
||||
}
|
||||
|
||||
.post-summary h3 {
|
||||
line-height: normal;
|
||||
padding: 7px 0;
|
||||
}
|
||||
|
||||
.post-details {
|
||||
float: right;
|
||||
}
|
||||
|
@ -25,11 +25,15 @@
|
||||
<li>
|
||||
<div class="post-stats-vertical">
|
||||
<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>
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user