Do not print the comments form (#1195)

Add `.page__comments-form` to "non-printing" selectors in print styles
This commit is contained in:
Lars Olesen 2017-08-22 20:46:18 +02:00 committed by Michael Rose
parent ded8afcc32
commit 2939d45ecc
2 changed files with 43 additions and 40 deletions

View file

@ -47,6 +47,7 @@
<!-- End static comments -->
<!-- Start new comment form -->
<div class="page__comments-form">
<h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h4>
<p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
<form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/{{ site.repository }}/{{ site.staticman.branch }}">
@ -86,6 +87,7 @@
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
</fieldset>
</form>
</div>
<!-- End new comment form -->
{% endif %}
</section>

View file

@ -228,6 +228,7 @@
.pagination,
.ads,
.page__footer,
.page__comments-form,
.author__avatar,
.author__content,
.author__urls-wrapper,