Permalink
Browse files

Fix comment's contents padding.

  • Loading branch information...
1 parent 7dde631 commit 44a4a3c3c36181f16506e7a4f7b619aadaf63783 @mpereira mpereira committed Nov 11, 2011
Showing with 12 additions and 12 deletions.
  1. +2 −5 app/stylesheets/_base.sass
  2. +8 −5 app/stylesheets/application.sass
  3. +2 −2 public/javascripts/modules/show_question.js
@@ -232,12 +232,9 @@ input.checkbox
.right
float: right
textarea.comment_text_area
- font-size: 13px
- line-height: 26px
margin: -2px 0 -1px 0
- height: auto
- width: 560px
- padding: 0
+ width: 99%
+ padding: 3px 4px 3px 4px
label.label, input.text_field, textarea.text_area
font-size: 1.2em
padding: 1px 0
@@ -41,13 +41,16 @@ textarea.text_area
height: 120px
textarea.comment_text_area
- height: 60px
- border-bottom: 1px solid #dddddd
- border-left: 2px solid #cccccc
- border-right: 1px solid #dddddd
- border-top: 2px solid #cccccc
+ border-bottom: 1px solid #ddd
+ border-left: 1px solid #ccc
+ border-right: 1px solid #ddd
+ border-top: 1px solid #ccc
+ border-radius: 2px
width: 99%
+textarea.comment_text_area.focussed
+ height: 2.5em
+
#main-doc
background-color: white
text-align: center
@@ -311,13 +311,13 @@ $(document).ready(function() {
});
$('.inline_comment .comment_text_area').focus(function() {
- this.rows = "3";
+ $(this).addClass('focussed');
$(this).closest(".group").find(".navform.hidden").show();
});
$('.inline_comment .comment_text_area').blur(function() {
if(this.value == ""){
- this.rows = "1";
+ $(this).removeClass('focussed');
$(this).closest(".group").find(".navform.hidden").hide();
}
});

0 comments on commit 44a4a3c

Please sign in to comment.