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