refactoring of post content

main
psychobunny 10 years ago
parent 2f970dd030
commit af2070e527

@ -41,12 +41,15 @@
.card { .card {
border-left: 4px solid #ccc; border-left: 4px solid #ccc;
padding-left: 20px;
text-align: left; text-align: left;
height: 53px; height: 53px;
margin-top: 2px; margin-top: 2px;
overflow: hidden; overflow: hidden;
> * {
padding-left: 20px;
}
img { img {
border-radius: 50%; border-radius: 50%;
width: 30px; width: 30px;
@ -66,6 +69,13 @@
small { small {
color: @gray-light; color: @gray-light;
} }
.post-content p {
display: none;
&:first-child {
display: inline-block;
}
}
} }
} }
} }

@ -4,7 +4,9 @@
<p> <p>
<strong>{categories.posts.user.username}</strong> <small class="timeago" title="{categories.posts.relativeTime}"></small> <strong>{categories.posts.user.username}</strong> <small class="timeago" title="{categories.posts.relativeTime}"></small>
</p> </p>
{categories.posts.content} <div class="post-content">
{categories.posts.content}
</div>
</div> </div>
<!-- ENDIF @first --> <!-- ENDIF @first -->
<!-- END posts --> <!-- END posts -->
Loading…
Cancel
Save