From 9a97995f181c13c225f62b1b582f6bf802dd6578 Mon Sep 17 00:00:00 2001 From: Abijeet Date: Thu, 25 May 2017 08:04:19 +0530 Subject: [PATCH] #47 Displays the time for comments and border bottom for sub comments. --- resources/assets/sass/_comments.scss | 44 +++++++++++++------- resources/views/comments/list-item.blade.php | 15 ++++--- 2 files changed, 38 insertions(+), 21 deletions(-) diff --git a/resources/assets/sass/_comments.scss b/resources/assets/sass/_comments.scss index 7da319025..7d7cb486a 100644 --- a/resources/assets/sass/_comments.scss +++ b/resources/assets/sass/_comments.scss @@ -2,49 +2,63 @@ .comment-box { border-bottom: 1px solid $comment-border; } - + .comment-box:last-child { border-bottom: none; } + .load-more-comments { + font-size: 0.8em; + margin-top: -1px; + margin-bottom: 6px; + } } -.page-comment { +.page-comment { .comment-container { margin-left: 42px; } - + .comment-actions { - font-size: 0.8em; - padding-bottom: 4px; + font-size: 0.8em; + padding-bottom: 2px; + ul { padding-left: 0px; - margin-bottom: 5px; + margin-bottom: 2px; } li { float: left; list-style-type: none; } - + li:after { content: '•'; color: #707070; padding: 0 5px; font-size: 1em; } - + li:last-child:after { content: none; } } - + + .comment-actions.has-border { + border-bottom: 1px solid #DDD; + } + + .comment-actions.has-border:last-child { + border-bottom: 0px; + } + .comment-header { font-size: 1.25em; margin-top: 0.6em; } - - .comment-body { - + + .comment-body p { + margin-bottom: 1em; } - + .user-image { float: left; margin-right: 10px; @@ -52,12 +66,12 @@ img { width: 100%; } - } + } } .comment-editor { margin-top: 2em; - + textarea { display: block; width: 100%; diff --git a/resources/views/comments/list-item.blade.php b/resources/views/comments/list-item.blade.php index c267d619b..ca8b58625 100644 --- a/resources/views/comments/list-item.blade.php +++ b/resources/views/comments/list-item.blade.php @@ -1,4 +1,4 @@ -
+