comment styling

This commit is contained in:
Arjun Singh
2012-09-14 12:59:10 -07:00
parent 387c8ea1b5
commit 11289e6d90
2 changed files with 21 additions and 0 deletions

View File

@@ -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

View File

@@ -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 {