From 668588c278a3574205575edf8bbbccceffb77b61 Mon Sep 17 00:00:00 2001 From: Arnold Daniels Date: Tue, 3 Apr 2012 14:10:07 +0200 Subject: [PATCH] Changes uneditable elements Uneditable input/textarea always `cursor:text` Overflow hidden / nowrap for uneditable input --- less/forms.less | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/less/forms.less b/less/forms.less index c5186e2e..19bbdc7c 100644 --- a/less/forms.less +++ b/less/forms.less @@ -336,19 +336,24 @@ select:focus:required:invalid { background-color: @white; border-color: #eee; .box-shadow(inset 0 1px 2px rgba(0,0,0,.025)); - cursor: not-allowed; + cursor: text; padding: 4px 3px 4px 5px; - overflow-y: auto; - overflow-x: hidden; } .uneditable-input[disabled], .uneditable-textarea[disabled] { background-color: #f5f5f5; border-color: #ddd; + cursor: not-allowed; +} +.uneditable-input { + white-space: pre; + overflow: hidden; } .uneditable-textarea { height: 3 * @baseLineHeight; white-space: pre-wrap; + overflow-y: auto; + overflow-x: hidden; &[rows="1"] { height: (1 + 1) * @baseLineHeight; } &[rows="2"] { height: (1 + 2) * @baseLineHeight; } &[rows="3"] { height: (1 + 3) * @baseLineHeight; } @@ -508,11 +513,6 @@ select:focus:required:invalid { // --------------- .uneditable-form { - .uneditable-input, - .uneditable-textarea { - cursor: text; - } - .form-actions { background-color: transparent; }