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