From c4d65facc56e7e35227ad230011e4d34cfff60b6 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 27 Jun 2012 19:04:34 +0200 Subject: [PATCH] fix textarea background CSS (since they may have labels) - still doesn't fix their active state --- source/Ox.UI/js/Form/Input.js | 3 ++- source/Ox.UI/themes/classic/css/classic.css | 3 +++ source/Ox.UI/themes/modern/css/modern.css | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Form/Input.js b/source/Ox.UI/js/Form/Input.js index ad853fe9..e2d1ef70 100644 --- a/source/Ox.UI/js/Form/Input.js +++ b/source/Ox.UI/js/Form/Input.js @@ -151,7 +151,8 @@ Ox.Input = function(options, self) { } }) .addClass( - 'OxInput OxMedium Ox' + Ox.toTitleCase(self.options.style) /*+ ( + 'OxInput OxMedium Ox' + Ox.toTitleCase(self.options.style) + + (self.options.type == 'textarea' ? ' OxTextarea' : '') /*+ ( self.options.overlap != 'none' ? ' OxOverlap' + Ox.toTitleCase(self.options.overlap) : '' )*/ diff --git a/source/Ox.UI/themes/classic/css/classic.css b/source/Ox.UI/themes/classic/css/classic.css index 2c0fd84a..0c133bfa 100644 --- a/source/Ox.UI/themes/classic/css/classic.css +++ b/source/Ox.UI/themes/classic/css/classic.css @@ -288,6 +288,9 @@ Forms background: -o-linear-gradient(top, rgb(224, 224, 224), rgb(192, 192, 192)); background: -webkit-linear-gradient(top, rgb(224, 224, 224), rgb(192, 192, 192)); } +.OxThemeClassic div.OxInput.OxTextarea { + background: transparent; +} .OxThemeClassic .OxButton:active { //background: rgb(160, 160, 160); background: rgb(192, 192, 192); diff --git a/source/Ox.UI/themes/modern/css/modern.css b/source/Ox.UI/themes/modern/css/modern.css index 51b69c51..7656f650 100644 --- a/source/Ox.UI/themes/modern/css/modern.css +++ b/source/Ox.UI/themes/modern/css/modern.css @@ -290,6 +290,9 @@ Forms //background: -moz-linear-gradient(left top, left bottom, from(rgb(64, 64, 64)), to(rgb(32, 32, 32))); //background: -webkit-gradient(linear, left top, left bottom, from(rgb(64, 64, 64)), to(rgb(32, 32, 32))); } +.OxThemeClassic div.OxInput.OxTextarea { + background: transparent; +} .OxThemeModern .OxButton:active { background: rgb(80, 80, 80); color: rgb(208, 208, 208);