From 3393e6385dde8ca930754f39facf0c36b73ca81b Mon Sep 17 00:00:00 2001 From: Arthur Barrett Date: Tue, 5 Mar 2013 23:45:36 -0500 Subject: [PATCH] set a default height on the commentary textbox to show 5 lines of text --- common/lib/xmodule/xmodule/css/capa/display.scss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/css/capa/display.scss b/common/lib/xmodule/xmodule/css/capa/display.scss index 1b9261138b..f728401168 100644 --- a/common/lib/xmodule/xmodule/css/capa/display.scss +++ b/common/lib/xmodule/xmodule/css/capa/display.scss @@ -869,7 +869,14 @@ section.problem { .tag-status, .tag { padding: .25em .5em; } } } - textarea.comment { width: 100%; } + textarea.comment { + $num-lines-to-show: 5; + $line-height: 1.4em; + width: 100%; + padding: .375em .75em; + line-height: $line-height; + height: ($line-height * $num-lines-to-show) + .375em; + } .answer-annotation { display: block; margin: 0; } /* for debugging the input value field. enable the debug flag on the inputtype */