diff options
author | luxagraf <sng@luxagraf.net> | 2019-11-05 11:24:59 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-11-05 11:24:59 -0500 |
commit | 3005097a5e8871a46e7e8f87dd2d4c9766686cdf (patch) | |
tree | 943a625623d04248905f74774f7bd1d8c4c19b20 | |
parent | b1057c9dc9ff6b6e1786d31e3401ad9571eb7f1d (diff) |
changed comment form border
-rw-r--r-- | design/sass/_comments.scss | 4 | ||||
-rw-r--r-- | design/templates/comments/form.html | 3 | ||||
-rw-r--r-- | design/templates/jrnl/entry_detail.html | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/design/sass/_comments.scss b/design/sass/_comments.scss index a7c68be..39c7930 100644 --- a/design/sass/_comments.scss +++ b/design/sass/_comments.scss @@ -75,7 +75,6 @@ .comment--form--wrapper { @include constrain_narrow(); - border-top: 3px double #efefef; p { font-family: $fancy_serif; } @@ -103,6 +102,9 @@ left: 1.2rem !important; } } +.comment-form-border{ + border-top: 3px double #efefef; +} .comment--form--header { margin-top: 2em; .hed { diff --git a/design/templates/comments/form.html b/design/templates/comments/form.html index d7e5ee3..eaebada 100644 --- a/design/templates/comments/form.html +++ b/design/templates/comments/form.html @@ -1,5 +1,4 @@ {% load comments i18n %} -<div class="comment--form--wrapper"> <div class="comment--form--header"> <p class="hed">Thoughts?</p> <p class="subhed">Please leave a reply:</p> @@ -23,4 +22,4 @@ </div> </form> <p style="font-size: 95%;"><strong>All comments are moderated</strong>, so you won’t see it right away. And please remember Kurt Vonnegut's rule: “god damn it, you’ve got to be kind.” You can use Markdown or HTML to format your comments. The allowed tags are <code><b>, <i>, <em>, <strong>, <a></code>. To create a new paragraph hit return twice. </p> -</div> + diff --git a/design/templates/jrnl/entry_detail.html b/design/templates/jrnl/entry_detail.html index fd7e05a..b676ba5 100644 --- a/design/templates/jrnl/entry_detail.html +++ b/design/templates/jrnl/entry_detail.html @@ -156,7 +156,9 @@ class="detail {%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%i <p class="comments--header">{{comment_count}} Comment{{ comment_count|pluralize }}</p> {% render_comment_list for object %} {%endif%} +<div class="comment--form--wrapper {%if comment_count > 0%}comment-form-border{%endif%}"> {% render_comment_form for object %} +</div> {% else %} <p class="comments--header" style="text-align: center">Sorry, comments have been disabled for this post.</p> {%endif%} |