1 rizwank 1.1 /* The main calendar widget. DIV containing a table. */
2
3 .calendar {
4 position: relative;
5 display: none;
6 border: 1px solid;
7 border-color: #fff #000 #000 #fff;
8 font-size: 11px;
9 cursor: default;
10 background: Window;
11 color: WindowText;
12 font-family: tahoma,verdana,sans-serif;
13 }
14
15 .calendar table {
16 border: 1px solid;
17 border-color: #fff #000 #000 #fff;
18 font-size: 11px;
19 cursor: default;
20 background: Window;
21 color: WindowText;
22 rizwank 1.1 font-family: tahoma,verdana,sans-serif;
23 }
24
25 /* Header part -- contains navigation buttons and day names. */
26
27 .calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
28 text-align: center;
29 padding: 1px;
30 border: 1px solid;
31 border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
32 background: ButtonFace;
33 }
34
35 .calendar .nav {
36 background: ButtonFace url(menuarrow.gif) no-repeat 100% 100%;
37 }
38
39 .calendar thead .title { /* This holds the current "month, year" */
40 font-weight: bold;
41 padding: 1px;
42 border: 1px solid #000;
43 rizwank 1.1 background: ActiveCaption;
44 color: CaptionText;
45 text-align: center;
46 }
47
48 .calendar thead .headrow { /* Row <TR> containing navigation buttons */
49 }
50
51 .calendar thead .daynames { /* Row <TR> containing the day names */
52 }
53
54 .calendar thead .name { /* Cells <TD> containing the day names */
55 border-bottom: 1px solid ButtonShadow;
56 padding: 2px;
57 text-align: center;
58 background: ButtonFace;
59 color: ButtonText;
60 }
61
62 .calendar thead .weekend { /* How a weekend day name shows in header */
63 color: #f00;
64 rizwank 1.1 }
65
66 .calendar thead .hilite { /* How do the buttons in header appear when hover */
67 border: 2px solid;
68 padding: 0px;
69 border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
70 }
71
72 .calendar thead .active { /* Active (pressed) buttons in header */
73 border-width: 1px;
74 padding: 2px 0px 0px 2px;
75 border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
76 }
77
78 /* The body part -- contains all the days in month. */
79
80 .calendar tbody .day { /* Cells <TD> containing month days dates */
81 width: 2em;
82 text-align: right;
83 padding: 2px 4px 2px 2px;
84 }
85 rizwank 1.1
86 .calendar table .wn {
87 padding: 2px 3px 2px 2px;
88 border-right: 1px solid ButtonShadow;
89 background: ButtonFace;
90 color: ButtonText;
91 }
92
93 .calendar tbody .rowhilite td {
94 background: Highlight;
95 color: HighlightText;
96 }
97
98 .calendar tbody td.hilite { /* Hovered cells <TD> */
99 padding: 1px 3px 1px 1px;
100 border-top: 1px solid #fff;
101 border-right: 1px solid #000;
102 border-bottom: 1px solid #000;
103 border-left: 1px solid #fff;
104 }
105
106 rizwank 1.1 .calendar tbody td.active { /* Active (pressed) cells <TD> */
107 padding: 2px 2px 0px 2px;
108 border: 1px solid;
109 border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
110 }
111
112 .calendar tbody td.selected { /* Cell showing selected date */
113 font-weight: bold;
114 border: 1px solid;
115 border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
116 padding: 2px 2px 0px 2px;
117 background: ButtonFace;
118 color: ButtonText;
119 }
120
121 .calendar tbody td.weekend { /* Cells showing weekend days */
122 color: #f00;
123 }
124
125 .calendar tbody td.today { /* Cell showing today date */
126 font-weight: bold;
127 rizwank 1.1 color: #00f;
128 }
129
130 .calendar tbody td.disabled { color: GrayText; }
131
132 .calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
133 visibility: hidden;
134 }
135
136 .calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
137 display: none;
138 }
139
140 /* The footer part -- status bar and "Close" button */
141
142 .calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
143 }
144
145 .calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
146 background: ButtonFace;
147 padding: 1px;
148 rizwank 1.1 border: 1px solid;
149 border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
150 color: ButtonText;
151 text-align: center;
152 }
153
154 .calendar tfoot .hilite { /* Hover style for buttons in footer */
155 border-top: 1px solid #fff;
156 border-right: 1px solid #000;
157 border-bottom: 1px solid #000;
158 border-left: 1px solid #fff;
159 padding: 1px;
160 background: #e4e0d8;
161 }
162
163 .calendar tfoot .active { /* Active (pressed) style for buttons in footer */
164 padding: 2px 0px 0px 2px;
165 border-top: 1px solid #000;
166 border-right: 1px solid #fff;
167 border-bottom: 1px solid #fff;
168 border-left: 1px solid #000;
169 rizwank 1.1 }
170
171 /* Combo boxes (menus that display months/years for direct selection) */
172
173 .combo {
174 position: absolute;
175 display: none;
176 width: 4em;
177 top: 0px;
178 left: 0px;
179 cursor: default;
180 border: 1px solid;
181 border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
182 background: Menu;
183 color: MenuText;
184 font-size: smaller;
185 padding: 1px;
186 }
187
188 .combo .label,
189 .combo .label-IEfix {
190 rizwank 1.1 text-align: center;
191 padding: 1px;
192 }
193
194 .combo .label-IEfix {
195 width: 4em;
196 }
197
198 .combo .active {
199 padding: 0px;
200 border: 1px solid #000;
201 }
202
203 .combo .hilite {
204 background: Highlight;
205 color: HighlightText;
206 }
207
208 .calendar td.time {
209 border-top: 1px solid ButtonShadow;
210 padding: 1px 0px;
211 rizwank 1.1 text-align: center;
212 background-color: ButtonFace;
213 }
214
215 .calendar td.time .hour,
216 .calendar td.time .minute,
217 .calendar td.time .ampm {
218 padding: 0px 3px 0px 4px;
219 border: 1px solid #889;
220 font-weight: bold;
221 background-color: Menu;
222 }
223
224 .calendar td.time .ampm {
225 text-align: center;
226 }
227
228 .calendar td.time .colon {
229 padding: 0px 2px 0px 3px;
230 font-weight: bold;
231 }
232 rizwank 1.1
233 .calendar td.time span.hilite {
234 border-color: #000;
235 background-color: Highlight;
236 color: HighlightText;
237 }
238
239 .calendar td.time span.active {
240 border-color: #f00;
241 background-color: #000;
242 color: #0f0;
243 }
|