You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2007/11/12 23:23:28 UTC
svn commit: r594319 [16/40] - in /tapestry/tapestry5/trunk: ./
tapestry-annotations/
tapestry-annotations/src/main/java/org/apache/tapestry/beaneditor/
tapestry-annotations/src/site/ tapestry-component-report/
tapestry-component-report/src/main/java/or...
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-setup.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-setup.js?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-setup.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-setup.js Mon Nov 12 14:22:31 2007
@@ -59,142 +59,170 @@
* pass none of "inputField", "displayArea" or "button" you'll get a warning
* saying "nothing to setup".
*/
-Calendar.setup = function (params) {
- function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } };
+Calendar.setup = function (params)
+{
+ function param_default(pname, def)
+ {
+ if (typeof params[pname] == "undefined")
+ {
+ params[pname] = def;
+ }
+ }
+ ;
+
+ param_default("inputField", null);
+ param_default("displayArea", null);
+ param_default("button", null);
+ param_default("eventName", "click");
+ param_default("ifFormat", "%Y/%m/%d");
+ param_default("daFormat", "%Y/%m/%d");
+ param_default("singleClick", true);
+ param_default("disableFunc", null);
+ param_default("dateStatusFunc", params["disableFunc"]); // takes precedence if both are defined
+ param_default("dateText", null);
+ param_default("firstDay", null);
+ param_default("align", "Br");
+ param_default("range", [1900, 2999]);
+ param_default("weekNumbers", true);
+ param_default("flat", null);
+ param_default("flatCallback", null);
+ param_default("onSelect", null);
+ param_default("onClose", null);
+ param_default("onUpdate", null);
+ param_default("date", null);
+ param_default("showsTime", false);
+ param_default("timeFormat", "24");
+ param_default("electric", true);
+ param_default("step", 2);
+ param_default("position", null);
+ param_default("cache", false);
+ param_default("showOthers", false);
+ param_default("multiple", null);
+
+ var tmp = ["inputField", "displayArea", "button"];
+ for (var i in tmp)
+ {
+ if (typeof params[tmp[i]] == "string")
+ {
+ params[tmp[i]] = document.getElementById(params[tmp[i]]);
+ }
+ }
+ if (!(params.flat || params.multiple || params.inputField || params.displayArea || params.button))
+ {
+ alert("Calendar.setup:\n Nothing to setup (no fields found). Please check your code");
+ return false;
+ }
+
+ function onSelect(cal)
+ {
+ var p = cal.params;
+ var update = (cal.dateClicked || p.electric);
+ if (update && p.inputField)
+ {
+ p.inputField.value = cal.date.print(p.ifFormat);
+ if (typeof p.inputField.onchange == "function")
+ p.inputField.onchange();
+ }
+ if (update && p.displayArea)
+ p.displayArea.innerHTML = cal.date.print(p.daFormat);
+ if (update && typeof p.onUpdate == "function")
+ p.onUpdate(cal);
+ if (update && p.flat)
+ {
+ if (typeof p.flatCallback == "function")
+ p.flatCallback(cal);
+ }
+ if (update && p.singleClick && cal.dateClicked)
+ cal.callCloseHandler();
+ }
+ ;
+
+ if (params.flat != null)
+ {
+ if (typeof params.flat == "string")
+ params.flat = document.getElementById(params.flat);
+ if (!params.flat)
+ {
+ alert("Calendar.setup:\n Flat specified but can't find parent.");
+ return false;
+ }
+ var cal = new Calendar(params.firstDay, params.date, params.onSelect || onSelect);
+ cal.showsOtherMonths = params.showOthers;
+ cal.showsTime = params.showsTime;
+ cal.time24 = (params.timeFormat == "24");
+ cal.params = params;
+ cal.weekNumbers = params.weekNumbers;
+ cal.setRange(params.range[0], params.range[1]);
+ cal.setDateStatusHandler(params.dateStatusFunc);
+ cal.getDateText = params.dateText;
+ if (params.ifFormat)
+ {
+ cal.setDateFormat(params.ifFormat);
+ }
+ if (params.inputField && typeof params.inputField.value == "string")
+ {
+ cal.parseDate(params.inputField.value);
+ }
+ cal.create(params.flat);
+ cal.show();
+ return false;
+ }
+
+ var triggerEl = params.button || params.displayArea || params.inputField;
+ triggerEl["on" + params.eventName] = function()
+ {
+ var dateEl = params.inputField || params.displayArea;
+ var dateFmt = params.inputField ? params.ifFormat : params.daFormat;
+ var mustCreate = false;
+ var cal = window.calendar;
+ if (dateEl)
+ params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt);
+ if (!(cal && params.cache))
+ {
+ window.calendar = cal = new Calendar(params.firstDay,
+ params.date,
+ params.onSelect || onSelect,
+ params.onClose || function(cal)
+ {
+ cal.hide();
+ });
+ cal.showsTime = params.showsTime;
+ cal.time24 = (params.timeFormat == "24");
+ cal.weekNumbers = params.weekNumbers;
+ mustCreate = true;
+ }
+ else
+ {
+ if (params.date)
+ cal.setDate(params.date);
+ cal.hide();
+ }
+ if (params.multiple)
+ {
+ cal.multiple = {};
+ for (var i = params.multiple.length; --i >= 0;)
+ {
+ var d = params.multiple[i];
+ var ds = d.print("%Y%m%d");
+ cal.multiple[ds] = d;
+ }
+ }
+ cal.showsOtherMonths = params.showOthers;
+ cal.yearStep = params.step;
+ cal.setRange(params.range[0], params.range[1]);
+ cal.params = params;
+ cal.setDateStatusHandler(params.dateStatusFunc);
+ cal.getDateText = params.dateText;
+ cal.setDateFormat(dateFmt);
+ if (mustCreate)
+ cal.create();
+ cal.refresh();
+ if (!params.position)
+ cal.showAtElement(params.button || params.displayArea || params.inputField, params.align);
+ else
+ cal.showAt(params.position[0], params.position[1]);
+ return false;
+ };
- param_default("inputField", null);
- param_default("displayArea", null);
- param_default("button", null);
- param_default("eventName", "click");
- param_default("ifFormat", "%Y/%m/%d");
- param_default("daFormat", "%Y/%m/%d");
- param_default("singleClick", true);
- param_default("disableFunc", null);
- param_default("dateStatusFunc", params["disableFunc"]); // takes precedence if both are defined
- param_default("dateText", null);
- param_default("firstDay", null);
- param_default("align", "Br");
- param_default("range", [1900, 2999]);
- param_default("weekNumbers", true);
- param_default("flat", null);
- param_default("flatCallback", null);
- param_default("onSelect", null);
- param_default("onClose", null);
- param_default("onUpdate", null);
- param_default("date", null);
- param_default("showsTime", false);
- param_default("timeFormat", "24");
- param_default("electric", true);
- param_default("step", 2);
- param_default("position", null);
- param_default("cache", false);
- param_default("showOthers", false);
- param_default("multiple", null);
-
- var tmp = ["inputField", "displayArea", "button"];
- for (var i in tmp) {
- if (typeof params[tmp[i]] == "string") {
- params[tmp[i]] = document.getElementById(params[tmp[i]]);
- }
- }
- if (!(params.flat || params.multiple || params.inputField || params.displayArea || params.button)) {
- alert("Calendar.setup:\n Nothing to setup (no fields found). Please check your code");
- return false;
- }
-
- function onSelect(cal) {
- var p = cal.params;
- var update = (cal.dateClicked || p.electric);
- if (update && p.inputField) {
- p.inputField.value = cal.date.print(p.ifFormat);
- if (typeof p.inputField.onchange == "function")
- p.inputField.onchange();
- }
- if (update && p.displayArea)
- p.displayArea.innerHTML = cal.date.print(p.daFormat);
- if (update && typeof p.onUpdate == "function")
- p.onUpdate(cal);
- if (update && p.flat) {
- if (typeof p.flatCallback == "function")
- p.flatCallback(cal);
- }
- if (update && p.singleClick && cal.dateClicked)
- cal.callCloseHandler();
- };
-
- if (params.flat != null) {
- if (typeof params.flat == "string")
- params.flat = document.getElementById(params.flat);
- if (!params.flat) {
- alert("Calendar.setup:\n Flat specified but can't find parent.");
- return false;
- }
- var cal = new Calendar(params.firstDay, params.date, params.onSelect || onSelect);
- cal.showsOtherMonths = params.showOthers;
- cal.showsTime = params.showsTime;
- cal.time24 = (params.timeFormat == "24");
- cal.params = params;
- cal.weekNumbers = params.weekNumbers;
- cal.setRange(params.range[0], params.range[1]);
- cal.setDateStatusHandler(params.dateStatusFunc);
- cal.getDateText = params.dateText;
- if (params.ifFormat) {
- cal.setDateFormat(params.ifFormat);
- }
- if (params.inputField && typeof params.inputField.value == "string") {
- cal.parseDate(params.inputField.value);
- }
- cal.create(params.flat);
- cal.show();
- return false;
- }
-
- var triggerEl = params.button || params.displayArea || params.inputField;
- triggerEl["on" + params.eventName] = function() {
- var dateEl = params.inputField || params.displayArea;
- var dateFmt = params.inputField ? params.ifFormat : params.daFormat;
- var mustCreate = false;
- var cal = window.calendar;
- if (dateEl)
- params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt);
- if (!(cal && params.cache)) {
- window.calendar = cal = new Calendar(params.firstDay,
- params.date,
- params.onSelect || onSelect,
- params.onClose || function(cal) { cal.hide(); });
- cal.showsTime = params.showsTime;
- cal.time24 = (params.timeFormat == "24");
- cal.weekNumbers = params.weekNumbers;
- mustCreate = true;
- } else {
- if (params.date)
- cal.setDate(params.date);
- cal.hide();
- }
- if (params.multiple) {
- cal.multiple = {};
- for (var i = params.multiple.length; --i >= 0;) {
- var d = params.multiple[i];
- var ds = d.print("%Y%m%d");
- cal.multiple[ds] = d;
- }
- }
- cal.showsOtherMonths = params.showOthers;
- cal.yearStep = params.step;
- cal.setRange(params.range[0], params.range[1]);
- cal.params = params;
- cal.setDateStatusHandler(params.dateStatusFunc);
- cal.getDateText = params.dateText;
- cal.setDateFormat(dateFmt);
- if (mustCreate)
- cal.create();
- cal.refresh();
- if (!params.position)
- cal.showAtElement(params.button || params.displayArea || params.inputField, params.align);
- else
- cal.showAt(params.position[0], params.position[1]);
- return false;
- };
-
- return cal;
+ return cal;
};
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-setup_stripped.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-setup_stripped.js?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-setup_stripped.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-setup_stripped.js Mon Nov 12 14:22:31 2007
@@ -18,4 +18,151 @@
* modify this code to suit your needs (this is recommended and much better
* than modifying calendar.js itself).
*/
- Calendar.setup=function(params){function param_default(pname,def){if(typeof params[pname]=="undefined"){params[pname]=def;}};param_default("inputField",null);param_default("displayArea",null);param_default("button",null);param_default("eventName","click");param_default("ifFormat","%Y/%m/%d");param_default("daFormat","%Y/%m/%d");param_default("singleClick",true);param_default("disableFunc",null);param_default("dateStatusFunc",params["disableFunc"]);param_default("dateText",null);param_default("firstDay",null);param_default("align","Br");param_default("range",[1900,2999]);param_default("weekNumbers",true);param_default("flat",null);param_default("flatCallback",null);param_default("onSelect",null);param_default("onClose",null);param_default("onUpdate",null);param_default("date",null);param_default("showsTime",false);param_default("timeFormat","24");param_default("electric",true);param_default("step",2);param_default("position",null);param_default("cache",false);param_default("
showOthers",false);param_default("multiple",null);var tmp=["inputField","displayArea","button"];for(var i in tmp){if(typeof params[tmp[i]]=="string"){params[tmp[i]]=document.getElementById(params[tmp[i]]);}}if(!(params.flat||params.multiple||params.inputField||params.displayArea||params.button)){alert("Calendar.setup:\n Nothing to setup (no fields found). Please check your code");return false;}function onSelect(cal){var p=cal.params;var update=(cal.dateClicked||p.electric);if(update&&p.inputField){p.inputField.value=cal.date.print(p.ifFormat);if(typeof p.inputField.onchange=="function")p.inputField.onchange();}if(update&&p.displayArea)p.displayArea.innerHTML=cal.date.print(p.daFormat);if(update&&typeof p.onUpdate=="function")p.onUpdate(cal);if(update&&p.flat){if(typeof p.flatCallback=="function")p.flatCallback(cal);}if(update&&p.singleClick&&cal.dateClicked)cal.callCloseHandler();};if(params.flat!=null){if(typeof params.flat=="string")params.flat=document.getElementById(pa
rams.flat);if(!params.flat){alert("Calendar.setup:\n Flat specified but can't find parent.");return false;}var cal=new Calendar(params.firstDay,params.date,params.onSelect||onSelect);cal.showsOtherMonths=params.showOthers;cal.showsTime=params.showsTime;cal.time24=(params.timeFormat=="24");cal.params=params;cal.weekNumbers=params.weekNumbers;cal.setRange(params.range[0],params.range[1]);cal.setDateStatusHandler(params.dateStatusFunc);cal.getDateText=params.dateText;if(params.ifFormat){cal.setDateFormat(params.ifFormat);}if(params.inputField&&typeof params.inputField.value=="string"){cal.parseDate(params.inputField.value);}cal.create(params.flat);cal.show();return false;}var triggerEl=params.button||params.displayArea||params.inputField;triggerEl["on"+params.eventName]=function(){var dateEl=params.inputField||params.displayArea;var dateFmt=params.inputField?params.ifFormat:params.daFormat;var mustCreate=false;var cal=window.calendar;if(dateEl)params.date=Date.parseDate(dateEl
.value||dateEl.innerHTML,dateFmt);if(!(cal&¶ms.cache)){window.calendar=cal=new Calendar(params.firstDay,params.date,params.onSelect||onSelect,params.onClose||function(cal){cal.hide();});cal.showsTime=params.showsTime;cal.time24=(params.timeFormat=="24");cal.weekNumbers=params.weekNumbers;mustCreate=true;}else{if(params.date)cal.setDate(params.date);cal.hide();}if(params.multiple){cal.multiple={};for(var i=params.multiple.length;--i>=0;){var d=params.multiple[i];var ds=d.print("%Y%m%d");cal.multiple[ds]=d;}}cal.showsOtherMonths=params.showOthers;cal.yearStep=params.step;cal.setRange(params.range[0],params.range[1]);cal.params=params;cal.setDateStatusHandler(params.dateStatusFunc);cal.getDateText=params.dateText;cal.setDateFormat(dateFmt);if(mustCreate)cal.create();cal.refresh();if(!params.position)cal.showAtElement(params.button||params.displayArea||params.inputField,params.align);else cal.showAt(params.position[0],params.position[1]);return false;};return cal;};
\ No newline at end of file
+Calendar.setup = function(params)
+{
+ function param_default(pname, def)
+ {
+ if (typeof params[pname] == "undefined")
+ {
+ params[pname] = def;
+ }
+ }
+ ;
+ param_default("inputField", null);
+ param_default("displayArea", null);
+ param_default("button", null);
+ param_default("eventName", "click");
+ param_default("ifFormat", "%Y/%m/%d");
+ param_default("daFormat", "%Y/%m/%d");
+ param_default("singleClick", true);
+ param_default("disableFunc", null);
+ param_default("dateStatusFunc", params["disableFunc"]);
+ param_default("dateText", null);
+ param_default("firstDay", null);
+ param_default("align", "Br");
+ param_default("range", [1900,2999]);
+ param_default("weekNumbers", true);
+ param_default("flat", null);
+ param_default("flatCallback", null);
+ param_default("onSelect", null);
+ param_default("onClose", null);
+ param_default("onUpdate", null);
+ param_default("date", null);
+ param_default("showsTime", false);
+ param_default("timeFormat", "24");
+ param_default("electric", true);
+ param_default("step", 2);
+ param_default("position", null);
+ param_default("cache", false);
+ param_default("showOthers", false);
+ param_default("multiple", null);
+ var tmp = ["inputField","displayArea","button"];
+ for (var i in tmp)
+ {
+ if (typeof params[tmp[i]] == "string")
+ {
+ params[tmp[i]] = document.getElementById(params[tmp[i]]);
+ }
+ }
+ if (!(params.flat || params.multiple || params.inputField || params.displayArea || params.button))
+ {
+ alert("Calendar.setup:\n Nothing to setup (no fields found). Please check your code");
+ return false;
+ }
+ function onSelect(cal)
+ {
+ var p = cal.params;
+ var update = (cal.dateClicked || p.electric);
+ if (update && p.inputField)
+ {
+ p.inputField.value = cal.date.print(p.ifFormat);
+ if (typeof p.inputField.onchange == "function")p.inputField.onchange();
+ }
+ if (update && p.displayArea)p.displayArea.innerHTML = cal.date.print(p.daFormat);
+ if (update && typeof p.onUpdate == "function")p.onUpdate(cal);
+ if (update && p.flat)
+ {
+ if (typeof p.flatCallback == "function")p.flatCallback(cal);
+ }
+ if (update && p.singleClick && cal.dateClicked)cal.callCloseHandler();
+ }
+ ;
+ if (params.flat != null)
+ {
+ if (typeof params.flat == "string")params.flat = document.getElementById(params.flat);
+ if (!params.flat)
+ {
+ alert("Calendar.setup:\n Flat specified but can't find parent.");
+ return false;
+ }
+ var cal = new Calendar(params.firstDay, params.date, params.onSelect || onSelect);
+ cal.showsOtherMonths = params.showOthers;
+ cal.showsTime = params.showsTime;
+ cal.time24 = (params.timeFormat == "24");
+ cal.params = params;
+ cal.weekNumbers = params.weekNumbers;
+ cal.setRange(params.range[0], params.range[1]);
+ cal.setDateStatusHandler(params.dateStatusFunc);
+ cal.getDateText = params.dateText;
+ if (params.ifFormat)
+ {
+ cal.setDateFormat(params.ifFormat);
+ }
+ if (params.inputField && typeof params.inputField.value == "string")
+ {
+ cal.parseDate(params.inputField.value);
+ }
+ cal.create(params.flat);
+ cal.show();
+ return false;
+ }
+ var triggerEl = params.button || params.displayArea || params.inputField;
+ triggerEl["on" + params.eventName] = function()
+ {
+ var dateEl = params.inputField || params.displayArea;
+ var dateFmt = params.inputField ? params.ifFormat : params.daFormat;
+ var mustCreate = false;
+ var cal = window.calendar;
+ if (dateEl)params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt);
+ if (!(cal && params.cache))
+ {
+ window.calendar = cal = new Calendar(params.firstDay, params.date, params.onSelect || onSelect, params.onClose || function(
+ cal)
+ {
+ cal.hide();
+ });
+ cal.showsTime = params.showsTime;
+ cal.time24 = (params.timeFormat == "24");
+ cal.weekNumbers = params.weekNumbers;
+ mustCreate = true;
+ }
+ else
+ {
+ if (params.date)cal.setDate(params.date);
+ cal.hide();
+ }
+ if (params.multiple)
+ {
+ cal.multiple = {};
+ for (var i = params.multiple.length; --i >= 0;)
+ {
+ var d = params.multiple[i];
+ var ds = d.print("%Y%m%d");
+ cal.multiple[ds] = d;
+ }
+ }
+ cal.showsOtherMonths = params.showOthers;
+ cal.yearStep = params.step;
+ cal.setRange(params.range[0], params.range[1]);
+ cal.params = params;
+ cal.setDateStatusHandler(params.dateStatusFunc);
+ cal.getDateText = params.dateText;
+ cal.setDateFormat(dateFmt);
+ if (mustCreate)cal.create();
+ cal.refresh();
+ if (!params.position)cal.showAtElement(params.button || params.displayArea || params.inputField, params.align);
+ else cal.showAt(params.position[0], params.position[1]);
+ return false;
+ };
+ return cal;
+};
\ No newline at end of file
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-system.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-system.css?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-system.css (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-system.css Mon Nov 12 14:22:31 2007
@@ -1,251 +1,275 @@
/* The main calendar widget. DIV containing a table. */
.calendar {
- position: relative;
- display: none;
- border: 1px solid;
- border-color: #fff #000 #000 #fff;
- font-size: 11px;
- cursor: default;
- background: Window;
- color: WindowText;
- font-family: tahoma,verdana,sans-serif;
+ position: relative;
+ display: none;
+ border: 1px solid;
+ border-color: #fff #000 #000 #fff;
+ font-size: 11px;
+ cursor: default;
+ background: Window;
+ color: WindowText;
+ font-family: tahoma, verdana, sans-serif;
}
.calendar table {
- border: 1px solid;
- border-color: #fff #000 #000 #fff;
- font-size: 11px;
- cursor: default;
- background: Window;
- color: WindowText;
- font-family: tahoma,verdana,sans-serif;
+ border: 1px solid;
+ border-color: #fff #000 #000 #fff;
+ font-size: 11px;
+ cursor: default;
+ background: Window;
+ color: WindowText;
+ font-family: tahoma, verdana, sans-serif;
}
/* Header part -- contains navigation buttons and day names. */
-.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
- text-align: center;
- padding: 1px;
- border: 1px solid;
- border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
- background: ButtonFace;
+.calendar .button {
+/* "<<", "<", ">", ">>" buttons have this class */
+ text-align: center;
+ padding: 1px;
+ border: 1px solid;
+ border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
+ background: ButtonFace;
}
.calendar .nav {
- background: ButtonFace url(menuarrow.gif) no-repeat 100% 100%;
+ background: ButtonFace url( menuarrow.gif ) no-repeat 100% 100%;
}
-.calendar thead .title { /* This holds the current "month, year" */
- font-weight: bold;
- padding: 1px;
- border: 1px solid #000;
- background: ActiveCaption;
- color: CaptionText;
- text-align: center;
+.calendar thead .title {
+/* This holds the current "month, year" */
+ font-weight: bold;
+ padding: 1px;
+ border: 1px solid #000;
+ background: ActiveCaption;
+ color: CaptionText;
+ text-align: center;
}
-.calendar thead .headrow { /* Row <TR> containing navigation buttons */
+.calendar thead .headrow {
+/* Row <TR> containing navigation buttons */
}
-.calendar thead .daynames { /* Row <TR> containing the day names */
+.calendar thead .daynames {
+/* Row <TR> containing the day names */
}
-.calendar thead .name { /* Cells <TD> containing the day names */
- border-bottom: 1px solid ButtonShadow;
- padding: 2px;
- text-align: center;
- background: ButtonFace;
- color: ButtonText;
+.calendar thead .name {
+/* Cells <TD> containing the day names */
+ border-bottom: 1px solid ButtonShadow;
+ padding: 2px;
+ text-align: center;
+ background: ButtonFace;
+ color: ButtonText;
}
-.calendar thead .weekend { /* How a weekend day name shows in header */
- color: #f00;
+.calendar thead .weekend {
+/* How a weekend day name shows in header */
+ color: #f00;
}
-.calendar thead .hilite { /* How do the buttons in header appear when hover */
- border: 2px solid;
- padding: 0px;
- border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
+.calendar thead .hilite {
+/* How do the buttons in header appear when hover */
+ border: 2px solid;
+ padding: 0px;
+ border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
}
-.calendar thead .active { /* Active (pressed) buttons in header */
- border-width: 1px;
- padding: 2px 0px 0px 2px;
- border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
+.calendar thead .active {
+/* Active (pressed) buttons in header */
+ border-width: 1px;
+ padding: 2px 0px 0px 2px;
+ border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
}
/* The body part -- contains all the days in month. */
-.calendar tbody .day { /* Cells <TD> containing month days dates */
- width: 2em;
- text-align: right;
- padding: 2px 4px 2px 2px;
+.calendar tbody .day {
+/* Cells <TD> containing month days dates */
+ width: 2em;
+ text-align: right;
+ padding: 2px 4px 2px 2px;
}
+
.calendar tbody .day.othermonth {
- font-size: 80%;
- color: #aaa;
+ font-size: 80%;
+ color: #aaa;
}
+
.calendar tbody .day.othermonth.oweekend {
- color: #faa;
+ color: #faa;
}
.calendar table .wn {
- padding: 2px 3px 2px 2px;
- border-right: 1px solid ButtonShadow;
- background: ButtonFace;
- color: ButtonText;
+ padding: 2px 3px 2px 2px;
+ border-right: 1px solid ButtonShadow;
+ background: ButtonFace;
+ color: ButtonText;
}
.calendar tbody .rowhilite td {
- background: Highlight;
- color: HighlightText;
+ background: Highlight;
+ color: HighlightText;
}
-.calendar tbody td.hilite { /* Hovered cells <TD> */
- padding: 1px 3px 1px 1px;
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
+.calendar tbody td.hilite {
+/* Hovered cells <TD> */
+ padding: 1px 3px 1px 1px;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
}
-.calendar tbody td.active { /* Active (pressed) cells <TD> */
- padding: 2px 2px 0px 2px;
- border: 1px solid;
- border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
+.calendar tbody td.active {
+/* Active (pressed) cells <TD> */
+ padding: 2px 2px 0px 2px;
+ border: 1px solid;
+ border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
}
-.calendar tbody td.selected { /* Cell showing selected date */
- font-weight: bold;
- border: 1px solid;
- border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
- padding: 2px 2px 0px 2px;
- background: ButtonFace;
- color: ButtonText;
+.calendar tbody td.selected {
+/* Cell showing selected date */
+ font-weight: bold;
+ border: 1px solid;
+ border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
+ padding: 2px 2px 0px 2px;
+ background: ButtonFace;
+ color: ButtonText;
}
-.calendar tbody td.weekend { /* Cells showing weekend days */
- color: #f00;
+.calendar tbody td.weekend {
+/* Cells showing weekend days */
+ color: #f00;
}
-.calendar tbody td.today { /* Cell showing today date */
- font-weight: bold;
- color: #00f;
+.calendar tbody td.today {
+/* Cell showing today date */
+ font-weight: bold;
+ color: #00f;
}
-.calendar tbody td.disabled { color: GrayText; }
+.calendar tbody td.disabled {
+ color: GrayText;
+}
-.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
- visibility: hidden;
+.calendar tbody .emptycell {
+/* Empty cells (the best is to hide them) */
+ visibility: hidden;
}
-.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
- display: none;
+.calendar tbody .emptyrow {
+/* Empty row (some months need less than 6 rows) */
+ display: none;
}
/* The footer part -- status bar and "Close" button */
-.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
+.calendar tfoot .footrow {
+/* The <TR> in footer (only one right now) */
}
-.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
- background: ButtonFace;
- padding: 1px;
- border: 1px solid;
- border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
- color: ButtonText;
- text-align: center;
-}
-
-.calendar tfoot .hilite { /* Hover style for buttons in footer */
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
- padding: 1px;
- background: #e4e0d8;
-}
-
-.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
- padding: 2px 0px 0px 2px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
+.calendar tfoot .ttip {
+/* Tooltip (status bar) cell <TD> */
+ background: ButtonFace;
+ padding: 1px;
+ border: 1px solid;
+ border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
+ color: ButtonText;
+ text-align: center;
+}
+
+.calendar tfoot .hilite {
+/* Hover style for buttons in footer */
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
+ padding: 1px;
+ background: #e4e0d8;
+}
+
+.calendar tfoot .active {
+/* Active (pressed) style for buttons in footer */
+ padding: 2px 0px 0px 2px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
}
/* Combo boxes (menus that display months/years for direct selection) */
.calendar .combo {
- position: absolute;
- display: none;
- width: 4em;
- top: 0px;
- left: 0px;
- cursor: default;
- border: 1px solid;
- border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
- background: Menu;
- color: MenuText;
- font-size: 90%;
- padding: 1px;
- z-index: 100;
+ position: absolute;
+ display: none;
+ width: 4em;
+ top: 0px;
+ left: 0px;
+ cursor: default;
+ border: 1px solid;
+ border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
+ background: Menu;
+ color: MenuText;
+ font-size: 90%;
+ padding: 1px;
+ z-index: 100;
}
.calendar .combo .label,
-.calendar .combo .label-IEfix {
- text-align: center;
- padding: 1px;
+ .calendar .combo .label-IEfix {
+ text-align: center;
+ padding: 1px;
}
.calendar .combo .label-IEfix {
- width: 4em;
+ width: 4em;
}
.calendar .combo .active {
- padding: 0px;
- border: 1px solid #000;
+ padding: 0px;
+ border: 1px solid #000;
}
.calendar .combo .hilite {
- background: Highlight;
- color: HighlightText;
+ background: Highlight;
+ color: HighlightText;
}
.calendar td.time {
- border-top: 1px solid ButtonShadow;
- padding: 1px 0px;
- text-align: center;
- background-color: ButtonFace;
+ border-top: 1px solid ButtonShadow;
+ padding: 1px 0px;
+ text-align: center;
+ background-color: ButtonFace;
}
.calendar td.time .hour,
-.calendar td.time .minute,
-.calendar td.time .ampm {
- padding: 0px 3px 0px 4px;
- border: 1px solid #889;
- font-weight: bold;
- background-color: Menu;
+ .calendar td.time .minute,
+ .calendar td.time .ampm {
+ padding: 0px 3px 0px 4px;
+ border: 1px solid #889;
+ font-weight: bold;
+ background-color: Menu;
}
.calendar td.time .ampm {
- text-align: center;
+ text-align: center;
}
.calendar td.time .colon {
- padding: 0px 2px 0px 3px;
- font-weight: bold;
+ padding: 0px 2px 0px 3px;
+ font-weight: bold;
}
.calendar td.time span.hilite {
- border-color: #000;
- background-color: Highlight;
- color: HighlightText;
+ border-color: #000;
+ background-color: Highlight;
+ color: HighlightText;
}
.calendar td.time span.active {
- border-color: #f00;
- background-color: #000;
- color: #0f0;
+ border-color: #f00;
+ background-color: #000;
+ color: #0f0;
}
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-tas.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-tas.css?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-tas.css (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-tas.css Mon Nov 12 14:22:31 2007
@@ -1,239 +1,267 @@
/* The main calendar widget. DIV containing a table. */
-div.calendar { position: relative; }
+div.calendar {
+ position: relative;
+}
.calendar, .calendar table {
- border: 1px solid #655;
- font-size: 11px;
- color: #000;
- cursor: default;
- background: #ffd;
- font-family: tahoma,verdana,sans-serif;
- filter:
-progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#DDDCCC,EndColorStr=#FFFFFF);
+ border: 1px solid #655;
+ font-size: 11px;
+ color: #000;
+ cursor: default;
+ background: #ffd;
+ font-family: tahoma, verdana, sans-serif;
+ filter:
+ progid: DXImageTransform . Microsoft . Gradient( GradientType = 0, StartColorStr = #DDDCCC, EndColorStr = #FFFFFF );
}
/* Header part -- contains navigation buttons and day names. */
-.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
- text-align: center; /* They are the navigation buttons */
- padding: 2px; /* Make the buttons seem like they're pressing */
- color:#363636;
+.calendar .button {
+/* "<<", "<", ">", ">>" buttons have this class */
+ text-align: center; /* They are the navigation buttons */
+ padding: 2px; /* Make the buttons seem like they're pressing */
+ color: #363636;
}
.calendar .nav {
- background: #edc url(menuarrow.gif) no-repeat 100% 100%;
+ background: #edc url( menuarrow.gif ) no-repeat 100% 100%;
+}
+
+.calendar thead .title {
+/* This holds the current "month, year" */
+ font-weight: bold; /* Pressing it will take you to the current date */
+ text-align: center;
+ background: #654;
+ color: #363636;
+ padding: 2px;
+ filter:
+ progid: DXImageTransform . Microsoft . Gradient( GradientType = 0, StartColorStr = #ffffff, EndColorStr = #dddccc );
+}
+
+.calendar thead .headrow {
+/* Row <TR> containing navigation buttons */
+/*background: #3B86A0;*/
+ color: #363636;
+ font-weight: bold;
+ filter:
+ progid: DXImageTransform . Microsoft . Gradient( GradientType = 0, StartColorStr = #ffffff, EndColorStr = #3b86a0 );
}
-.calendar thead .title { /* This holds the current "month, year" */
- font-weight: bold; /* Pressing it will take you to the current date */
- text-align: center;
- background: #654;
- color: #363636;
- padding: 2px;
- filter:
-progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#ffffff,EndColorStr=#dddccc);
-}
-
-.calendar thead .headrow { /* Row <TR> containing navigation buttons */
- /*background: #3B86A0;*/
- color: #363636;
- font-weight: bold;
-filter:
-progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#ffffff,EndColorStr=#3b86a0);
-}
-
-.calendar thead .name { /* Cells <TD> containing the day names */
- border-bottom: 1px solid #655;
- padding: 2px;
- text-align: center;
- color: #363636;
+.calendar thead .name {
+/* Cells <TD> containing the day names */
+ border-bottom: 1px solid #655;
+ padding: 2px;
+ text-align: center;
+ color: #363636;
filter:
-progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#DDDCCC,EndColorStr=#FFFFFF);
+ progid: DXImageTransform . Microsoft . Gradient( GradientType = 0, StartColorStr = #DDDCCC, EndColorStr = #FFFFFF );
}
-.calendar thead .weekend { /* How a weekend day name shows in header */
- color: #f00;
+.calendar thead .weekend {
+/* How a weekend day name shows in header */
+ color: #f00;
}
-.calendar thead .hilite { /* How do the buttons in header appear when hover */
- background-color: #ffcc86;
- color: #000;
- border: 1px solid #b59345;
- padding: 1px;
+.calendar thead .hilite {
+/* How do the buttons in header appear when hover */
+ background-color: #ffcc86;
+ color: #000;
+ border: 1px solid #b59345;
+ padding: 1px;
}
-.calendar thead .active { /* Active (pressed) buttons in header */
- background-color: #c77;
- padding: 2px 0px 0px 2px;
+.calendar thead .active {
+/* Active (pressed) buttons in header */
+ background-color: #c77;
+ padding: 2px 0px 0px 2px;
}
-.calendar thead .daynames { /* Row <TR> containing the day names */
- background: #fed;
+.calendar thead .daynames {
+/* Row <TR> containing the day names */
+ background: #fed;
}
/* The body part -- contains all the days in month. */
-.calendar tbody .day { /* Cells <TD> containing month days dates */
- width: 2em;
- text-align: right;
- padding: 2px 4px 2px 2px;
+.calendar tbody .day {
+/* Cells <TD> containing month days dates */
+ width: 2em;
+ text-align: right;
+ padding: 2px 4px 2px 2px;
}
+
.calendar tbody .day.othermonth {
- font-size: 80%;
- color: #aaa;
+ font-size: 80%;
+ color: #aaa;
}
+
.calendar tbody .day.othermonth.oweekend {
- color: #faa;
+ color: #faa;
}
.calendar table .wn {
- padding: 2px 3px 2px 2px;
- border-right: 1px solid #000;
- background: #fed;
+ padding: 2px 3px 2px 2px;
+ border-right: 1px solid #000;
+ background: #fed;
}
.calendar tbody .rowhilite td {
- background: #ddf;
-
+ background: #ddf;
+
}
.calendar tbody .rowhilite td.wn {
- background: #efe;
+ background: #efe;
}
-.calendar tbody td.hilite { /* Hovered cells <TD> */
- background: #ffe;
- padding: 1px 3px 1px 1px;
- border: 1px solid #bbb;
+.calendar tbody td.hilite {
+/* Hovered cells <TD> */
+ background: #ffe;
+ padding: 1px 3px 1px 1px;
+ border: 1px solid #bbb;
}
-.calendar tbody td.active { /* Active (pressed) cells <TD> */
- background: #ddc;
- padding: 2px 2px 0px 2px;
+.calendar tbody td.active {
+/* Active (pressed) cells <TD> */
+ background: #ddc;
+ padding: 2px 2px 0px 2px;
}
-.calendar tbody td.selected { /* Cell showing today date */
- font-weight: bold;
- border: 1px solid #000;
- padding: 1px 3px 1px 1px;
- background: #fea;
+.calendar tbody td.selected {
+/* Cell showing today date */
+ font-weight: bold;
+ border: 1px solid #000;
+ padding: 1px 3px 1px 1px;
+ background: #fea;
}
-.calendar tbody td.weekend { /* Cells showing weekend days */
- color: #f00;
+.calendar tbody td.weekend {
+/* Cells showing weekend days */
+ color: #f00;
}
-.calendar tbody td.today { font-weight: bold; }
+.calendar tbody td.today {
+ font-weight: bold;
+}
-.calendar tbody .disabled { color: #999; }
+.calendar tbody .disabled {
+ color: #999;
+}
-.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
- visibility: hidden;
+.calendar tbody .emptycell {
+/* Empty cells (the best is to hide them) */
+ visibility: hidden;
}
-.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
- display: none;
+.calendar tbody .emptyrow {
+/* Empty row (some months need less than 6 rows) */
+ display: none;
}
/* The footer part -- status bar and "Close" button */
-.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
- text-align: center;
- background: #988;
- color: #000;
-
-}
-
-.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
- border-top: 1px solid #655;
- background: #dcb;
- color: #363636;
- font-weight: bold;
- filter:
-progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#FFFFFF,EndColorStr=#DDDCCC);
-}
-.calendar tfoot .hilite { /* Hover style for buttons in footer */
- background: #faa;
- border: 1px solid #f40;
- padding: 1px;
-}
-
-.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
- background: #c77;
- padding: 2px 0px 0px 2px;
+.calendar tfoot .footrow {
+/* The <TR> in footer (only one right now) */
+ text-align: center;
+ background: #988;
+ color: #000;
+
+}
+
+.calendar tfoot .ttip {
+/* Tooltip (status bar) cell <TD> */
+ border-top: 1px solid #655;
+ background: #dcb;
+ color: #363636;
+ font-weight: bold;
+ filter:
+ progid: DXImageTransform . Microsoft . Gradient( GradientType = 0, StartColorStr = #FFFFFF, EndColorStr = #DDDCCC );
+}
+
+.calendar tfoot .hilite {
+/* Hover style for buttons in footer */
+ background: #faa;
+ border: 1px solid #f40;
+ padding: 1px;
+}
+
+.calendar tfoot .active {
+/* Active (pressed) style for buttons in footer */
+ background: #c77;
+ padding: 2px 0px 0px 2px;
}
/* Combo boxes (menus that display months/years for direct selection) */
.combo {
- position: absolute;
- display: none;
- top: 0px;
- left: 0px;
- width: 4em;
- cursor: default;
- border: 1px solid #655;
- background: #ffe;
- color: #000;
- font-size: smaller;
- z-index: 100;
+ position: absolute;
+ display: none;
+ top: 0px;
+ left: 0px;
+ width: 4em;
+ cursor: default;
+ border: 1px solid #655;
+ background: #ffe;
+ color: #000;
+ font-size: smaller;
+ z-index: 100;
}
.combo .label,
-.combo .label-IEfix {
- text-align: center;
- padding: 1px;
+ .combo .label-IEfix {
+ text-align: center;
+ padding: 1px;
}
.combo .label-IEfix {
- width: 4em;
+ width: 4em;
}
.combo .hilite {
- background: #fc8;
+ background: #fc8;
}
.combo .active {
- border-top: 1px solid #a64;
- border-bottom: 1px solid #a64;
- background: #fee;
- font-weight: bold;
+ border-top: 1px solid #a64;
+ border-bottom: 1px solid #a64;
+ background: #fee;
+ font-weight: bold;
}
.calendar td.time {
- border-top: 1px solid #a88;
- padding: 1px 0px;
- text-align: center;
- background-color: #fed;
+ border-top: 1px solid #a88;
+ padding: 1px 0px;
+ text-align: center;
+ background-color: #fed;
}
.calendar td.time .hour,
-.calendar td.time .minute,
-.calendar td.time .ampm {
- padding: 0px 3px 0px 4px;
- border: 1px solid #988;
- font-weight: bold;
- background-color: #fff;
+ .calendar td.time .minute,
+ .calendar td.time .ampm {
+ padding: 0px 3px 0px 4px;
+ border: 1px solid #988;
+ font-weight: bold;
+ background-color: #fff;
}
.calendar td.time .ampm {
- text-align: center;
+ text-align: center;
}
.calendar td.time .colon {
- padding: 0px 2px 0px 3px;
- font-weight: bold;
+ padding: 0px 2px 0px 3px;
+ font-weight: bold;
}
.calendar td.time span.hilite {
- border-color: #000;
- background-color: #866;
- color: #fff;
+ border-color: #000;
+ background-color: #866;
+ color: #fff;
}
.calendar td.time span.active {
- border-color: #f00;
- background-color: #000;
- color: #0f0;
+ border-color: #f00;
+ background-color: #000;
+ color: #0f0;
}
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-1.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-1.css?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-1.css (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-1.css Mon Nov 12 14:22:31 2007
@@ -1,271 +1,295 @@
/* The main calendar widget. DIV containing a table. */
.calendar {
- position: relative;
- display: none;
- border-top: 2px solid #fff;
- border-right: 2px solid #000;
- border-bottom: 2px solid #000;
- border-left: 2px solid #fff;
- font-size: 11px;
- color: #000;
- cursor: default;
- background: #d4d0c8;
- font-family: tahoma,verdana,sans-serif;
+ position: relative;
+ display: none;
+ border-top: 2px solid #fff;
+ border-right: 2px solid #000;
+ border-bottom: 2px solid #000;
+ border-left: 2px solid #fff;
+ font-size: 11px;
+ color: #000;
+ cursor: default;
+ background: #d4d0c8;
+ font-family: tahoma, verdana, sans-serif;
}
.calendar table {
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
- font-size: 11px;
- color: #000;
- cursor: default;
- background: #d4d0c8;
- font-family: tahoma,verdana,sans-serif;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
+ font-size: 11px;
+ color: #000;
+ cursor: default;
+ background: #d4d0c8;
+ font-family: tahoma, verdana, sans-serif;
}
/* Header part -- contains navigation buttons and day names. */
-.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
- text-align: center;
- padding: 1px;
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
+.calendar .button {
+/* "<<", "<", ">", ">>" buttons have this class */
+ text-align: center;
+ padding: 1px;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
}
.calendar .nav {
- background: transparent url(menuarrow.gif) no-repeat 100% 100%;
+ background: transparent url( menuarrow.gif ) no-repeat 100% 100%;
}
-.calendar thead .title { /* This holds the current "month, year" */
- font-weight: bold;
- padding: 1px;
- border: 1px solid #000;
- background: #848078;
- color: #fff;
- text-align: center;
+.calendar thead .title {
+/* This holds the current "month, year" */
+ font-weight: bold;
+ padding: 1px;
+ border: 1px solid #000;
+ background: #848078;
+ color: #fff;
+ text-align: center;
}
-.calendar thead .headrow { /* Row <TR> containing navigation buttons */
+.calendar thead .headrow {
+/* Row <TR> containing navigation buttons */
}
-.calendar thead .daynames { /* Row <TR> containing the day names */
+.calendar thead .daynames {
+/* Row <TR> containing the day names */
}
-.calendar thead .name { /* Cells <TD> containing the day names */
- border-bottom: 1px solid #000;
- padding: 2px;
- text-align: center;
- background: #f4f0e8;
+.calendar thead .name {
+/* Cells <TD> containing the day names */
+ border-bottom: 1px solid #000;
+ padding: 2px;
+ text-align: center;
+ background: #f4f0e8;
}
-.calendar thead .weekend { /* How a weekend day name shows in header */
- color: #f00;
+.calendar thead .weekend {
+/* How a weekend day name shows in header */
+ color: #f00;
}
-.calendar thead .hilite { /* How do the buttons in header appear when hover */
- border-top: 2px solid #fff;
- border-right: 2px solid #000;
- border-bottom: 2px solid #000;
- border-left: 2px solid #fff;
- padding: 0px;
- background-color: #e4e0d8;
+.calendar thead .hilite {
+/* How do the buttons in header appear when hover */
+ border-top: 2px solid #fff;
+ border-right: 2px solid #000;
+ border-bottom: 2px solid #000;
+ border-left: 2px solid #fff;
+ padding: 0px;
+ background-color: #e4e0d8;
}
-.calendar thead .active { /* Active (pressed) buttons in header */
- padding: 2px 0px 0px 2px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
- background-color: #c4c0b8;
+.calendar thead .active {
+/* Active (pressed) buttons in header */
+ padding: 2px 0px 0px 2px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
+ background-color: #c4c0b8;
}
/* The body part -- contains all the days in month. */
-.calendar tbody .day { /* Cells <TD> containing month days dates */
- width: 2em;
- text-align: right;
- padding: 2px 4px 2px 2px;
+.calendar tbody .day {
+/* Cells <TD> containing month days dates */
+ width: 2em;
+ text-align: right;
+ padding: 2px 4px 2px 2px;
}
+
.calendar tbody .day.othermonth {
- font-size: 80%;
- color: #aaa;
+ font-size: 80%;
+ color: #aaa;
}
+
.calendar tbody .day.othermonth.oweekend {
- color: #faa;
+ color: #faa;
}
.calendar table .wn {
- padding: 2px 3px 2px 2px;
- border-right: 1px solid #000;
- background: #f4f0e8;
+ padding: 2px 3px 2px 2px;
+ border-right: 1px solid #000;
+ background: #f4f0e8;
}
.calendar tbody .rowhilite td {
- background: #e4e0d8;
+ background: #e4e0d8;
}
.calendar tbody .rowhilite td.wn {
- background: #d4d0c8;
+ background: #d4d0c8;
}
-.calendar tbody td.hilite { /* Hovered cells <TD> */
- padding: 1px 3px 1px 1px;
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
+.calendar tbody td.hilite {
+/* Hovered cells <TD> */
+ padding: 1px 3px 1px 1px;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
}
-.calendar tbody td.active { /* Active (pressed) cells <TD> */
- padding: 2px 2px 0px 2px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
+.calendar tbody td.active {
+/* Active (pressed) cells <TD> */
+ padding: 2px 2px 0px 2px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
}
-.calendar tbody td.selected { /* Cell showing selected date */
- font-weight: bold;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
- padding: 2px 2px 0px 2px;
- background: #e4e0d8;
+.calendar tbody td.selected {
+/* Cell showing selected date */
+ font-weight: bold;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
+ padding: 2px 2px 0px 2px;
+ background: #e4e0d8;
}
-.calendar tbody td.weekend { /* Cells showing weekend days */
- color: #f00;
+.calendar tbody td.weekend {
+/* Cells showing weekend days */
+ color: #f00;
}
-.calendar tbody td.today { /* Cell showing today date */
- font-weight: bold;
- color: #00f;
+.calendar tbody td.today {
+/* Cell showing today date */
+ font-weight: bold;
+ color: #00f;
}
-.calendar tbody .disabled { color: #999; }
+.calendar tbody .disabled {
+ color: #999;
+}
-.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
- visibility: hidden;
+.calendar tbody .emptycell {
+/* Empty cells (the best is to hide them) */
+ visibility: hidden;
}
-.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
- display: none;
+.calendar tbody .emptyrow {
+/* Empty row (some months need less than 6 rows) */
+ display: none;
}
/* The footer part -- status bar and "Close" button */
-.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
+.calendar tfoot .footrow {
+/* The <TR> in footer (only one right now) */
}
-.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
- background: #f4f0e8;
- padding: 1px;
- border: 1px solid #000;
- background: #848078;
- color: #fff;
- text-align: center;
-}
-
-.calendar tfoot .hilite { /* Hover style for buttons in footer */
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
- padding: 1px;
- background: #e4e0d8;
-}
-
-.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
- padding: 2px 0px 0px 2px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
+.calendar tfoot .ttip {
+/* Tooltip (status bar) cell <TD> */
+ background: #f4f0e8;
+ padding: 1px;
+ border: 1px solid #000;
+ background: #848078;
+ color: #fff;
+ text-align: center;
+}
+
+.calendar tfoot .hilite {
+/* Hover style for buttons in footer */
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
+ padding: 1px;
+ background: #e4e0d8;
+}
+
+.calendar tfoot .active {
+/* Active (pressed) style for buttons in footer */
+ padding: 2px 0px 0px 2px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
}
/* Combo boxes (menus that display months/years for direct selection) */
.calendar .combo {
- position: absolute;
- display: none;
- width: 4em;
- top: 0px;
- left: 0px;
- cursor: default;
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
- background: #e4e0d8;
- font-size: 90%;
- padding: 1px;
- z-index: 100;
+ position: absolute;
+ display: none;
+ width: 4em;
+ top: 0px;
+ left: 0px;
+ cursor: default;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
+ background: #e4e0d8;
+ font-size: 90%;
+ padding: 1px;
+ z-index: 100;
}
.calendar .combo .label,
-.calendar .combo .label-IEfix {
- text-align: center;
- padding: 1px;
+ .calendar .combo .label-IEfix {
+ text-align: center;
+ padding: 1px;
}
.calendar .combo .label-IEfix {
- width: 4em;
+ width: 4em;
}
.calendar .combo .active {
- background: #c4c0b8;
- padding: 0px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
+ background: #c4c0b8;
+ padding: 0px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
}
.calendar .combo .hilite {
- background: #048;
- color: #fea;
+ background: #048;
+ color: #fea;
}
.calendar td.time {
- border-top: 1px solid #000;
- padding: 1px 0px;
- text-align: center;
- background-color: #f4f0e8;
+ border-top: 1px solid #000;
+ padding: 1px 0px;
+ text-align: center;
+ background-color: #f4f0e8;
}
.calendar td.time .hour,
-.calendar td.time .minute,
-.calendar td.time .ampm {
- padding: 0px 3px 0px 4px;
- border: 1px solid #889;
- font-weight: bold;
- background-color: #fff;
+ .calendar td.time .minute,
+ .calendar td.time .ampm {
+ padding: 0px 3px 0px 4px;
+ border: 1px solid #889;
+ font-weight: bold;
+ background-color: #fff;
}
.calendar td.time .ampm {
- text-align: center;
+ text-align: center;
}
.calendar td.time .colon {
- padding: 0px 2px 0px 3px;
- font-weight: bold;
+ padding: 0px 2px 0px 3px;
+ font-weight: bold;
}
.calendar td.time span.hilite {
- border-color: #000;
- background-color: #766;
- color: #fff;
+ border-color: #000;
+ background-color: #766;
+ color: #fff;
}
.calendar td.time span.active {
- border-color: #f00;
- background-color: #000;
- color: #0f0;
+ border-color: #f00;
+ background-color: #000;
+ color: #0f0;
}
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-2.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-2.css?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-2.css (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-2.css Mon Nov 12 14:22:31 2007
@@ -1,271 +1,295 @@
/* The main calendar widget. DIV containing a table. */
.calendar {
- position: relative;
- display: none;
- border-top: 2px solid #fff;
- border-right: 2px solid #000;
- border-bottom: 2px solid #000;
- border-left: 2px solid #fff;
- font-size: 11px;
- color: #000;
- cursor: default;
- background: #d4c8d0;
- font-family: tahoma,verdana,sans-serif;
+ position: relative;
+ display: none;
+ border-top: 2px solid #fff;
+ border-right: 2px solid #000;
+ border-bottom: 2px solid #000;
+ border-left: 2px solid #fff;
+ font-size: 11px;
+ color: #000;
+ cursor: default;
+ background: #d4c8d0;
+ font-family: tahoma, verdana, sans-serif;
}
.calendar table {
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
- font-size: 11px;
- color: #000;
- cursor: default;
- background: #d4c8d0;
- font-family: tahoma,verdana,sans-serif;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
+ font-size: 11px;
+ color: #000;
+ cursor: default;
+ background: #d4c8d0;
+ font-family: tahoma, verdana, sans-serif;
}
/* Header part -- contains navigation buttons and day names. */
-.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
- text-align: center;
- padding: 1px;
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
+.calendar .button {
+/* "<<", "<", ">", ">>" buttons have this class */
+ text-align: center;
+ padding: 1px;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
}
.calendar .nav {
- background: transparent url(menuarrow.gif) no-repeat 100% 100%;
+ background: transparent url( menuarrow.gif ) no-repeat 100% 100%;
}
-.calendar thead .title { /* This holds the current "month, year" */
- font-weight: bold;
- padding: 1px;
- border: 1px solid #000;
- background: #847880;
- color: #fff;
- text-align: center;
+.calendar thead .title {
+/* This holds the current "month, year" */
+ font-weight: bold;
+ padding: 1px;
+ border: 1px solid #000;
+ background: #847880;
+ color: #fff;
+ text-align: center;
}
-.calendar thead .headrow { /* Row <TR> containing navigation buttons */
+.calendar thead .headrow {
+/* Row <TR> containing navigation buttons */
}
-.calendar thead .daynames { /* Row <TR> containing the day names */
+.calendar thead .daynames {
+/* Row <TR> containing the day names */
}
-.calendar thead .name { /* Cells <TD> containing the day names */
- border-bottom: 1px solid #000;
- padding: 2px;
- text-align: center;
- background: #f4e8f0;
+.calendar thead .name {
+/* Cells <TD> containing the day names */
+ border-bottom: 1px solid #000;
+ padding: 2px;
+ text-align: center;
+ background: #f4e8f0;
}
-.calendar thead .weekend { /* How a weekend day name shows in header */
- color: #f00;
+.calendar thead .weekend {
+/* How a weekend day name shows in header */
+ color: #f00;
}
-.calendar thead .hilite { /* How do the buttons in header appear when hover */
- border-top: 2px solid #fff;
- border-right: 2px solid #000;
- border-bottom: 2px solid #000;
- border-left: 2px solid #fff;
- padding: 0px;
- background-color: #e4d8e0;
+.calendar thead .hilite {
+/* How do the buttons in header appear when hover */
+ border-top: 2px solid #fff;
+ border-right: 2px solid #000;
+ border-bottom: 2px solid #000;
+ border-left: 2px solid #fff;
+ padding: 0px;
+ background-color: #e4d8e0;
}
-.calendar thead .active { /* Active (pressed) buttons in header */
- padding: 2px 0px 0px 2px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
- background-color: #c4b8c0;
+.calendar thead .active {
+/* Active (pressed) buttons in header */
+ padding: 2px 0px 0px 2px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
+ background-color: #c4b8c0;
}
/* The body part -- contains all the days in month. */
-.calendar tbody .day { /* Cells <TD> containing month days dates */
- width: 2em;
- text-align: right;
- padding: 2px 4px 2px 2px;
+.calendar tbody .day {
+/* Cells <TD> containing month days dates */
+ width: 2em;
+ text-align: right;
+ padding: 2px 4px 2px 2px;
}
+
.calendar tbody .day.othermonth {
- font-size: 80%;
- color: #aaa;
+ font-size: 80%;
+ color: #aaa;
}
+
.calendar tbody .day.othermonth.oweekend {
- color: #faa;
+ color: #faa;
}
.calendar table .wn {
- padding: 2px 3px 2px 2px;
- border-right: 1px solid #000;
- background: #f4e8f0;
+ padding: 2px 3px 2px 2px;
+ border-right: 1px solid #000;
+ background: #f4e8f0;
}
.calendar tbody .rowhilite td {
- background: #e4d8e0;
+ background: #e4d8e0;
}
.calendar tbody .rowhilite td.wn {
- background: #d4c8d0;
+ background: #d4c8d0;
}
-.calendar tbody td.hilite { /* Hovered cells <TD> */
- padding: 1px 3px 1px 1px;
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
+.calendar tbody td.hilite {
+/* Hovered cells <TD> */
+ padding: 1px 3px 1px 1px;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
}
-.calendar tbody td.active { /* Active (pressed) cells <TD> */
- padding: 2px 2px 0px 2px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
+.calendar tbody td.active {
+/* Active (pressed) cells <TD> */
+ padding: 2px 2px 0px 2px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
}
-.calendar tbody td.selected { /* Cell showing selected date */
- font-weight: bold;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
- padding: 2px 2px 0px 2px;
- background: #e4d8e0;
+.calendar tbody td.selected {
+/* Cell showing selected date */
+ font-weight: bold;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
+ padding: 2px 2px 0px 2px;
+ background: #e4d8e0;
}
-.calendar tbody td.weekend { /* Cells showing weekend days */
- color: #f00;
+.calendar tbody td.weekend {
+/* Cells showing weekend days */
+ color: #f00;
}
-.calendar tbody td.today { /* Cell showing today date */
- font-weight: bold;
- color: #00f;
+.calendar tbody td.today {
+/* Cell showing today date */
+ font-weight: bold;
+ color: #00f;
}
-.calendar tbody .disabled { color: #999; }
+.calendar tbody .disabled {
+ color: #999;
+}
-.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
- visibility: hidden;
+.calendar tbody .emptycell {
+/* Empty cells (the best is to hide them) */
+ visibility: hidden;
}
-.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
- display: none;
+.calendar tbody .emptyrow {
+/* Empty row (some months need less than 6 rows) */
+ display: none;
}
/* The footer part -- status bar and "Close" button */
-.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
+.calendar tfoot .footrow {
+/* The <TR> in footer (only one right now) */
}
-.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
- background: #f4e8f0;
- padding: 1px;
- border: 1px solid #000;
- background: #847880;
- color: #fff;
- text-align: center;
-}
-
-.calendar tfoot .hilite { /* Hover style for buttons in footer */
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
- padding: 1px;
- background: #e4d8e0;
-}
-
-.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
- padding: 2px 0px 0px 2px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
+.calendar tfoot .ttip {
+/* Tooltip (status bar) cell <TD> */
+ background: #f4e8f0;
+ padding: 1px;
+ border: 1px solid #000;
+ background: #847880;
+ color: #fff;
+ text-align: center;
+}
+
+.calendar tfoot .hilite {
+/* Hover style for buttons in footer */
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
+ padding: 1px;
+ background: #e4d8e0;
+}
+
+.calendar tfoot .active {
+/* Active (pressed) style for buttons in footer */
+ padding: 2px 0px 0px 2px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
}
/* Combo boxes (menus that display months/years for direct selection) */
.calendar .combo {
- position: absolute;
- display: none;
- width: 4em;
- top: 0px;
- left: 0px;
- cursor: default;
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
- background: #e4d8e0;
- font-size: 90%;
- padding: 1px;
- z-index: 100;
+ position: absolute;
+ display: none;
+ width: 4em;
+ top: 0px;
+ left: 0px;
+ cursor: default;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
+ background: #e4d8e0;
+ font-size: 90%;
+ padding: 1px;
+ z-index: 100;
}
.calendar .combo .label,
-.calendar .combo .label-IEfix {
- text-align: center;
- padding: 1px;
+ .calendar .combo .label-IEfix {
+ text-align: center;
+ padding: 1px;
}
.calendar .combo .label-IEfix {
- width: 4em;
+ width: 4em;
}
.calendar .combo .active {
- background: #d4c8d0;
- padding: 0px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
+ background: #d4c8d0;
+ padding: 0px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
}
.calendar .combo .hilite {
- background: #408;
- color: #fea;
+ background: #408;
+ color: #fea;
}
.calendar td.time {
- border-top: 1px solid #000;
- padding: 1px 0px;
- text-align: center;
- background-color: #f4f0e8;
+ border-top: 1px solid #000;
+ padding: 1px 0px;
+ text-align: center;
+ background-color: #f4f0e8;
}
.calendar td.time .hour,
-.calendar td.time .minute,
-.calendar td.time .ampm {
- padding: 0px 3px 0px 4px;
- border: 1px solid #889;
- font-weight: bold;
- background-color: #fff;
+ .calendar td.time .minute,
+ .calendar td.time .ampm {
+ padding: 0px 3px 0px 4px;
+ border: 1px solid #889;
+ font-weight: bold;
+ background-color: #fff;
}
.calendar td.time .ampm {
- text-align: center;
+ text-align: center;
}
.calendar td.time .colon {
- padding: 0px 2px 0px 3px;
- font-weight: bold;
+ padding: 0px 2px 0px 3px;
+ font-weight: bold;
}
.calendar td.time span.hilite {
- border-color: #000;
- background-color: #766;
- color: #fff;
+ border-color: #000;
+ background-color: #766;
+ color: #fff;
}
.calendar td.time span.active {
- border-color: #f00;
- background-color: #000;
- color: #0f0;
+ border-color: #f00;
+ background-color: #000;
+ color: #0f0;
}
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-cold-1.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-cold-1.css?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-cold-1.css (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-win2k-cold-1.css Mon Nov 12 14:22:31 2007
@@ -1,265 +1,289 @@
/* The main calendar widget. DIV containing a table. */
.calendar {
- position: relative;
- display: none;
- border-top: 2px solid #fff;
- border-right: 2px solid #000;
- border-bottom: 2px solid #000;
- border-left: 2px solid #fff;
- font-size: 11px;
- color: #000;
- cursor: default;
- background: #c8d0d4;
- font-family: tahoma,verdana,sans-serif;
+ position: relative;
+ display: none;
+ border-top: 2px solid #fff;
+ border-right: 2px solid #000;
+ border-bottom: 2px solid #000;
+ border-left: 2px solid #fff;
+ font-size: 11px;
+ color: #000;
+ cursor: default;
+ background: #c8d0d4;
+ font-family: tahoma, verdana, sans-serif;
}
.calendar table {
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
- font-size: 11px;
- color: #000;
- cursor: default;
- background: #c8d0d4;
- font-family: tahoma,verdana,sans-serif;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
+ font-size: 11px;
+ color: #000;
+ cursor: default;
+ background: #c8d0d4;
+ font-family: tahoma, verdana, sans-serif;
}
/* Header part -- contains navigation buttons and day names. */
-.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
- text-align: center;
- padding: 1px;
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
+.calendar .button {
+/* "<<", "<", ">", ">>" buttons have this class */
+ text-align: center;
+ padding: 1px;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
}
.calendar .nav {
- background: transparent url(menuarrow.gif) no-repeat 100% 100%;
+ background: transparent url( menuarrow.gif ) no-repeat 100% 100%;
}
-.calendar thead .title { /* This holds the current "month, year" */
- font-weight: bold;
- padding: 1px;
- border: 1px solid #000;
- background: #788084;
- color: #fff;
- text-align: center;
+.calendar thead .title {
+/* This holds the current "month, year" */
+ font-weight: bold;
+ padding: 1px;
+ border: 1px solid #000;
+ background: #788084;
+ color: #fff;
+ text-align: center;
}
-.calendar thead .headrow { /* Row <TR> containing navigation buttons */
+.calendar thead .headrow {
+/* Row <TR> containing navigation buttons */
}
-.calendar thead .daynames { /* Row <TR> containing the day names */
+.calendar thead .daynames {
+/* Row <TR> containing the day names */
}
-.calendar thead .name { /* Cells <TD> containing the day names */
- border-bottom: 1px solid #000;
- padding: 2px;
- text-align: center;
- background: #e8f0f4;
+.calendar thead .name {
+/* Cells <TD> containing the day names */
+ border-bottom: 1px solid #000;
+ padding: 2px;
+ text-align: center;
+ background: #e8f0f4;
}
-.calendar thead .weekend { /* How a weekend day name shows in header */
- color: #f00;
+.calendar thead .weekend {
+/* How a weekend day name shows in header */
+ color: #f00;
}
-.calendar thead .hilite { /* How do the buttons in header appear when hover */
- border-top: 2px solid #fff;
- border-right: 2px solid #000;
- border-bottom: 2px solid #000;
- border-left: 2px solid #fff;
- padding: 0px;
- background-color: #d8e0e4;
+.calendar thead .hilite {
+/* How do the buttons in header appear when hover */
+ border-top: 2px solid #fff;
+ border-right: 2px solid #000;
+ border-bottom: 2px solid #000;
+ border-left: 2px solid #fff;
+ padding: 0px;
+ background-color: #d8e0e4;
}
-.calendar thead .active { /* Active (pressed) buttons in header */
- padding: 2px 0px 0px 2px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
- background-color: #b8c0c4;
+.calendar thead .active {
+/* Active (pressed) buttons in header */
+ padding: 2px 0px 0px 2px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
+ background-color: #b8c0c4;
}
/* The body part -- contains all the days in month. */
-.calendar tbody .day { /* Cells <TD> containing month days dates */
- width: 2em;
- text-align: right;
- padding: 2px 4px 2px 2px;
+.calendar tbody .day {
+/* Cells <TD> containing month days dates */
+ width: 2em;
+ text-align: right;
+ padding: 2px 4px 2px 2px;
}
+
.calendar tbody .day.othermonth {
- font-size: 80%;
- color: #aaa;
+ font-size: 80%;
+ color: #aaa;
}
+
.calendar tbody .day.othermonth.oweekend {
- color: #faa;
+ color: #faa;
}
.calendar table .wn {
- padding: 2px 3px 2px 2px;
- border-right: 1px solid #000;
- background: #e8f4f0;
+ padding: 2px 3px 2px 2px;
+ border-right: 1px solid #000;
+ background: #e8f4f0;
}
.calendar tbody .rowhilite td {
- background: #d8e4e0;
+ background: #d8e4e0;
}
.calendar tbody .rowhilite td.wn {
- background: #c8d4d0;
+ background: #c8d4d0;
}
-.calendar tbody td.hilite { /* Hovered cells <TD> */
- padding: 1px 3px 1px 1px;
- border: 1px solid;
- border-color: #fff #000 #000 #fff;
+.calendar tbody td.hilite {
+/* Hovered cells <TD> */
+ padding: 1px 3px 1px 1px;
+ border: 1px solid;
+ border-color: #fff #000 #000 #fff;
}
-.calendar tbody td.active { /* Active (pressed) cells <TD> */
- padding: 2px 2px 0px 2px;
- border: 1px solid;
- border-color: #000 #fff #fff #000;
+.calendar tbody td.active {
+/* Active (pressed) cells <TD> */
+ padding: 2px 2px 0px 2px;
+ border: 1px solid;
+ border-color: #000 #fff #fff #000;
}
-.calendar tbody td.selected { /* Cell showing selected date */
- font-weight: bold;
- padding: 2px 2px 0px 2px;
- border: 1px solid;
- border-color: #000 #fff #fff #000;
- background: #d8e0e4;
+.calendar tbody td.selected {
+/* Cell showing selected date */
+ font-weight: bold;
+ padding: 2px 2px 0px 2px;
+ border: 1px solid;
+ border-color: #000 #fff #fff #000;
+ background: #d8e0e4;
}
-.calendar tbody td.weekend { /* Cells showing weekend days */
- color: #f00;
+.calendar tbody td.weekend {
+/* Cells showing weekend days */
+ color: #f00;
}
-.calendar tbody td.today { /* Cell showing today date */
- font-weight: bold;
- color: #00f;
+.calendar tbody td.today {
+/* Cell showing today date */
+ font-weight: bold;
+ color: #00f;
}
-.calendar tbody .disabled { color: #999; }
+.calendar tbody .disabled {
+ color: #999;
+}
-.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
- visibility: hidden;
+.calendar tbody .emptycell {
+/* Empty cells (the best is to hide them) */
+ visibility: hidden;
}
-.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
- display: none;
+.calendar tbody .emptyrow {
+/* Empty row (some months need less than 6 rows) */
+ display: none;
}
/* The footer part -- status bar and "Close" button */
-.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
+.calendar tfoot .footrow {
+/* The <TR> in footer (only one right now) */
}
-.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
- background: #e8f0f4;
- padding: 1px;
- border: 1px solid #000;
- background: #788084;
- color: #fff;
- text-align: center;
-}
-
-.calendar tfoot .hilite { /* Hover style for buttons in footer */
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
- padding: 1px;
- background: #d8e0e4;
-}
-
-.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
- padding: 2px 0px 0px 2px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
+.calendar tfoot .ttip {
+/* Tooltip (status bar) cell <TD> */
+ background: #e8f0f4;
+ padding: 1px;
+ border: 1px solid #000;
+ background: #788084;
+ color: #fff;
+ text-align: center;
+}
+
+.calendar tfoot .hilite {
+/* Hover style for buttons in footer */
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
+ padding: 1px;
+ background: #d8e0e4;
+}
+
+.calendar tfoot .active {
+/* Active (pressed) style for buttons in footer */
+ padding: 2px 0px 0px 2px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
}
/* Combo boxes (menus that display months/years for direct selection) */
.calendar .combo {
- position: absolute;
- display: none;
- width: 4em;
- top: 0px;
- left: 0px;
- cursor: default;
- border-top: 1px solid #fff;
- border-right: 1px solid #000;
- border-bottom: 1px solid #000;
- border-left: 1px solid #fff;
- background: #d8e0e4;
- font-size: 90%;
- padding: 1px;
- z-index: 100;
+ position: absolute;
+ display: none;
+ width: 4em;
+ top: 0px;
+ left: 0px;
+ cursor: default;
+ border-top: 1px solid #fff;
+ border-right: 1px solid #000;
+ border-bottom: 1px solid #000;
+ border-left: 1px solid #fff;
+ background: #d8e0e4;
+ font-size: 90%;
+ padding: 1px;
+ z-index: 100;
}
.calendar .combo .label,
-.calendar .combo .label-IEfix {
- text-align: center;
- padding: 1px;
+ .calendar .combo .label-IEfix {
+ text-align: center;
+ padding: 1px;
}
.calendar .combo .label-IEfix {
- width: 4em;
+ width: 4em;
}
.calendar .combo .active {
- background: #c8d0d4;
- padding: 0px;
- border-top: 1px solid #000;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- border-left: 1px solid #000;
+ background: #c8d0d4;
+ padding: 0px;
+ border-top: 1px solid #000;
+ border-right: 1px solid #fff;
+ border-bottom: 1px solid #fff;
+ border-left: 1px solid #000;
}
.calendar .combo .hilite {
- background: #048;
- color: #aef;
+ background: #048;
+ color: #aef;
}
.calendar td.time {
- border-top: 1px solid #000;
- padding: 1px 0px;
- text-align: center;
- background-color: #e8f0f4;
+ border-top: 1px solid #000;
+ padding: 1px 0px;
+ text-align: center;
+ background-color: #e8f0f4;
}
.calendar td.time .hour,
-.calendar td.time .minute,
-.calendar td.time .ampm {
- padding: 0px 3px 0px 4px;
- border: 1px solid #889;
- font-weight: bold;
- background-color: #fff;
+ .calendar td.time .minute,
+ .calendar td.time .ampm {
+ padding: 0px 3px 0px 4px;
+ border: 1px solid #889;
+ font-weight: bold;
+ background-color: #fff;
}
.calendar td.time .ampm {
- text-align: center;
+ text-align: center;
}
.calendar td.time .colon {
- padding: 0px 2px 0px 3px;
- font-weight: bold;
+ padding: 0px 2px 0px 3px;
+ font-weight: bold;
}
.calendar td.time span.hilite {
- border-color: #000;
- background-color: #667;
- color: #fff;
+ border-color: #000;
+ background-color: #667;
+ color: #fff;
}
.calendar td.time span.active {
- border-color: #f00;
- background-color: #000;
- color: #0f0;
+ border-color: #f00;
+ background-color: #000;
+ color: #0f0;
}