more styling for post list

main
psychobunny 9 years ago
parent 491d249f6c
commit 5d11a37336

@ -23,13 +23,20 @@
} }
} }
.topic-title {
color: @gray-dark;
font-weight: 900;
font-size: 125%;
}
.content { .content {
max-height: 250px; max-height: 240px;
position: relative; position: relative;
clear: left; clear: left;
display: block; display: block;
overflow: hidden; overflow: hidden;
padding-right: 10px; padding-right: 10px;
margin-bottom: 30px;
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
margin: 0; margin: 0;
@ -41,6 +48,10 @@
margin: 8px 0; margin: 8px 0;
padding: 0 10px; padding: 0 10px;
} }
p {
margin: 0 0 2px;
}
} }
.post-body { .post-body {
@ -57,9 +68,9 @@
margin-top: -14px; margin-top: -14px;
font-size: 10px; font-size: 10px;
.post-meta { .post-author {
padding-left: 28px; padding-left: 25px;
color: #aaa; color: lighten(@gray-base, 65%);
a { a {
color: @gray-light; color: @gray-light;

@ -2,10 +2,10 @@
<!-- BEGIN posts --> <!-- BEGIN posts -->
<li component="post" class="posts-list-item row" data-pid="{posts.pid}" data-uid="{posts.uid}"> <li component="post" class="posts-list-item row" data-pid="{posts.pid}" data-uid="{posts.uid}">
<div class="col-xs-9 post-body"> <div class="col-lg-11 col-sm-10 col-xs-9 post-body">
<strong><a href="{config.relative_path}/topic/{posts.topic.slug}/{posts.index}">{posts.topic.title}</a></strong> <a class="topic-title" href="{config.relative_path}/topic/{posts.topic.slug}/{posts.index}">{posts.topic.title}</a>
<div component="post/content" class="content"> <div component="post/content" class="content">
<p>{posts.content}</p> {posts.content}
</div> </div>
<div class="post-info"> <div class="post-info">
@ -17,15 +17,16 @@
<!-- ENDIF posts.user.picture --> <!-- ENDIF posts.user.picture -->
</a> </a>
<div class="post-meta"> <div class="post-author">
<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>
</div>
<div class="col-xs-3"> <div class="post-meta">
<!--<a href="{config.relative_path}/category/{posts.category.slug}">{posts.category.name}</a><br />-->
</div>
</div> </div>
</li> </li>
<!-- END posts --> <!-- END posts -->

Loading…
Cancel
Save