Commit 7b7ad3d8 by Tom Giannattasio

new paragraph styles for comments

parent 0ad3e8a7
...@@ -1508,16 +1508,20 @@ body.discussion { ...@@ -1508,16 +1508,20 @@ body.discussion {
} }
p { .response-body {
font-size: 13px; font-size: 13px;
padding: 10px 20px; padding: 10px 20px;
.posted-details { p + p {
font-size: 11px; margin-top: 12px;
white-space: nowrap;
} }
} }
.posted-details {
margin: 0 20px 10px;
font-size: 11px;
}
.staff-label { .staff-label {
margin-left: 2px; margin-left: 2px;
padding: 0 4px; padding: 0 4px;
...@@ -1529,10 +1533,6 @@ body.discussion { ...@@ -1529,10 +1533,6 @@ body.discussion {
color: white; color: white;
text-transform: uppercase; text-transform: uppercase;
} }
.posted-details {
margin-left: 8px;
}
} }
.comment-form { .comment-form {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div class="response-body">${reply['body']}</div> <div class="response-body">${reply['body']}</div>
<ol class="comments"> <ol class="comments">
% for comment in reply.get("children", []): % for comment in reply.get("children", []):
<li><p>${comment['body']}</p></li> <li><div class="comment-body">${comment['body']}</div></li>
% endfor % endfor
</ol> </ol>
</li> </li>
......
...@@ -116,13 +116,15 @@ ...@@ -116,13 +116,15 @@
</script> </script>
<script type="text/template" id="response-comment-show-template"> <script type="text/template" id="response-comment-show-template">
<p id="comment_${'<%- id %>'}"> <div id="comment_${'<%- id %>'}">
${'<% if (deep) {%>'} ${'<% if (deep) {%>'}
<a href="#comment_${'<%- parent_id %>'}">@${'<%- parent_username %>'}</a>: <a href="#comment_${'<%- parent_id %>'}">@${'<%- parent_username %>'}</a>:
${'<% }%>'} ${'<% }%>'}
<span class="response-body">${'<%- body %>'}</span> <div class="response-body">
<span class="posted-details">&ndash;posted <span class="timeago" title="${'<%- created_at %>'}">${'<%- created_at %>'}</span> by <a href="${'<%- user_url %>'}" class="profile-link">${'<%- username %>'}</a></span> ${'<%- body %>'}
</p> </div>
<p class="posted-details">&ndash;posted <span class="timeago" title="${'<%- created_at %>'}">${'<%- created_at %>'}</span> by <a href="${'<%- user_url %>'}" class="profile-link">${'<%- username %>'}</a></p>
</div>
</script> </script>
<script type="text/template" id="thread-list-item-template"> <script type="text/template" id="thread-list-item-template">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment