diff --git a/css/freepost.css b/css/freepost.css index 8d7b49e..dea0fb2 100644 --- a/css/freepost.css +++ b/css/freepost.css @@ -16,8 +16,6 @@ img html, body { background-color: #fff; /* #f5f8fa; */ - color: #000; - font-family: Verdana; font-size: 1em; height: 100%; line-height: 1em; @@ -282,10 +280,11 @@ html, body word-wrap: break-word; } - /* Give the comment that's linked to in the URL location hash a lightyellow background color */ - .content > .post > .comments > a:target + .comment { - background-color: lightyellow; - } + /* Give the comment that's linked to in the URL location hash a lightyellow background color */ + .content > .post > .comments > .comment:target + { + background-color: lightyellow; + } /* User home page */ diff --git a/template/comment.twig b/template/comment.twig index df2fc38..558326a 100644 --- a/template/comment.twig +++ b/template/comment.twig @@ -1,10 +1,8 @@ {% if comments[parent_id] %} {% for comment in comments[parent_id] %} - {# Add an anchor link for this comment #} - - -
+ {# The id="" is used as anchor #} +
diff --git a/template/post.twig b/template/post.twig index 63bb243..11016af 100644 --- a/template/post.twig +++ b/template/post.twig @@ -35,17 +35,15 @@ {{ post.text|markdown|raw }}
- {# An anchor for where the comments section starts #} - - {% if user %}
{% endif %} - -
+ + {# id="" used as anchor #} +
{% include 'comment.twig' with { 'post': post, 'comments': comments,