diff --git a/frappe/public/scss/website/blog.scss b/frappe/public/scss/website/blog.scss index 3cabf181c9..e599210435 100644 --- a/frappe/public/scss/website/blog.scss +++ b/frappe/public/scss/website/blog.scss @@ -1,5 +1,6 @@ :root { - --comment-timeline-height: 60px; + --comment-timeline-bottom: 60px; + --comment-timeline-top: 8px; } .blog-list { @@ -102,26 +103,54 @@ } - .feedback-button svg, .comment-count svg { + .feedback-item svg { vertical-align: sub; } .blog-feedback { - .feedback-header { - display: flex; - justify-content: space-between; + display: flex; - .like-dislike { - display: flex; + .like-icon { + cursor: pointer; - .like-icon, .dislike-icon { - cursor: pointer; - } + &.gray use { + fill: var(--gray-600); + stroke: none; } } } + .add-comment-button { + margin-left: 35px; + } + + .timeline-dot { + width: 16px; + height: 16px; + border-radius: 50%; + position: absolute; + top: 8px; + left: 22px; + background-color: var(--fg-color); + border: 1px solid var(--dark-border-color); + + &:before { + content: ' '; + background: var(--gray-600); + position: absolute; + top: 5px; + left: 5px; + border-radius: 50%; + height: 4px; + width: 4px; + } + } + .blog-comments { + .comment-form-wrapper { + display: none; + } + .add-comment-section { .login-required { padding: var(--padding-sm); @@ -160,13 +189,12 @@ #comment-list { position: relative; padding-left: var(--padding-xl); - padding-top: var(--padding-lg); - &::before { + &:before { content: " "; - top: 0; position: absolute; - bottom: var(--comment-timeline-height); + top: var(--comment-timeline-top); + bottom: var(--comment-timeline-bottom); border-left: 1px solid var(--dark-border-color); } diff --git a/frappe/templates/includes/comments/comment.html b/frappe/templates/includes/comments/comment.html index 3ce5224db2..e0fc1c3c54 100644 --- a/frappe/templates/includes/comments/comment.html +++ b/frappe/templates/includes/comments/comment.html @@ -1,6 +1,6 @@ {% from "frappe/templates/includes/avatar_macro.html" import avatar %} -
+
{{ avatar(user_id=(comment.comment_email or comment.sender), size='avatar-medium') }}
diff --git a/frappe/templates/includes/comments/comments.html b/frappe/templates/includes/comments/comments.html index c0bb33fd38..8a9058bb4d 100644 --- a/frappe/templates/includes/comments/comments.html +++ b/frappe/templates/includes/comments/comments.html @@ -1,33 +1,35 @@
{% if not comment_list %}
-

{{ _("No comments yet. Start a new discussion.") }}

+

{{ _("No comments yet. ") }} + + +

{% endif %} {% if not is_communication %} -
- +
-
Add a comment
+
{{ _("Add a comment") }}
-
Ctrl+Enter to add comment
+
{{ _("Ctrl+Enter to add comment") }}
@@ -37,77 +39,109 @@
{% endif %} +
+
- {% for comment in comment_list %} - {% include "templates/includes/comments/comment.html" %} - {% endfor %} +
+
+ +
+
+ {% for comment in comment_list %} + {% include "templates/includes/comments/comment.html" %} + {% endfor %} +