+
+ /* BEGIN expando input box trick kindly provided by http://www.alistapart.com/articles/expanding-text-areas-made-elegant/ */
+ .expandingArea {
+ position: relative;
+ border: 1px solid #888;
+ background: silver;
+ }
+ .expandingArea > textarea,
+ .expandingArea > pre {
+ margin: 0;
+ outline: 0;
+ border: 0;
+ padding: 5px;
+ background: transparent;
+ font: 400 13px/16px helvetica, arial, sans-serif;
+ /* Make the text soft-wrap */
+ white-space: pre-wrap;
+ word-wrap: break-word;
+ }
+ .expandingArea > textarea {
+ /* The border-box box model is used to allow
+ * padding whilst still keeping the overall width
+ * at exactly that of the containing element.
+ */
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ width: 100%;
+ /* Hide any scrollbars */
+ overflow: hidden;
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 100%;
+ /* Remove WebKit user-resize widget */
+ resize: none;
+ }
+ .expandingArea > pre {
+ display: block;
+ /* Hide the text; just using it for sizing */
+ visibility: hidden;
+ }
+ /* END expando input box trick kindly provided by http://www.alistapart.com/articles/expanding-text-areas-made-elegant/ */
+