1 /* Distributed as part of The Coolest DHTML Calendar
2 Author: Mihai Bazon, www.bazon.net/mishoo
3 Copyright Dynarch.com 2005, www.dynarch.com
6 /* The main calendar widget. DIV containing a table. */
8 div.calendar { position: relative; }
10 .calendar, .calendar table {
11 border: 1px solid #bdb2bf;
15 background: url("normal-bg.gif");
16 font-family: "trebuchet ms",verdana,tahoma,sans-serif;
20 border-color: #797979;
23 /* Header part -- contains navigation buttons and day names. */
25 .calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
26 text-align: center; /* They are the navigation buttons */
27 padding: 2px; /* Make the buttons seem like they're pressing */
28 background: url("title-bg.gif") repeat-x 0 100%; color: #000;
33 font-family: verdana,tahoma,sans-serif;
37 background: transparent url("menuarrow.gif") no-repeat 100% 100%;
40 .calendar thead tr { background: url("title-bg.gif") repeat-x 0 100%; color: #000; }
42 .calendar thead .title { /* This holds the current "month, year" */
43 font-weight: bold; /* Pressing it will take you to the current date */
46 background: url("title-bg.gif") repeat-x 0 100%; color: #000;
49 .calendar thead .headrow { /* Row <TR> containing navigation buttons */
52 .calendar thead .name { /* Cells <TD> containing the day names */
53 border-bottom: 1px solid #797979;
59 .calendar thead .weekend { /* How a weekend day name shows in header */
63 .calendar thead .hilite { /* How do the buttons in header appear when hover */
64 background: url("hover-bg.gif");
65 border-bottom: 1px solid #797979;
66 padding: 2px 2px 1px 2px;
69 .calendar thead .active { /* Active (pressed) buttons in header */
70 background: url("active-bg.gif"); color: #fff;
71 padding: 3px 1px 0px 3px;
72 border-bottom: 1px solid #797979;
75 .calendar thead .daynames { /* Row <TR> containing the day names */
76 background: url("dark-bg.gif");
79 /* The body part -- contains all the days in month. */
81 .calendar tbody .day { /* Cells <TD> containing month days dates */
82 font-family: verdana,tahoma,sans-serif;
86 padding: 2px 4px 2px 2px;
88 .calendar tbody .day.othermonth {
92 .calendar tbody .day.othermonth.oweekend {
97 padding: 2px 3px 2px 2px;
98 border-right: 1px solid #797979;
99 background: url("dark-bg.gif");
102 .calendar tbody .rowhilite td,
103 .calendar tbody .rowhilite td.wn {
104 background: url("rowhover-bg.gif");
107 .calendar tbody td.today { font-weight: bold; /* background: url("today-bg.gif") no-repeat 70% 50%; */ }
109 .calendar tbody td.hilite { /* Hovered cells <TD> */
110 background: url("hover-bg.gif");
111 padding: 1px 3px 1px 1px;
112 border: 1px solid #bbb;
115 .calendar tbody td.active { /* Active (pressed) cells <TD> */
116 padding: 2px 2px 0px 2px;
119 .calendar tbody td.weekend { /* Cells showing weekend days */
123 .calendar tbody td.selected { /* Cell showing selected date */
125 border: 1px solid #797979;
126 padding: 1px 3px 1px 1px;
127 background: url("active-bg.gif"); color: #fff;
130 .calendar tbody .disabled { color: #999; }
132 .calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
136 .calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
140 /* The footer part -- status bar and "Close" button */
142 .calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
148 .calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
150 background: url("status-bg.gif") repeat-x 0 0; color: #000;
153 .calendar tfoot .hilite { /* Hover style for buttons in footer */
155 border: 1px solid #084;
160 .calendar tfoot .active { /* Active (pressed) style for buttons in footer */
162 padding: 2px 0px 0px 2px;
165 /* Combo boxes (menus that display months/years for direct selection) */
174 border-width: 0 1px 1px 1px;
176 border-color: #797979;
177 background: url("normal-bg.gif"); color: #000;
182 .calendar .combo .label,
183 .calendar .combo .label-IEfix {
188 .calendar .combo .label-IEfix {
192 .calendar .combo .hilite {
193 background: url("hover-bg.gif"); color: #000;
196 .calendar .combo .active {
197 background: url("active-bg.gif"); color: #fff;
202 border-top: 1px solid #797979;
205 background: url("dark-bg.gif");
208 .calendar td.time .hour,
209 .calendar td.time .minute,
210 .calendar td.time .ampm {
211 padding: 0px 5px 0px 6px;
213 background: url("normal-bg.gif"); color: #000;
216 .calendar td.time .hour,
217 .calendar td.time .minute {
218 font-family: monospace;
221 .calendar td.time .ampm {
225 .calendar td.time .colon {
226 padding: 0px 2px 0px 3px;
230 .calendar td.time span.hilite {
231 background: url("hover-bg.gif"); color: #000;
234 .calendar td.time span.active {
235 background: url("active-bg.gif"); color: #fff;