smoother comment form expansion

This commit is contained in:
Tom Giannattasio
2012-09-14 16:34:55 -04:00
parent 5caa989e3c
commit 2f5ad06eec
2 changed files with 12 additions and 2 deletions

View File

@@ -36,14 +36,20 @@ if Backbone?
hideEditorChrome: ->
@$('.wmd-button-row').hide()
@$('.wmd-preview').hide()
@$('.wmd-input').css(height: '50px')
@$('.wmd-input').css({
height: '35px',
padding: '0'
})
@$('.comment-post-control').hide()
showEditorChrome: ->
@$('.wmd-button-row').show()
@$('.wmd-preview').show()
@$('.comment-post-control').show()
@$('.wmd-input').css(height: '125px')
@$('.wmd-input').css({
height: '125px',
padding: '10px'
})
renderComments: ->
comments = new Comments()

View File

@@ -1538,6 +1538,10 @@ body.discussion {
.comment-form {
padding: 8px 20px;
.wmd-input {
@include transition(all .2s);
}
.wmd-button {
background: transparent;