Skip to content

Node.js based forum software built for the modern web

refactored post-block

psychobunny678db837fd26
diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl
index 624c233416..a39d1967f2 100644
--- a/public/templates/topic.tpl
+++ b/public/templates/topic.tpl
@@ -62,7 +62,7 @@
<!-- END uploadedImages -->
</div>
<div class="post-signature">{main_posts.signature}</div>
- <div class="profile-block">
+ <div class="post-info">
<span class="pull-right">
posted <span class="relativeTimeAgo">{main_posts.relativeTime} ago</span>
<span class="{main_posts.edited-class}">| last edited by <strong><a href="/users/{main_posts.editorslug}">{main_posts.editorname}</a></strong> {main_posts.relativeEditTime} ago</span>
@@ -122,7 +122,7 @@
<!-- END uploadedImages -->
</div>
<div class="post-signature">{posts.signature}</div>
- <div class="profile-block">
+ <div class="post-info">
<span class="pull-right">
posted <span class="relativeTimeAgo">{posts.relativeTime} ago</span>
<span class="{posts.edited-class}">| last edited by <strong><a href="/users/{posts.editorslug}">{posts.editorname}</a></strong> {posts.relativeEditTime} ago</span>
diff --git a/public/themes/cerulean/topic.less b/public/themes/cerulean/topic.less
index 54779eb26d..f58b6a58f5 100644
--- a/public/themes/cerulean/topic.less
+++ b/public/themes/cerulean/topic.less
@@ -35,16 +35,17 @@
}
}
- .profile-block {
- background: rgba(0, 0, 0, 0.02);
- margin: 15px -11px -11px -11px;
- border-radius: 0 0 5px 5px;
- font-size: 10px;
- line-height: 15px;
- padding: 5px 8px 5px 5px;
- color: #777;
+ .main-post, .sub-posts {
+ .post-info {
+ background: rgba(0, 0, 0, 0.02);
+ margin: 15px -11px -11px -11px;
+ border-radius: 0 0 5px 5px;
+ font-size: 10px;
+ color: #777;
+ }
}
+
.active-users {
color: rgb(153,153,153);
}
diff --git a/public/themes/vanilla/topic.less b/public/themes/vanilla/topic.less
index eaa3e6825f..17d6b79d53 100644
--- a/public/themes/vanilla/topic.less
+++ b/public/themes/vanilla/topic.less
@@ -42,10 +42,10 @@
}
.main-post, .sub-posts {
- .profile-block, .post-block {
+ .post-info, .post-block {
position: relative;
border: 1px solid rgba(0, 0, 0, 0.06);
- border-radius: 5px;
+ border-radius: 0 0 5px 5px;
padding: 10px;
.post-signature {
@@ -64,6 +64,8 @@
}
.post-block {
+ border-radius: 5px;
+
.topic-buttons {
background: rgba(0, 0, 0, 0.02);
border: 1px solid rgba(0, 0, 0, 0.06);