1 | @mixin extjs-datepicker {
|
---|
2 | .#{$prefix}datepicker {
|
---|
3 | border: $datepicker-border;
|
---|
4 |
|
---|
5 | background-color: $datepicker-background-color;
|
---|
6 | position: relative;
|
---|
7 |
|
---|
8 | a {
|
---|
9 | @extend .outline-none;
|
---|
10 |
|
---|
11 | color: $datepicker-monthpicker-item-color;
|
---|
12 | text-decoration: none;
|
---|
13 |
|
---|
14 | border-width: 0;
|
---|
15 | }
|
---|
16 | }
|
---|
17 |
|
---|
18 | .#{$prefix}datepicker-inner,
|
---|
19 | .#{$prefix}datepicker-inner td,
|
---|
20 | .#{$prefix}datepicker-inner th {
|
---|
21 | border-collapse: separate;
|
---|
22 | }
|
---|
23 |
|
---|
24 | .#{$prefix}datepicker-header {
|
---|
25 | position: relative;
|
---|
26 |
|
---|
27 | height: 26px;
|
---|
28 |
|
---|
29 | // @if $datepicker-header-background-gradient {
|
---|
30 | // @include background-gradient($datepicker-header-background-color, $datepicker-header-background-gradient);
|
---|
31 | // } @else {
|
---|
32 | background-color: #D8DDE3;
|
---|
33 | // }
|
---|
34 | }
|
---|
35 |
|
---|
36 | .#{$prefix}datepicker-prev,
|
---|
37 | .#{$prefix}datepicker-next {
|
---|
38 | position: absolute;
|
---|
39 | top: 5px;
|
---|
40 |
|
---|
41 | width: 18px;
|
---|
42 |
|
---|
43 | a {
|
---|
44 | display: block;
|
---|
45 |
|
---|
46 | width: 16px;
|
---|
47 | height: 16px;
|
---|
48 |
|
---|
49 | background-position: top;
|
---|
50 | background-repeat: no-repeat;
|
---|
51 |
|
---|
52 | cursor: pointer;
|
---|
53 |
|
---|
54 | text-decoration: none !important;
|
---|
55 |
|
---|
56 | @include opacity(.7);
|
---|
57 |
|
---|
58 | &:hover {
|
---|
59 | @include opacity(1);
|
---|
60 | }
|
---|
61 | }
|
---|
62 | }
|
---|
63 |
|
---|
64 | .#{$prefix}datepicker-next {
|
---|
65 | right: 5px;
|
---|
66 |
|
---|
67 | a {
|
---|
68 | background-image: theme-background-image($theme-name, $datepicker-next-image);
|
---|
69 | }
|
---|
70 | }
|
---|
71 |
|
---|
72 | .#{$prefix}datepicker-prev {
|
---|
73 | left: 5px;
|
---|
74 |
|
---|
75 | a {
|
---|
76 | background-image: theme-background-image($theme-name, $datepicker-prev-image);
|
---|
77 | }
|
---|
78 | }
|
---|
79 |
|
---|
80 | .#{$prefix}item-disabled .#{$prefix}datepicker-prev a:hover,
|
---|
81 | .#{$prefix}item-disabled .#{$prefix}datepicker-next a:hover {
|
---|
82 | @include opacity(.6);
|
---|
83 | }
|
---|
84 |
|
---|
85 | .#{$prefix}datepicker-month {
|
---|
86 | padding-top: 3px;
|
---|
87 |
|
---|
88 | .#{$prefix}btn,
|
---|
89 | button,
|
---|
90 | .#{$prefix}btn-tc,
|
---|
91 | .#{$prefix}btn-tl,
|
---|
92 | .#{$prefix}btn-tr,
|
---|
93 | .#{$prefix}btn-mc,
|
---|
94 | .#{$prefix}btn-ml,
|
---|
95 | .#{$prefix}btn-mr,
|
---|
96 | .#{$prefix}btn-bc,
|
---|
97 | .#{$prefix}btn-bl,
|
---|
98 | .#{$prefix}btn-br {
|
---|
99 | background: transparent !important;
|
---|
100 | border-width: 0 !important;
|
---|
101 | }
|
---|
102 |
|
---|
103 | span {
|
---|
104 | color: #2669B4 !important;
|
---|
105 | text-shadow: 0 0 0 !important;
|
---|
106 | font-weight: normal !important;
|
---|
107 | }
|
---|
108 |
|
---|
109 | .#{$prefix}btn-split-right {
|
---|
110 | background-image: theme-background-image($theme-name, $datepicker-month-arrow-image);
|
---|
111 | padding-right: 12px;
|
---|
112 | }
|
---|
113 | }
|
---|
114 |
|
---|
115 | .#{$prefix}datepicker-next {
|
---|
116 | text-align: right;
|
---|
117 | }
|
---|
118 |
|
---|
119 | .#{$prefix}datepicker-month {
|
---|
120 | //width: 120px;
|
---|
121 | text-align: center;
|
---|
122 |
|
---|
123 | button {
|
---|
124 | color: #2669B4 !important;
|
---|
125 | }
|
---|
126 | }
|
---|
127 |
|
---|
128 |
|
---|
129 | table.#{$prefix}datepicker-inner {
|
---|
130 | width: 100%;
|
---|
131 | table-layout: fixed;
|
---|
132 |
|
---|
133 | th {
|
---|
134 | width: 25px;
|
---|
135 | height: 19px;
|
---|
136 |
|
---|
137 | padding: 0;
|
---|
138 |
|
---|
139 | color: $datepicker-th-color;
|
---|
140 | font: $datepicker-th-font;
|
---|
141 | font-weight: bold;
|
---|
142 | text-align: $datepicker-th-text-align;
|
---|
143 |
|
---|
144 | // border-bottom: 1px solid $datepicker-th-border-bottom-color;
|
---|
145 | border-collapse: separate;
|
---|
146 |
|
---|
147 | @if $datepicker-th-background-gradient {
|
---|
148 | // @include background-gradient($datepicker-th-background-color, $datepicker-th-background-gradient);
|
---|
149 | } @else {
|
---|
150 | // background-color: $datepicker-th-background-color;
|
---|
151 | }
|
---|
152 |
|
---|
153 | cursor: default;
|
---|
154 |
|
---|
155 | span {
|
---|
156 | display: block;
|
---|
157 | padding-right: 7px;
|
---|
158 | }
|
---|
159 | }
|
---|
160 |
|
---|
161 | tr {
|
---|
162 | height: 20px;
|
---|
163 | }
|
---|
164 |
|
---|
165 | td {
|
---|
166 | // border: $datepicker-border-width $datepicker-border-style;
|
---|
167 | height: $datepicker-td-height;
|
---|
168 | // border-color: $datepicker-background-color;
|
---|
169 | text-align: right;
|
---|
170 | padding: 0;
|
---|
171 | }
|
---|
172 |
|
---|
173 | a {
|
---|
174 | padding: 3px 5px 3px 3px;
|
---|
175 | display: block;
|
---|
176 | // @tag iezoomhack
|
---|
177 | font: normal $font-size $font-family;
|
---|
178 | color: $datepicker-item-color;
|
---|
179 | text-decoration: none;
|
---|
180 | text-align: right;
|
---|
181 | }
|
---|
182 |
|
---|
183 | .#{$prefix}datepicker-active {
|
---|
184 | cursor: pointer;
|
---|
185 | color: black;
|
---|
186 | }
|
---|
187 |
|
---|
188 | a:hover,
|
---|
189 | .#{$prefix}datepicker-disabled a:hover {
|
---|
190 | text-decoration: none !important;
|
---|
191 |
|
---|
192 | background: #F2FAFF;
|
---|
193 | }
|
---|
194 |
|
---|
195 | .#{$prefix}datepicker-selected {
|
---|
196 | a {
|
---|
197 | // background: repeat-x left top;
|
---|
198 | // background-color: $datepicker-selected-item-background-color;
|
---|
199 | // border: 1px solid $datepicker-selected-item-border-color;
|
---|
200 | color: #fff;
|
---|
201 | background-color: #0E56B0;
|
---|
202 |
|
---|
203 | @include border-radius(4px);
|
---|
204 | }
|
---|
205 | }
|
---|
206 |
|
---|
207 | .#{$prefix}datepicker-today {
|
---|
208 | a {
|
---|
209 | // border: $datepicker-border-width $datepicker-border-style;
|
---|
210 | // border-color: $datepicker-today-item-border-color;
|
---|
211 | color: #28A02A;
|
---|
212 |
|
---|
213 | // background-color: #0E56B0;
|
---|
214 |
|
---|
215 | position: relative;
|
---|
216 | top: -1px;
|
---|
217 |
|
---|
218 | &:hover {
|
---|
219 | background: #28A02A;
|
---|
220 | color: #fff;
|
---|
221 | @include border-radius(4px);
|
---|
222 | }
|
---|
223 | }
|
---|
224 |
|
---|
225 | &.#{$prefix}datepicker-selected a {
|
---|
226 | background: #28A02A;
|
---|
227 | color: #fff;
|
---|
228 | @include border-radius(4px);
|
---|
229 | }
|
---|
230 |
|
---|
231 | span {
|
---|
232 | font-weight: bold;
|
---|
233 | }
|
---|
234 | }
|
---|
235 |
|
---|
236 | .#{$prefix}datepicker-prevday,
|
---|
237 | .#{$prefix}datepicker-nextday {
|
---|
238 | a {
|
---|
239 | text-decoration: none !important;
|
---|
240 | color: #aaa;
|
---|
241 | }
|
---|
242 | }
|
---|
243 |
|
---|
244 | .#{$prefix}datepicker-disabled a {
|
---|
245 | cursor: default;
|
---|
246 | background-color: #eee;
|
---|
247 | color: #bbb;
|
---|
248 | }
|
---|
249 | }
|
---|
250 |
|
---|
251 | .#{$prefix}datepicker-footer,
|
---|
252 | .#{$prefix}monthpicker-buttons {
|
---|
253 | position: relative;
|
---|
254 |
|
---|
255 | // border-top: $datepicker-border-width $datepicker-border-style $datepicker-footer-border-top-color;
|
---|
256 |
|
---|
257 | // @if $datepicker-footer-background-gradient {
|
---|
258 | // @include background-gradient($datepicker-footer-background-color, $datepicker-footer-background-gradient);
|
---|
259 | // } @else {
|
---|
260 | // background-color: $datepicker-footer-background-color;
|
---|
261 | // }
|
---|
262 |
|
---|
263 | text-align: center;
|
---|
264 |
|
---|
265 | .#{$prefix}btn {
|
---|
266 | position: relative;
|
---|
267 | margin: 4px;
|
---|
268 | }
|
---|
269 | }
|
---|
270 |
|
---|
271 | .#{$prefix}item-disabled .#{$prefix}datepicker-inner a:hover {
|
---|
272 | background: none;
|
---|
273 | }
|
---|
274 |
|
---|
275 | // month picker
|
---|
276 | .#{$prefix}datepicker .#{$prefix}monthpicker {
|
---|
277 | position: absolute;
|
---|
278 | left: 0;
|
---|
279 | top: 0;
|
---|
280 | }
|
---|
281 |
|
---|
282 |
|
---|
283 | .#{$prefix}monthpicker {
|
---|
284 | border: $datepicker-border;
|
---|
285 | background-color: $datepicker-background-color;
|
---|
286 | }
|
---|
287 |
|
---|
288 | .#{$prefix}monthpicker-months,
|
---|
289 | .#{$prefix}monthpicker-years {
|
---|
290 | float: left;
|
---|
291 |
|
---|
292 | height: $datepicker-monthpicker-height;
|
---|
293 | width: 88px;
|
---|
294 | }
|
---|
295 |
|
---|
296 | .#{$prefix}monthpicker-item {
|
---|
297 | float: left;
|
---|
298 |
|
---|
299 | margin: 4px 0 5px 0;
|
---|
300 |
|
---|
301 | font: normal ceil($font-size * .9) $font-family;
|
---|
302 | text-align: center;
|
---|
303 | vertical-align: middle;
|
---|
304 |
|
---|
305 | height: 18px;
|
---|
306 | width: 43px;
|
---|
307 |
|
---|
308 | border: 0 none;
|
---|
309 |
|
---|
310 | a {
|
---|
311 | display: block;
|
---|
312 |
|
---|
313 | margin: 0 5px 0 5px;
|
---|
314 |
|
---|
315 | text-decoration: none;
|
---|
316 |
|
---|
317 | color: $datepicker-monthpicker-item-color;
|
---|
318 |
|
---|
319 | border: $datepicker-monthpicker-item-border;
|
---|
320 |
|
---|
321 | line-height: 17px;
|
---|
322 |
|
---|
323 | &:hover {
|
---|
324 | background-color: $datepicker-monthpicker-item-hover-background-color;
|
---|
325 | }
|
---|
326 |
|
---|
327 | &.#{$prefix}monthpicker-selected {
|
---|
328 | background-color: $datepicker-monthpicker-item-selected-background-color;
|
---|
329 | border: $datepicker-monthpicker-item-selected-border;
|
---|
330 | }
|
---|
331 | }
|
---|
332 | }
|
---|
333 |
|
---|
334 | .#{$prefix}monthpicker-months {
|
---|
335 | border-right: $datepicker-border;
|
---|
336 | width: 87px;
|
---|
337 | }
|
---|
338 |
|
---|
339 | .#{$prefix}monthpicker-years .#{$prefix}monthpicker-item {
|
---|
340 | width: 44px;
|
---|
341 | }
|
---|
342 |
|
---|
343 | .#{$prefix}monthpicker-yearnav {
|
---|
344 | height: 28px;
|
---|
345 |
|
---|
346 | button {
|
---|
347 | background-image: theme-background-image($theme-name, $datepicker-tool-sprite-image);
|
---|
348 | height: 15px;
|
---|
349 | width: 15px;
|
---|
350 | padding: 0;
|
---|
351 | margin: 6px 12px 5px 15px;
|
---|
352 | @extend .outline-none;
|
---|
353 | border: 0;
|
---|
354 | &::-moz-focus-inner {
|
---|
355 | border: 0;
|
---|
356 | padding: 0;
|
---|
357 | }
|
---|
358 | }
|
---|
359 | }
|
---|
360 |
|
---|
361 | .#{$prefix}monthpicker-yearnav-next {
|
---|
362 | background-position: 0 -120px;
|
---|
363 | }
|
---|
364 |
|
---|
365 | .#{$prefix}monthpicker-yearnav-next-over {
|
---|
366 | cursor: pointer;
|
---|
367 | cursor: hand;
|
---|
368 | background-position: -15px -120px;
|
---|
369 | }
|
---|
370 |
|
---|
371 | .#{$prefix}monthpicker-yearnav-prev {
|
---|
372 | background-position: 0 -105px;
|
---|
373 | }
|
---|
374 |
|
---|
375 | .#{$prefix}monthpicker-yearnav-prev-over {
|
---|
376 | cursor: pointer;
|
---|
377 | cursor: hand;
|
---|
378 | background-position: -15px -105px;
|
---|
379 | }
|
---|
380 |
|
---|
381 | .#{$prefix}monthpicker-small {
|
---|
382 | .#{$prefix}monthpicker-item {
|
---|
383 | margin: 2px 0 2px 0;
|
---|
384 | }
|
---|
385 |
|
---|
386 | .#{$prefix}monthpicker-yearnav {
|
---|
387 | height: 23px;
|
---|
388 | }
|
---|
389 |
|
---|
390 | .#{$prefix}monthpicker-months, .#{$prefix}monthpicker-years {
|
---|
391 | height: 136px;
|
---|
392 | }
|
---|
393 | }
|
---|
394 |
|
---|
395 | @if $include-ie {
|
---|
396 | .#{$prefix}quirks {
|
---|
397 | .#{$prefix}ie7,
|
---|
398 | .#{$prefix}ie8 {
|
---|
399 | .#{$prefix}monthpicker-buttons {
|
---|
400 | .#{$prefix}btn {
|
---|
401 | margin-top: 2px;
|
---|
402 | }
|
---|
403 | }
|
---|
404 | }
|
---|
405 |
|
---|
406 | .#{$prefix}monthpicker-small .#{$prefix}monthpicker-yearnav button {
|
---|
407 | margin-top: 3px;
|
---|
408 | margin-bottom: 3px;
|
---|
409 | }
|
---|
410 | }
|
---|
411 |
|
---|
412 | .#{$prefix}ie6 .#{$prefix}monthpicker-small .#{$prefix}monthpicker-yearnav button {
|
---|
413 | margin-top: 3px;
|
---|
414 | margin-bottom: 3px;
|
---|
415 | }
|
---|
416 | }
|
---|
417 |
|
---|
418 | //nlg support
|
---|
419 | @if not $supports-gradients or $compile-all {
|
---|
420 | .#{$prefix}nlg {
|
---|
421 | @if $datepicker-header-background-gradient != null {
|
---|
422 | .#{$prefix}datepicker-header {
|
---|
423 | background-image: theme-background-image($theme-name, 'datepicker/datepicker-header-bg.gif');
|
---|
424 | background-repeat: repeat-x;
|
---|
425 | background-position: top left;
|
---|
426 | }
|
---|
427 | }
|
---|
428 |
|
---|
429 | @if $datepicker-footer-background-gradient != null {
|
---|
430 | .#{$prefix}datepicker-footer,
|
---|
431 | .#{$prefix}monthpicker-buttons {
|
---|
432 | background-image: theme-background-image($theme-name, 'datepicker/datepicker-footer-bg.gif');
|
---|
433 | background-repeat: repeat-x;
|
---|
434 | background-position: top left;
|
---|
435 | }
|
---|
436 | }
|
---|
437 | }
|
---|
438 | }
|
---|
439 | } |
---|