comment styling
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user