category info for topic list

main
psychobunny 9 years ago
parent 3d448d0a83
commit 658cc58d47

@ -3,16 +3,16 @@
padding-left: 0px; padding-left: 0px;
.posts-list-item { .posts-list-item {
@icon-diameter: 12px; @icon-radius: 14px;
width: 100%; width: 100%;
margin-bottom: 0px; margin-bottom: 0px;
.user-img { .user-img {
.user-icon-style(@icon-diameter * 2px, 1.5rem, 50%); .user-icon-style(@icon-radius * 2px, 1.5rem, 50%);
position: absolute; position: absolute;
top: 50%; top: 50%;
margin-top: -1 * @icon-diameter; margin-top: -1 * @icon-radius;
margin-left: -1 * @icon-diameter; margin-left: -1 * @icon-radius;
} }
a { a {
@ -27,6 +27,23 @@
color: @gray-dark; color: @gray-dark;
font-weight: 900; font-weight: 900;
font-size: 125%; font-size: 125%;
text-decoration: underline;
}
.topic-category {
text-transform: uppercase;
font-size: 10px;
color: lighten(@gray-base, 65%);
margin-top: 6px;
margin-right: 10px;
margin-bottom: 25px;
display: inline-block;
margin-top: 10px;
a {
font-weight: 900;
color: @gray-light;
}
} }
.content { .content {
@ -36,7 +53,8 @@
display: block; display: block;
overflow: hidden; overflow: hidden;
padding-right: 10px; padding-right: 10px;
margin-bottom: 30px; margin-top: 5px;
clear: both;
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
margin: 0; margin: 0;

@ -6,10 +6,13 @@
<a class="topic-title" href="{config.relative_path}/topic/{posts.topic.slug}/{posts.index}"> <a class="topic-title" href="{config.relative_path}/topic/{posts.topic.slug}/{posts.index}">
<!-- IF !posts.isMainPost -->RE: <!-- ENDIF !posts.isMainPost -->{posts.topic.title} <!-- IF !posts.isMainPost -->RE: <!-- ENDIF !posts.isMainPost -->{posts.topic.title}
</a> </a>
<div component="post/content" class="content"> <div component="post/content" class="content">
{posts.content} {posts.content}
</div> </div>
<small class="topic-category">[[global:posted_in, <a href="{config.relative_path}/category/{posts.category.slug}">{posts.category.name}</a>]]</small>
<div class="post-info"> <div class="post-info">
<a href="{config.relative_path}/user/{posts.user.userslug}"> <a href="{config.relative_path}/user/{posts.user.userslug}">
<!-- IF posts.user.picture --> <!-- IF posts.user.picture -->
@ -23,11 +26,6 @@
<a href="{config.relative_path}/user/{posts.user.userslug}">{posts.user.username}</a><br /> <a href="{config.relative_path}/user/{posts.user.userslug}">{posts.user.username}</a><br />
<span class="timeago" title="{posts.relativeTime}"></span> <span class="timeago" title="{posts.relativeTime}"></span>
</div> </div>
</div>
<div class="post-meta">
</div> </div>
</div> </div>
</li> </li>

Loading…
Cancel
Save