From 7a7507d95b831d39cee6b4f02ec14de83d91fbe9 Mon Sep 17 00:00:00 2001 From: Evandro Jr Date: Thu, 18 Sep 2014 13:09:13 -0300 Subject: [PATCH] Fixes: --- public/comment_paragraph_macro.js | 9 +++++++++ public/style.css | 38 ++++++++++++++++++++++++++++++-------- 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/public/comment_paragraph_macro.js b/public/comment_paragraph_macro.js index 6c50731..5f32cb1 100644 --- a/public/comment_paragraph_macro.js +++ b/public/comment_paragraph_macro.js @@ -2,7 +2,16 @@ var comment_paragraph_anchor; var lastParagraph = []; var lastSelectedArea = []; +function setPlusIfZeroComments($){ + $('.comment-count').each(function(){ + var commentCount = $(this).text().trim(); + if(commentCount=='0') + $(this).text("+"); + }); +} + jQuery(document).ready(function($) { + setPlusIfZeroComments($); $('.display-comment-form').unbind(); $('.display-comment-form').click(function(){ var $button = $(this); diff --git a/public/style.css b/public/style.css index 2352cdf..b4723c4 100644 --- a/public/style.css +++ b/public/style.css @@ -126,11 +126,37 @@ div[class^='comment-paragraph-loading-'] { } .side-comments-counter { - border: 1px solid #57ad68; - padding: 3px; - border-radius: 3px; - color: #666; + position: relative; + width: 20px; + height: 19px; + padding: 0px; + background: #b3b2d4; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; cursor: pointer; + z-index: 1; +} + +.side-comments-counter:hover{ + color: white; +} + +.side-comments-counter:after { + content: ""; + position: absolute; + bottom: -9px; + left: 8px; + border-style: solid; + border-width: 12px 5px 0; + border-color: #b3b2d4 transparent; + display: block; + width: 0; +} + +.comment-count{ + position: relative; + top: 3px; } #comments_list{ @@ -139,10 +165,6 @@ div[class^='comment-paragraph-loading-'] { .article-comment-inner {border-bottom: 1px solid #ddd;} -/*label[for="comment_title"]{ - display: none; -}*/ - #article .comment-replies .article-comment{background: white; border: 0px; border-top: 1px solid #ddd;} .comment-replies .comment-from-owner.comment-content {background: none;} -- libgit2 0.21.2