Commit 11289e6d by Arjun Singh

comment styling

parent 387c8ea1
......@@ -36,10 +36,14 @@ if Backbone?
hideEditorChrome: ->
@$('.wmd-button-row').hide()
@$('.wmd-preview').hide()
@$('.wmd-input').css(height: '50px')
@$('.comment-post-control').hide()
showEditorChrome: ->
@$('.wmd-button-row').show()
@$('.wmd-preview').show()
@$('.comment-post-control').show()
@$('.wmd-input').css(height: '125px')
renderComments: ->
comments = new Comments()
......@@ -69,6 +73,7 @@ if Backbone?
@setWmdContent("comment-body", "")
comment = new Comment(body: body, created_at: (new Date()).toISOString(), username: window.user.get("username"), user_id: window.user.get("id"), id:"unsaved")
view = @renderComment(comment)
@hideEditorChrome()
@trigger "comment:add", comment
DiscussionUtil.safeAjax
......
......@@ -1484,12 +1484,28 @@ body.discussion {
.comment-form {
background: #eee;
@include clearfix;
.comment-form-input {
padding: 5px 10px;
background-color: #fff;
font-size: 14px;
}
.discussion-submit-comment {
@include blue-button;
float: left;
margin-top: 8px;
}
.wmd-input {
height: 40px;
}
.discussion-errors {
margin: 0px;
}
}
p {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment