Comments: improve appearance

This commit is contained in:
Rico Sta. Cruz 2017-09-02 03:51:45 +08:00
parent 0f10ef2979
commit 7e7f71bb96
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
4 changed files with 17 additions and 16 deletions

View File

@ -3,7 +3,7 @@
<details class='comments-details'>
<summary>
<strong class='count'>
<span class='disqus-comment-count' data-disqus-url='{{ site.url }}{{ include.page.url | remove: '.html' }}#disqus_thread'></span>
<span class='disqus-comment-count' data-disqus-url='{{ site.url }}{{ include.page.url | remove: '.html' }}#disqus_thread'>Comments</span>
</strong>
</summary>
<div class='comments-section'>
@ -17,4 +17,3 @@
</section>
<script id='dsq-count-scr' src='//{{ site.disqus_host }}/count.js' async></script>

View File

@ -26,12 +26,12 @@ type: article
</main>
</div>
<div class='pre-footer'><i class='icon'></i></div>
{% if site.disqus_host %}
{% include 2017/comments-area.html page=page %}
{% endif %}
<div class='pre-footer'><i class='icon'></i></div>
{% include 2017/search-footer.html %}
{% include 2017/related-posts.html page=page %}
{% include 2017/foot.html %}

View File

@ -4,13 +4,23 @@
.comments-area {
& {
margin: 32px 0;
margin: 32px 0 16px 0;
}
// Container
& > .container {
@include gutter(padding-left);
@include gutter(padding-right);
max-width: $area-width;
margin: 0 auto;
}
// Horizontal line
& > .container::before {
content: '';
display: block;
background: linear-gradient(to right, $dark-line-color 50%, transparent);
margin-bottom: 16px;
height: 1px;
}
}

View File

@ -7,15 +7,7 @@
margin-bottom: 16px;
white-space: nowrap;
cursor: pointer;
color: $base-text;
}
& > summary::after {
content: '';
display: block;
background: linear-gradient(to right, $dark-line-color 50%, transparent);
margin-top: 16px;
height: 1px;
color: $base-head;
}
& > summary:hover,
@ -25,7 +17,7 @@
& > summary > strong {
@include font-size(1);
font-weight: normal;
font-weight: bold;
}
& > summary > strong::before {