summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-03-22 08:36:37 +0100
committerAleksander Machniak <alec@alec.pl>2012-03-22 08:36:37 +0100
commit091b397c69c293a74016c80ff4f49100826f2784 (patch)
tree4879f1e376af647f9c79683ca2ff1d2d2ad0b3e2
parent7777d67eeecb1e28d1efe50fea0a4089964142a5 (diff)
downloadwebadmin-091b397c69c293a74016c80ff4f49100826f2784.tar.gz
Unified input elements width
-rw-r--r--lib/kolab_form.php4
-rw-r--r--public_html/skins/default/style.css5
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/kolab_form.php b/lib/kolab_form.php
index 7656e75..a21c758 100644
--- a/lib/kolab_form.php
+++ b/lib/kolab_form.php
@@ -250,6 +250,10 @@ class kolab_form
}
}
+ if ($attribs['size'] >= 40) {
+ $attribs['class'] = (!empty($attribs['class']) ? $attribs['class'] . ' ' : '') . 'maxsize';
+ }
+
$content = kolab_html::input($attribs);
break;
diff --git a/public_html/skins/default/style.css b/public_html/skins/default/style.css
index bb52537..74cca9c 100644
--- a/public_html/skins/default/style.css
+++ b/public_html/skins/default/style.css
@@ -488,6 +488,11 @@ div.vsplitter {
input.readonly,
textarea.readonly {
background-color: #f5f5f5;
+ color: #a0a0a0;
+}
+
+input.maxsize {
+ width: 368px; /* span.listarea width - 2px */
}
/********* Form smart inputs *********/