# HG changeset patch # User ahsanalishahid # Date 1372712462 -18000 # Node ID fe51ec4eccc1146ef36c4db14d4887844a2c7cb7 # Parent 7ec7f6a305923c19e971aa39dc92383a2c243f1c Added necessary css and Javascript code for the comment system diff -r 7ec7f6a30592 -r fe51ec4eccc1 static/css/agora.less --- a/static/css/agora.less Tue Jul 02 01:56:35 2013 +0500 +++ b/static/css/agora.less Tue Jul 02 02:01:02 2013 +0500 @@ -425,3 +425,68 @@ white-space: pre-wrap; .hint; } + +/**/ +#comment +{ + /*#gradient(@offWhite, @lighterGrey);*/ + max-width:700px; + border-left: 1px solid #e8e8e8; + margin: 5px; + +} +#comment-box +{ + width: 500px; + height: 100px; + margin-left: 20px; +} +.names +{ + font-weight: bold; + margin-left: 5px; +} + +.comment-node-child +{ + margin-left:13px; + max-width:700px; + margin-bottom: 3px; + border-left: 2px solid #e7e7e7; +} + +.comment-node +{ + margin-top: 5px; + border: 2px solid #e1e1e1; + max-width: 700px; + border-radius: 3px; +} +.comment-bar +{ + margin: 2px 0 2px 2px; + color: blue; + font-size: 16px; + background: #e0e0e0; + width: 97%; + padding: 2px 0 2px 10px; + +} +[ name=comment ] +{ + width:97%; + height: 100px; +} +.reply-button +{ + margin: 3px; + border: 3px solid #e9e9e9; + width: 70px; + height: 30px; + background: white; + padding: 2px; +} +.comment-body +{ + padding-left: 15px; +} \ No newline at end of file diff -r 7ec7f6a30592 -r fe51ec4eccc1 static/js/agora.js --- a/static/js/agora.js Tue Jul 02 01:56:35 2013 +0500 +++ b/static/js/agora.js Tue Jul 02 02:01:02 2013 +0500 @@ -37,6 +37,14 @@ } }; + $.fn.ShowCommentForm = function(id){ + $(this).hide(); + $('#' + id).show(); + + + + }; + $(document).ready(function () { handleLoginLink(); @@ -75,4 +83,10 @@ currentStyle = newStyle; }); }); -})(jQuery); + + + +} +)(jQuery); + +