1 @mixin extjs-datepicker {
2 .#{$prefix}datepicker {
3 border: $datepicker-border;
5 background-color: $datepicker-background-color;
12 color: $datepicker-monthpicker-item-color;
13 text-decoration: none;
19 .#{$prefix}datepicker-inner,
20 .#{$prefix}datepicker-inner td,
21 .#{$prefix}datepicker-inner th {
22 border-collapse: separate;
25 .#{$prefix}datepicker-header {
30 @if $datepicker-header-background-gradient {
31 @include background-gradient($datepicker-header-background-color, $datepicker-header-background-gradient);
33 background-color: $datepicker-header-background-color;
37 .#{$prefix}datepicker-prev,
38 .#{$prefix}datepicker-next {
50 background-position: top;
51 background-repeat: no-repeat;
55 text-decoration: none !important;
65 .#{$prefix}datepicker-next {
69 background-image: theme-background-image($theme-name, $datepicker-next-image);
73 .#{$prefix}datepicker-prev {
77 background-image: theme-background-image($theme-name, $datepicker-prev-image);
81 .#{$prefix}item-disabled .#{$prefix}datepicker-prev a:hover,
82 .#{$prefix}item-disabled .#{$prefix}datepicker-next a:hover {
86 .#{$prefix}datepicker-month {
100 background: transparent !important;
101 border-width: 0 !important;
105 color: #fff !important;
108 .#{$prefix}btn-split-right {
109 background: no-repeat right center !important;
110 background-image: theme-background-image($theme-name, $datepicker-month-arrow-image);
116 .#{$prefix}datepicker-next {
120 .#{$prefix}datepicker-month {
125 color: $datepicker-monthpicker-color !important;
130 table.#{$prefix}datepicker-inner {
140 color: $datepicker-th-color;
141 font: $datepicker-th-font;
142 text-align: $datepicker-th-text-align;
144 border-bottom: 1px solid $datepicker-th-border-bottom-color;
145 border-collapse: separate;
147 @if $datepicker-th-background-gradient {
148 @include background-gradient($datepicker-th-background-color, $datepicker-th-background-gradient);
150 background-color: $datepicker-th-background-color;
166 border: $datepicker-border-width $datepicker-border-style;
167 height: $datepicker-td-height;
168 border-color: $datepicker-background-color;
180 font: normal ceil($font-size * .9) $font-family;
181 color: $datepicker-item-color;
182 text-decoration: none;
186 .#{$prefix}datepicker-active {
191 .#{$prefix}datepicker-selected {
193 background: repeat-x left top;
194 background-color: $datepicker-selected-item-background-color;
195 border: 1px solid $datepicker-selected-item-border-color;
203 .#{$prefix}datepicker-today {
205 border: $datepicker-border-width $datepicker-border-style;
206 border-color: $datepicker-today-item-border-color;
210 .#{$prefix}datepicker-prevday,
211 .#{$prefix}datepicker-nextday {
213 text-decoration: none !important;
219 .#{$prefix}datepicker-disabled a:hover {
220 text-decoration: none !important;
224 background-color: $datepicker-item-hover-background-color;
227 .#{$prefix}datepicker-disabled a {
229 background-color: #eee;
234 .#{$prefix}datepicker-footer,
235 .#{$prefix}monthpicker-buttons {
238 border-top: $datepicker-border-width $datepicker-border-style $datepicker-footer-border-top-color;
240 @if $datepicker-footer-background-gradient {
241 @include background-gradient($datepicker-footer-background-color, $datepicker-footer-background-gradient);
243 background-color: $datepicker-footer-background-color;
254 .#{$prefix}item-disabled .#{$prefix}datepicker-inner a:hover {
259 .#{$prefix}datepicker .#{$prefix}monthpicker {
266 .#{$prefix}monthpicker {
267 border: $datepicker-border;
268 background-color: $datepicker-background-color;
271 .#{$prefix}monthpicker-months,
272 .#{$prefix}monthpicker-years {
275 height: $datepicker-monthpicker-height;
279 .#{$prefix}monthpicker-item {
284 font: normal ceil($font-size * .9) $font-family;
286 vertical-align: middle;
298 text-decoration: none;
300 color: $datepicker-monthpicker-item-color;
302 border: $datepicker-monthpicker-item-border;
307 background-color: $datepicker-monthpicker-item-hover-background-color;
310 &.#{$prefix}monthpicker-selected {
311 background-color: $datepicker-monthpicker-item-selected-background-color;
312 border: $datepicker-monthpicker-item-selected-border;
317 .#{$prefix}monthpicker-months {
318 border-right: $datepicker-border;
322 .#{$prefix}monthpicker-years .#{$prefix}monthpicker-item {
326 .#{$prefix}monthpicker-yearnav {
330 background-image: theme-background-image($theme-name, $datepicker-tool-sprite-image);
334 margin: 6px 12px 5px 15px;
337 &::-moz-focus-inner {
344 .#{$prefix}monthpicker-yearnav-next {
345 background-position: 0 -120px;
348 .#{$prefix}monthpicker-yearnav-next-over {
351 background-position: -15px -120px;
354 .#{$prefix}monthpicker-yearnav-prev {
355 background-position: 0 -105px;
358 .#{$prefix}monthpicker-yearnav-prev-over {
361 background-position: -15px -105px;
364 .#{$prefix}monthpicker-small {
365 .#{$prefix}monthpicker-item {
369 .#{$prefix}monthpicker-yearnav {
373 .#{$prefix}monthpicker-months, .#{$prefix}monthpicker-years {
382 .#{$prefix}monthpicker-buttons {
389 .#{$prefix}monthpicker-small .#{$prefix}monthpicker-yearnav button {
395 .#{$prefix}ie6 .#{$prefix}monthpicker-small .#{$prefix}monthpicker-yearnav button {
402 @if not $supports-gradients or $compile-all {
404 @if $datepicker-header-background-gradient != null {
405 .#{$prefix}datepicker-header {
406 background-image: theme-background-image($theme-name, 'datepicker/datepicker-header-bg.gif');
407 background-repeat: repeat-x;
408 background-position: top left;
412 @if $datepicker-footer-background-gradient != null {
413 .#{$prefix}datepicker-footer,
414 .#{$prefix}monthpicker-buttons {
415 background-image: theme-background-image($theme-name, 'datepicker/datepicker-footer-bg.gif');
416 background-repeat: repeat-x;
417 background-position: top left;