From fb2ae1dee271188dc93f27673ace7817e3ee54ad Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Wed, 26 Oct 2011 08:59:30 +0000 Subject: [PATCH] fix textarea css --- source/Ox.UI/js/Form/Ox.Input.js | 2 ++ source/Ox.UI/themes/classic/css/classic.css | 5 +---- source/Ox.UI/themes/modern/css/modern.css | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index a7ec1bde..f018f9fb 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -224,6 +224,7 @@ Ox.Input = function(options, self) { // fixme: is there a better way than this one? // should at least go into ox.ui.theme.foo.js // probably better: divs in the background + /* if (self.options.type == 'textarea') { Ox.extend(self, { colors: Ox.Theme() == 'classic' ? @@ -251,6 +252,7 @@ Ox.Input = function(options, self) { [self.colors[2], self.colors[2], self.colors[2]].join(', ') + '))' }); } + */ if (self.hasPasswordPlaceholder) { self.$input.hide(); diff --git a/source/Ox.UI/themes/classic/css/classic.css b/source/Ox.UI/themes/classic/css/classic.css index dd7cd778..05a77c9f 100644 --- a/source/Ox.UI/themes/classic/css/classic.css +++ b/source/Ox.UI/themes/classic/css/classic.css @@ -264,6 +264,7 @@ Forms .OxThemeClassic input.OxCheckbox, .OxThemeClassic input.OxInput, +.OxThemeClassic textarea, .OxThemeClassic .OxTrack { //background: -moz-linear-gradient(top, rgb(224, 224, 224), rgb(255, 255, 255)); //background: -webkit-gradient(linear, left top, left bottom, from(rgb(224, 224, 224)), to(rgb(255, 255, 255))); @@ -299,10 +300,6 @@ Forms background: rgb(224, 224, 224); } -.OxThemeClassic textarea { - background: rgb(240, 240, 240); -} - .OxThemeClassic .OxLabelSelect > .OxTitle { border-color: rgb(176, 176, 176); background: -moz-linear-gradient(top, rgb(224, 224, 224), 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 15a2e9d2..f76bfafb 100644 --- a/source/Ox.UI/themes/modern/css/modern.css +++ b/source/Ox.UI/themes/modern/css/modern.css @@ -257,6 +257,7 @@ Forms .OxThemeModern input.OxCheckbox, .OxThemeModern input.OxInput, +.OxThemeModern textarea, .OxThemeModern .OxTrack { background: -moz-linear-gradient(top, rgb(0, 0, 0), rgb(32, 32, 32)); background: -o-linear-gradient(top, rgb(0, 0, 0), rgb(32, 32, 32)); @@ -289,7 +290,6 @@ Forms background: rgb(16, 16, 16); } - .OxThemeModern .OxLabelSelect > .OxTitle { border-color: rgb(48, 48, 48); background: -moz-linear-gradient(top, rgb(96, 96, 96), rgb(64, 64, 64));