From 732dc883fdcc72c732cc8e0b8226ee885804a605 Mon Sep 17 00:00:00 2001 From: "kherron@fmailbox.com" Date: Sun, 17 Jun 2007 08:09:44 -0700 Subject: [PATCH] Backing out patch for bug 376991. --- .../components/places/content/organizer.css | 5 + browser/components/places/content/places.xml | 423 +++++++++++++++++- .../pinstripe/browser/places/places.css | 60 +++ .../winstripe/browser/places/places.css | 60 +++ 4 files changed, 545 insertions(+), 3 deletions(-) diff --git a/browser/components/places/content/organizer.css b/browser/components/places/content/organizer.css index 85ddcca47329..6a149fb9bfb0 100755 --- a/browser/components/places/content/organizer.css +++ b/browser/components/places/content/organizer.css @@ -1,3 +1,8 @@ + +.history-calendar { + -moz-binding: url("chrome://browser/content/places/places.xml#calendar"); +} + #searchFilter { -moz-binding: url("chrome://browser/content/places/places.xml#textbox-timed-arbitrary"); } diff --git a/browser/components/places/content/places.xml b/browser/components/places/content/places.xml index d201a49a42df..98579917f83f 100755 --- a/browser/components/places/content/places.xml +++ b/browser/components/places/content/places.xml @@ -5,7 +5,7 @@ xmlns:xbl="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> - + @@ -108,7 +108,7 @@ ]]> - + @@ -123,7 +123,7 @@ - + @@ -139,4 +139,421 @@ + + + + + « + + » + + + + + + + + + + + + + + + + + + + 00 + 00 + 00 + 00 + 00 + 00 + 00 + + + 00 + 00 + 00 + 00 + 00 + 00 + 00 + + + 00 + 00 + 00 + 00 + 00 + 00 + 00 + + + 00 + 00 + 00 + 00 + 00 + 00 + 00 + + + 00 + 00 + 00 + 00 + 00 + 00 + 00 + + + 00 + 00 + 00 + 00 + 00 + 00 + 00 + + + + + + + + + + + return new Date(this._visibleMonth); + + + this._visibleMonth = new Date(val.getFullYear(), val.getMonth(), 1); + this.drawMonth(); + + + + + + if (! this._selectBegin) + return null; + else + return new Date(this._selectBegin); + + + this._selectNothing = false; + this._selectBegin = val; + this.updateSelection(this._selectBegin, this._selectEnd); + this.fireRangeEvent(); + + + + + if (! this._selectEnd) + return null; + else + return new Date(this._selectEnd); + + + this._selectNothing = false; + this._selectEnd = val; + this.updateSelection(this._selectBegin, this._selectEnd); + this.fireRangeEvent(); + + + + + + + + + = this._numCells) { + // reselect month for end range + this.visibleMonth = end; + } + } + this._selectNothing = false; + this.updateSelection(begin, end); + this.fireRangeEvent(); + ]]> + + + + + + return this._selectNothing; + + + this._selectNothing = val; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + end.getTime()) { + this._selectBegin = end; + this._selectEnd = begin; + } else { + this._selectBegin = begin; + this._selectEnd = end; + } + this.drawSelection(); + ]]> + + + + + + + + var msDiff = a.getTime() - b.getTime(); + return Math.floor(msDiff / 86400000); // 1000ms/s * 60s/m * 60m/h * 24h/d = 86400000ms/d + + + + + false + + + + + + = beginIndex && i <= endIndex); + if (sel != this._selected[i]) { + this._days[i].setAttribute("selected", sel ? "true" : ""); + this._selected[i] = sel; + } + } + ]]> + + + + + '9') { + return null; + } + var cellNumber = Number(tail); + var d = new Date(this._cell0Date); + d.setDate(d.getDate() + cellNumber); + return d; + ]]> + + + + + + + + + diff --git a/browser/themes/pinstripe/browser/places/places.css b/browser/themes/pinstripe/browser/places/places.css index 8d8306f647b8..693864008f2c 100755 --- a/browser/themes/pinstripe/browser/places/places.css +++ b/browser/themes/pinstripe/browser/places/places.css @@ -192,6 +192,66 @@ treechildren::-moz-tree-twisty(title, separator) { margin: 9px -3px -4px 8px; } +/* Calendar */ +.history-calendar { + margin: 0px 0px 7px 6px; +} + +.calendar-box { + -moz-appearance: listbox; + border:1px solid black; + background-color:white; +} +.calendar-header { + background-color:#EEE; +} +.calendar-month-jump { + cursor:pointer; + padding-left:6px; + padding-right:6px; +} +.calendar-month-jump:hover { + background-color:#DDD; +} +.calendar-grid { + padding-left:8px; + padding-right:8px; + padding-bottom:4px; +} +.calendar-grid label { /* everything in the calendar grid */ + padding:4px; + margin:0px; + text-align:center; + font-size:80%; +} +.calendar-month-title { + text-align:center; +} +.calendar-day-header { + border-bottom:1px solid #888; +} +.calendar-day { /* just days (excluding the day headers) */ + cursor:w-resize; + color:white; + background-color:white; +} +.calendar-day:hover { + background-color:#DDD; +} +.calendar-day[selected="true"] { + cursor:w-resize; + background-color:#8C8; +} +.calendar-day[selected="true"]:hover { + background-color:#6A6; +} +.calendar-day[month="this"] { + color:black; +} +.calendar-day[month="other"] { + color:#888; +} + .no-margin-button { min-width:0em; } diff --git a/browser/themes/winstripe/browser/places/places.css b/browser/themes/winstripe/browser/places/places.css index 1c28308e7011..e5de30389e12 100755 --- a/browser/themes/winstripe/browser/places/places.css +++ b/browser/themes/winstripe/browser/places/places.css @@ -182,6 +182,66 @@ treechildren::-moz-tree-cell-text(date, session-continue) { margin: 9px -3px -4px 8px; } +/* Calendar */ +.history-calendar { + margin: 0px 0px 7px 6px; +} + +.calendar-box { + -moz-appearance: listbox; + border: 1px solid black; + background-color: white; +} +.calendar-header { + background-color: #EEE; +} +.calendar-month-jump { + cursor: pointer; + padding-left: 6px; + padding-right: 6px; +} +.calendar-month-jump:hover { + background-color: #DDD; +} +.calendar-grid { + padding-left: 8px; + padding-right: 8px; + padding-bottom: 4px; +} +.calendar-grid label { /* everything in the calendar grid */ + padding: 4px; + margin: 0px; + text-align: center; + font-size: 80%; +} +.calendar-month-title { + text-align: center; +} +.calendar-day-header { + border-bottom: 1px solid #888; +} +.calendar-day { /* just days (excluding the day headers) */ + cursor: w-resize; + color: white; + background-color:white; +} +.calendar-day:hover { + background-color: #DDD; +} +.calendar-day[selected="true"] { + cursor: w-resize; + background-color: #8C8; +} +.calendar-day[selected="true"]:hover { + background-color: #6A6; +} +.calendar-day[month="this"] { + color: black; +} +.calendar-day[month="other"] { + color: #888; +} + #advancedSearchRows { border-bottom: 2px solid; -moz-border-bottom-colors: ThreeDHighlight ThreeDShadow;