From fada9f8a0c136e4c890306c275b020dc5a0c8bc2 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 28 May 2011 02:02:00 +0200 Subject: [PATCH] support classic theme --- source/Ox.UI/css/Ox.UI.css | 6 ---- source/Ox.UI/themes/classic/css/classic.css | 36 +++++++++++++++++++++ source/Ox.UI/themes/modern/css/modern.css | 16 +++++++-- 3 files changed, 50 insertions(+), 8 deletions(-) diff --git a/source/Ox.UI/css/Ox.UI.css b/source/Ox.UI/css/Ox.UI.css index 2d06b280..3406079b 100644 --- a/source/Ox.UI/css/Ox.UI.css +++ b/source/Ox.UI/css/Ox.UI.css @@ -155,7 +155,6 @@ Calendar border-radius: 4px; background: -moz-linear-gradient(top, rgba(255, 0, 0, 0.9), rgba(224, 0, 0, 0.9)); background: -webkit-linear-gradient(top, rgba(255, 0, 0, 0.9), rgba(224, 0, 0, 0.9)); - color: rgb(255, 255, 255); } .OxCalendar .OxLine > .OxEvent.OxCurrent { border-top-right-radius: 0; @@ -202,11 +201,6 @@ Calendar } .OxCalendar .OxOverlay div:nth-child(even) { height: 14px; - border-top: 1px solid rgba(255, 255, 255, 0.5); - border-bottom: 1px solid rgba(255, 255, 255, 0.5); -} -.OxCalendar .OxOverlay div:nth-child(odd) { - background-color: rgba(0, 0, 0, 0.5); } .OxCalendar .OxRange .OxArrow { diff --git a/source/Ox.UI/themes/classic/css/classic.css b/source/Ox.UI/themes/classic/css/classic.css index b58689bf..d2d7165e 100644 --- a/source/Ox.UI/themes/classic/css/classic.css +++ b/source/Ox.UI/themes/classic/css/classic.css @@ -29,6 +29,42 @@ Bars background-color: rgb(208, 208, 208); } +/* +================================================================================ +Calendar +================================================================================ +*/ + +.OxThemeClassic .OxCalendar .OxTimeline > div.odd { + background: -moz-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 .OxCalendar .OxTimeline > div.even { + background: -moz-linear-gradient(top, rgb(208, 208, 208), rgb(176, 176, 176)); + background: -webkit-linear-gradient(top, rgb(208, 208, 208), rgb(176, 176, 176)); +} + +.OxThemeClassic .OxCalendar .OxBackground > div { + //background: rgb(20, 20, 20); + background: rgb(232, 232, 232); +} +.OxThemeClassic .OxCalendar .OxBackground > div.line { + background: rgb(224, 224, 224); +} + +.OxThemeClassic .OxCalendar .OxLine > .OxEvent { + color: rgb(0, 0, 0); +} + +.OxThemeClassic .OxCalendar .OxOverlay div:nth-child(even) { + border-top: 1px solid rgba(0, 0, 0, 0.5); + border-bottom: 1px solid rgba(0, 0, 0, 0.5); +} +.OxThemeClassic .OxCalendar .OxOverlay div:nth-child(odd) { + background-color: rgba(255, 255, 255, 0.5); +} + /* ================================================================================ Dialog diff --git a/source/Ox.UI/themes/modern/css/modern.css b/source/Ox.UI/themes/modern/css/modern.css index 31ccc4eb..35fdd740 100644 --- a/source/Ox.UI/themes/modern/css/modern.css +++ b/source/Ox.UI/themes/modern/css/modern.css @@ -39,12 +39,12 @@ Calendar .OxThemeModern .OxCalendar .OxTimeline > div.odd { background: -moz-linear-gradient(top, rgb(64, 64, 64), rgb(32, 32, 32)); - background: -webkit-gradient(linear, left top, left bottom, from(rgb(64, 64, 64)), to(rgb(16, 16, 16))); + background: -webkit-linear-gradient(top, rgb(64, 64, 64), rgb(32, 32, 32)); } .OxThemeModern .OxCalendar .OxTimeline > div.even { background: -moz-linear-gradient(top, rgb(48, 48, 48), rgb(24, 24, 24)); - background: -webkit-gradient(linear, left top, left bottom, from(rgb(48, 48, 48)), to(rgb(16, 16, 16))); + background: -webkit-linear-gradient(top, rgb(48, 48, 48), rgb(24, 24, 24)); } .OxThemeModern .OxCalendar .OxBackground > div { @@ -55,6 +55,18 @@ Calendar background: rgb(32, 32, 32); } +.OxThemeModern .OxCalendar .OxLine > .OxEvent { + color: rgb(255, 255, 255); +} + +.OxThemeModern .OxCalendar .OxOverlay div:nth-child(even) { + border-top: 1px solid rgba(255, 255, 255, 0.5); + border-bottom: 1px solid rgba(255, 255, 255, 0.5); +} +.OxThemeModern .OxCalendar .OxOverlay div:nth-child(odd) { + background-color: rgba(0, 0, 0, 0.5); +} + /* ================================================================================