From f19bad2f864404328ec9ef3b88024d3a0bf7a5d5 Mon Sep 17 00:00:00 2001 From: Joonas Lehtinen Date: Sat, 14 Jun 2008 19:21:40 +0000 Subject: [PATCH] Fixed #1821 : Required, modified and error background styles should be disabled in default theme svn changeset:4889/svn branch:trunk --- .../ITMILL/themes/default/button/button.css | 9 ++++ .../ITMILL/themes/default/common/common.css | 5 +- .../themes/default/datefield/datefield.css | 10 ++++ .../ITMILL/themes/default/select/select.css | 12 +++++ .../ITMILL/themes/default/slider/slider.css | 8 +++ WebContent/ITMILL/themes/default/styles.css | 53 ++++++++++++++++++- .../themes/default/textfield/textfield.css | 11 ++++ 7 files changed, 105 insertions(+), 3 deletions(-) diff --git a/WebContent/ITMILL/themes/default/button/button.css b/WebContent/ITMILL/themes/default/button/button.css index 30fdff6618..1b933bff05 100644 --- a/WebContent/ITMILL/themes/default/button/button.css +++ b/WebContent/ITMILL/themes/default/button/button.css @@ -18,7 +18,16 @@ text-decoration: underline; } +/* Disabled by default .i-checkbox-error { background:transparent; background-color: #FFE0E0; } +*/ + +/* Disabled by default +.i-checkbox-required { + background:transparent; + background-color: #FFE0E0; +} +*/ \ No newline at end of file diff --git a/WebContent/ITMILL/themes/default/common/common.css b/WebContent/ITMILL/themes/default/common/common.css index 419204230a..eae8622c0f 100644 --- a/WebContent/ITMILL/themes/default/common/common.css +++ b/WebContent/ITMILL/themes/default/common/common.css @@ -57,7 +57,8 @@ color: red; } -/* Field modified */ +/* Field modified */ +/* Disabled by default input.i-modified, .i-richtextarea.i-modified iframe.gwt-RichTextArea, .i-checkbox.i-modified, @@ -71,7 +72,7 @@ input.i-modified, background:transparent; background-color: #FFFFE0; } - +*/ /** * Custom toolktip diff --git a/WebContent/ITMILL/themes/default/datefield/datefield.css b/WebContent/ITMILL/themes/default/datefield/datefield.css index 529d05b80b..b7c1e37840 100644 --- a/WebContent/ITMILL/themes/default/datefield/datefield.css +++ b/WebContent/ITMILL/themes/default/datefield/datefield.css @@ -173,11 +173,21 @@ margin: 0; } +/* Disabled by default .i-datefield-error .i-textfield, .i-datefield-error .i-datefield-calendarpanel { background:transparent; background-color: #FFE0E0; } +*/ + +/* Disabled by default +.i-datefield-required .i-textfield, +.i-datefield-required .i-datefield-calendarpanel { + background:transparent; + background-color: #FFE0E0; +} +*/ .i-datefield-rendererror .i-textfield { background: #ff9999; diff --git a/WebContent/ITMILL/themes/default/select/select.css b/WebContent/ITMILL/themes/default/select/select.css index 41f0ada568..66803dc01f 100644 --- a/WebContent/ITMILL/themes/default/select/select.css +++ b/WebContent/ITMILL/themes/default/select/select.css @@ -198,6 +198,7 @@ background: transparent url(img/bg-right-filter-error.png); } +/* Disabled by default .i-select-error .i-select-option, .i-select-error .i-select-select, .i-select-error .i-select-twincol-selections, @@ -205,6 +206,17 @@ background:transparent; background-color: #FFE0E0; } +*/ + +/* Disabled by default +.i-select-required .i-select-option, +.i-select-required .i-select-select, +.i-select-required .i-select-twincol-selections, +.i-select-required .i-select-twincol-options { + background:transparent; + background-color: #FFE0E0; +} +*/ /* IE specific styles */ diff --git a/WebContent/ITMILL/themes/default/slider/slider.css b/WebContent/ITMILL/themes/default/slider/slider.css index b49df2588b..e8a0ffb079 100644 --- a/WebContent/ITMILL/themes/default/slider/slider.css +++ b/WebContent/ITMILL/themes/default/slider/slider.css @@ -106,11 +106,19 @@ } +/* Disabled by default .i-slider-error .i-slider-base { background:transparent; background-color: #FFE0E0; } +*/ +/* Disabled by default +.i-slider-required .i-slider-base { + background:transparent; + background-color: #FFE0E0; +} +*/ /* IE specific styles */ diff --git a/WebContent/ITMILL/themes/default/styles.css b/WebContent/ITMILL/themes/default/styles.css index 23997649e7..d1db617e03 100644 --- a/WebContent/ITMILL/themes/default/styles.css +++ b/WebContent/ITMILL/themes/default/styles.css @@ -49,10 +49,19 @@ text-decoration: underline; } +/* Disabled by default .i-checkbox-error { background:transparent; background-color: #FFE0E0; } +*/ + +/* Disabled by default +.i-checkbox-required { + background:transparent; + background-color: #FFE0E0; +} +*/ /* Provide some extra whitespace for wrapped elements (these elements usually need the extra space, since they aren't even handling their own caption) */ @@ -149,6 +158,7 @@ } /* Field modified */ +/* Disabled by default input.i-modified, .i-richtextarea.i-modified iframe.gwt-RichTextArea, .i-checkbox.i-modified, @@ -162,7 +172,7 @@ input.i-modified, background:transparent; background-color: #FFFFE0; } - +*/ /** * Custom toolktip @@ -438,11 +448,21 @@ input.i-modified, margin: 0; } +/* Disabled by default .i-datefield-error .i-textfield, .i-datefield-error .i-datefield-calendarpanel { background:transparent; background-color: #FFE0E0; } +*/ + +/* Disabled by default +.i-datefield-required .i-textfield, +.i-datefield-required .i-datefield-calendarpanel { + background:transparent; + background-color: #FFE0E0; +} +*/ .i-datefield-rendererror .i-textfield { background: #ff9999; @@ -1088,6 +1108,7 @@ input.i-modified, background: transparent url(select/img/bg-right-filter-error.png); } +/* Disabled by default .i-select-error .i-select-option, .i-select-error .i-select-select, .i-select-error .i-select-twincol-selections, @@ -1095,6 +1116,17 @@ input.i-modified, background:transparent; background-color: #FFE0E0; } +*/ + +/* Disabled by default +.i-select-required .i-select-option, +.i-select-required .i-select-select, +.i-select-required .i-select-twincol-selections, +.i-select-required .i-select-twincol-options { + background:transparent; + background-color: #FFE0E0; +} +*/ /* IE specific styles */ @@ -1226,11 +1258,19 @@ input.i-modified, } +/* Disabled by default .i-slider-error .i-slider-base { background:transparent; background-color: #FFE0E0; } +*/ +/* Disabled by default +.i-slider-required .i-slider-base { + background:transparent; + background-color: #FFE0E0; +} +*/ /* IE specific styles */ @@ -1766,12 +1806,23 @@ input.i-modified, border: 0; } +/* Disabled by default .i-textarea-error, .i-textfield-error, .i-richtextarea-error iframe.gwt-RichTextArea { background:transparent; background-color: #FFE0E0; } +*/ + +/* Disabled by default +.i-textarea-required, +.i-textfield-required, +.i-richtextarea-required iframe.gwt-RichTextArea { + background:transparent; + background-color: #FFE0E0; +} +*/ .i-tree { text-align: left /* Force default alignment */ } diff --git a/WebContent/ITMILL/themes/default/textfield/textfield.css b/WebContent/ITMILL/themes/default/textfield/textfield.css index da549b4c66..5d9b598f86 100644 --- a/WebContent/ITMILL/themes/default/textfield/textfield.css +++ b/WebContent/ITMILL/themes/default/textfield/textfield.css @@ -46,9 +46,20 @@ border: 0; } +/* Disabled by default .i-textarea-error, .i-textfield-error, .i-richtextarea-error iframe.gwt-RichTextArea { background:transparent; background-color: #FFE0E0; } +*/ + +/* Disabled by default +.i-textarea-required, +.i-textfield-required, +.i-richtextarea-required iframe.gwt-RichTextArea { + background:transparent; + background-color: #FFE0E0; +} +*/ \ No newline at end of file -- 2.39.5