tim@14: /* The main calendar widget. DIV containing a table. */
tim@14:
tim@14: div.calendar { position: relative; }
tim@14:
tim@14: .calendar, .calendar table {
tim@14: border: 1px solid #556;
tim@14: font-size: 11px;
tim@14: color: #000;
tim@14: cursor: default;
tim@14: background: #eef;
tim@14: font-family: tahoma,verdana,sans-serif;
tim@14: }
tim@14:
tim@14: /* Header part -- contains navigation buttons and day names. */
tim@14:
tim@14: .calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
tim@14: text-align: center; /* They are the navigation buttons */
tim@14: padding: 2px; /* Make the buttons seem like they're pressing */
tim@14: }
tim@14:
tim@14: .calendar .nav {
tim@14: background: #778 url(menuarrow.gif) no-repeat 100% 100%;
tim@14: }
tim@14:
tim@14: .calendar thead .title { /* This holds the current "month, year" */
tim@14: font-weight: bold; /* Pressing it will take you to the current date */
tim@14: text-align: center;
tim@14: background: #fff;
tim@14: color: #000;
tim@14: padding: 2px;
tim@14: }
tim@14:
tim@14: .calendar thead .headrow { /* Row
containing navigation buttons */
tim@14: background: #778;
tim@14: color: #fff;
tim@14: }
tim@14:
tim@14: .calendar thead .daynames { /* Row
containing the day names */
tim@14: background: #bdf;
tim@14: }
tim@14:
tim@14: .calendar thead .name { /* Cells containing the day names */
tim@14: border-bottom: 1px solid #556;
tim@14: padding: 2px;
tim@14: text-align: center;
tim@14: color: #000;
tim@14: }
tim@14:
tim@14: .calendar thead .weekend { /* How a weekend day name shows in header */
tim@14: color: #a66;
tim@14: }
tim@14:
tim@14: .calendar thead .hilite { /* How do the buttons in header appear when hover */
tim@14: background-color: #aaf;
tim@14: color: #000;
tim@14: border: 1px solid #04f;
tim@14: padding: 1px;
tim@14: }
tim@14:
tim@14: .calendar thead .active { /* Active (pressed) buttons in header */
tim@14: background-color: #77c;
tim@14: padding: 2px 0px 0px 2px;
tim@14: }
tim@14:
tim@14: /* The body part -- contains all the days in month. */
tim@14:
tim@14: .calendar tbody .day { /* Cells | containing month days dates */
tim@14: width: 2em;
tim@14: color: #456;
tim@14: text-align: right;
tim@14: padding: 2px 4px 2px 2px;
tim@14: }
tim@14: .calendar tbody .day.othermonth {
tim@14: font-size: 80%;
tim@14: color: #bbb;
tim@14: }
tim@14: .calendar tbody .day.othermonth.oweekend {
tim@14: color: #fbb;
tim@14: }
tim@14:
tim@14: .calendar table .wn {
tim@14: padding: 2px 3px 2px 2px;
tim@14: border-right: 1px solid #000;
tim@14: background: #bdf;
tim@14: }
tim@14:
tim@14: .calendar tbody .rowhilite td {
tim@14: background: #def;
tim@14: }
tim@14:
tim@14: .calendar tbody .rowhilite td.wn {
tim@14: background: #eef;
tim@14: }
tim@14:
tim@14: .calendar tbody td.hilite { /* Hovered cells | */
tim@14: background: #def;
tim@14: padding: 1px 3px 1px 1px;
tim@14: border: 1px solid #bbb;
tim@14: }
tim@14:
tim@14: .calendar tbody td.active { /* Active (pressed) cells | */
tim@14: background: #cde;
tim@14: padding: 2px 2px 0px 2px;
tim@14: }
tim@14:
tim@14: .calendar tbody td.selected { /* Cell showing today date */
tim@14: font-weight: bold;
tim@14: border: 1px solid #000;
tim@14: padding: 1px 3px 1px 1px;
tim@14: background: #fff;
tim@14: color: #000;
tim@14: }
tim@14:
tim@14: .calendar tbody td.weekend { /* Cells showing weekend days */
tim@14: color: #a66;
tim@14: }
tim@14:
tim@14: .calendar tbody td.today { /* Cell showing selected date */
tim@14: font-weight: bold;
tim@14: color: #00f;
tim@14: }
tim@14:
tim@14: .calendar tbody .disabled { color: #999; }
tim@14:
tim@14: .calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
tim@14: visibility: hidden;
tim@14: }
tim@14:
tim@14: .calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
tim@14: display: none;
tim@14: }
tim@14:
tim@14: /* The footer part -- status bar and "Close" button */
tim@14:
tim@14: .calendar tfoot .footrow { /* The |
in footer (only one right now) */
tim@14: text-align: center;
tim@14: background: #556;
tim@14: color: #fff;
tim@14: }
tim@14:
tim@14: .calendar tfoot .ttip { /* Tooltip (status bar) cell */
tim@14: background: #fff;
tim@14: color: #445;
tim@14: border-top: 1px solid #556;
tim@14: padding: 1px;
tim@14: }
tim@14:
tim@14: .calendar tfoot .hilite { /* Hover style for buttons in footer */
tim@14: background: #aaf;
tim@14: border: 1px solid #04f;
tim@14: color: #000;
tim@14: padding: 1px;
tim@14: }
tim@14:
tim@14: .calendar tfoot .active { /* Active (pressed) style for buttons in footer */
tim@14: background: #77c;
tim@14: padding: 2px 0px 0px 2px;
tim@14: }
tim@14:
tim@14: /* Combo boxes (menus that display months/years for direct selection) */
tim@14:
tim@14: .calendar .combo {
tim@14: position: absolute;
tim@14: display: none;
tim@14: top: 0px;
tim@14: left: 0px;
tim@14: width: 4em;
tim@14: cursor: default;
tim@14: border: 1px solid #655;
tim@14: background: #def;
tim@14: color: #000;
tim@14: font-size: 90%;
tim@14: z-index: 100;
tim@14: }
tim@14:
tim@14: .calendar .combo .label,
tim@14: .calendar .combo .label-IEfix {
tim@14: text-align: center;
tim@14: padding: 1px;
tim@14: }
tim@14:
tim@14: .calendar .combo .label-IEfix {
tim@14: width: 4em;
tim@14: }
tim@14:
tim@14: .calendar .combo .hilite {
tim@14: background: #acf;
tim@14: }
tim@14:
tim@14: .calendar .combo .active {
tim@14: border-top: 1px solid #46a;
tim@14: border-bottom: 1px solid #46a;
tim@14: background: #eef;
tim@14: font-weight: bold;
tim@14: }
tim@14:
tim@14: .calendar td.time {
tim@14: border-top: 1px solid #000;
tim@14: padding: 1px 0px;
tim@14: text-align: center;
tim@14: background-color: #f4f0e8;
tim@14: }
tim@14:
tim@14: .calendar td.time .hour,
tim@14: .calendar td.time .minute,
tim@14: .calendar td.time .ampm {
tim@14: padding: 0px 3px 0px 4px;
tim@14: border: 1px solid #889;
tim@14: font-weight: bold;
tim@14: background-color: #fff;
tim@14: }
tim@14:
tim@14: .calendar td.time .ampm {
tim@14: text-align: center;
tim@14: }
tim@14:
tim@14: .calendar td.time .colon {
tim@14: padding: 0px 2px 0px 3px;
tim@14: font-weight: bold;
tim@14: }
tim@14:
tim@14: .calendar td.time span.hilite {
tim@14: border-color: #000;
tim@14: background-color: #667;
tim@14: color: #fff;
tim@14: }
tim@14:
tim@14: .calendar td.time span.active {
tim@14: border-color: #f00;
tim@14: background-color: #000;
tim@14: color: #0f0;
tim@14: }
|