From e4ac9f2bb3b75918998cfdf25a447fb91d4c7210 Mon Sep 17 00:00:00 2001 From: Arnold Daniels Date: Mon, 16 Jul 2012 20:39:26 +0200 Subject: [PATCH] Added the `.editor` class for a textarea with a 100% width Added `.editor-html` for a textarea that will be replaced (when using eg CKEditor or TinyMCE) --- less/jasny/forms-editor.less | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 less/jasny/forms-editor.less diff --git a/less/jasny/forms-editor.less b/less/jasny/forms-editor.less new file mode 100644 index 00000000..eaf11c6d --- /dev/null +++ b/less/jasny/forms-editor.less @@ -0,0 +1,17 @@ +// Forms-editor.less +// CSS for editor textarea +// ----------------------- + +.editor { + .box-sizing(border-box); + height: 100px; + width: 100%; + padding: 5px; +} +.uneditable-textarea.editor-html { + white-space: normal; + padding: 5px 3px 5px 5px; +} +textarea.editor-html { + visibility: hidden; // Assume it will be replaced +}