From 411b173ffff2e77cf86d50206acf0e859ffb4d56 Mon Sep 17 00:00:00 2001 From: Fran Dios Date: Fri, 8 Jan 2016 15:17:48 +0900 Subject: [PATCH 1/6] link to profile from user name --- public/templates/comments/comments.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/comments/comments.tpl b/public/templates/comments/comments.tpl index 75ca202a..8fb8027c 100644 --- a/public/templates/comments/comments.tpl +++ b/public/templates/comments/comments.tpl @@ -39,7 +39,7 @@
-
{user.username} commented {posts.timestamp}
{posts.content}
+
{user.username} commented {posts.timestamp}
{posts.content}
From 89eeaab45b483d1d1fe5670e97db94f703568968 Mon Sep 17 00:00:00 2001 From: Fran Dios Date: Fri, 8 Jan 2016 19:19:22 +0900 Subject: [PATCH 2/6] layout for reply comments --- public/css/comments.css | 64 +++++++++++++++++++++++++- public/templates/comments/comments.tpl | 12 ++++- 2 files changed, 72 insertions(+), 4 deletions(-) diff --git a/public/css/comments.css b/public/css/comments.css index 45ff9a3c..4f42b575 100644 --- a/public/css/comments.css +++ b/public/css/comments.css @@ -58,6 +58,7 @@ color: #333; overflow: hidden; word-wrap: break-word; + transition: background-color 0.6s ease; } #nodebb .topic-text blockquote { @@ -89,7 +90,7 @@ #nodebb > ul { margin-bottom: 0px; - margin-top: 20px; + margin-top: 25px; list-style-type: none; padding: 0px; } @@ -205,4 +206,63 @@ width: 20px; height: 20px; border-radius: 100%; -} \ No newline at end of file +} + +.sub-reply-input { + margin-left: 20px; + margin-right: 20px; + margin-bottom: 10px; + padding-bottom: 48px; +} + +.no-select { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; +} + +.post-tools { + float: right; + text-transform: lowercase; +} + +.post-tools a { + padding-right: 10px; + cursor: pointer; + color: #38C071; + text-decoration: none; +} + +.reply-label { + padding: 1px 5px; + margin: 0; + font-size: 12px; + line-height: 1.5; + color: #333; + background-color: #fff; + cursor: pointer; + border: 1px solid #ccc; + white-space: nowrap; + -webkit-appearance: button; + -moz-appearance: button; +} + +.reply-label:hover { + background-color: #E6E6E6; +} + +.hidden { + display: none; +} + +.highlight { + background-color: rgba(240, 173, 78, 0.75); +} + +.post-content blockquote { + font-size: 12px; + padding: 10px 20px; + margin: 0 0 20px; + font-size: 17.5px; + border-left: 5px solid #eee; +} diff --git a/public/templates/comments/comments.tpl b/public/templates/comments/comments.tpl index 8fb8027c..4126b897 100644 --- a/public/templates/comments/comments.tpl +++ b/public/templates/comments/comments.tpl @@ -27,7 +27,7 @@