+ Make the height of a textarea proportional to the amount of text to be entered. +
+diff --git a/app/views/guide_form_elements.html b/app/views/guide_form_elements.html index 5bcc66152..0d8b0b2cc 100755 --- a/app/views/guide_form_elements.html +++ b/app/views/guide_form_elements.html @@ -24,6 +24,7 @@
+ Make the height of a textarea proportional to the amount of text to be entered. +
+
+
+ {% filter escape %}
+ {% include "snippets/form_textarea.html" %}
+ {% endfilter %}
+
+
+
diff --git a/app/views/snippets/form_textarea.html b/app/views/snippets/form_textarea.html new file mode 100644 index 000000000..b2ef7d96e --- /dev/null +++ b/app/views/snippets/form_textarea.html @@ -0,0 +1,4 @@ + + diff --git a/assets/sass/elements/_forms.scss b/assets/sass/elements/_forms.scss index e57e4dfc2..4e3dcaaac 100644 --- a/assets/sass/elements/_forms.scss +++ b/assets/sass/elements/_forms.scss @@ -163,11 +163,16 @@ textarea { // scss-lint:disable QualifyingElement input.form-control, textarea.form-control { - // Remove inner shadow + // Disable inner shadow and remove rounded corners -webkit-appearance: none; - // Remove rounded corners border-radius: 0; } + +textarea.form-control { + // Disable opacity and background image for Firefox + opacity: 1; + background-image: none; +} // scss-lint:enable QualifyingElement