|
| 1 | +// in component.scss |
| 2 | +@import '~igniteui-angular/lib/core/styles/themes/index'; |
| 3 | + |
| 4 | +// common |
| 5 | +$purple: #9E379F; |
| 6 | +$blue: #61AEDB; |
| 7 | + |
| 8 | +$custom-palette: igx-palette($primary: $blue, $secondary: $purple); |
| 9 | + |
| 10 | +$today-text: igx-color($custom-palette, "primary", 500); |
| 11 | +$text-color: igx-color($custom-palette, "secondary", 200); |
| 12 | +$color-focused: igx-color($custom-palette, "secondary", 500); |
| 13 | + |
| 14 | + |
| 15 | +// DATE-RANGE |
| 16 | +$custom-date-range-theme: igx-date-range-picker-theme( |
| 17 | + $label-color: $color-focused |
| 18 | +); |
| 19 | + |
| 20 | +// INPUT GROUP |
| 21 | +$input-group-theme: igx-input-group-theme( |
| 22 | + $palette: $custom-palette, |
| 23 | + $filled-text-color: $text-color, |
| 24 | + $idle-text-color: $text-color, |
| 25 | + $focused-text-color: $color-focused, |
| 26 | + $hover-bottom-line-color: $color-focused, |
| 27 | + $idle-bottom-line-color: $purple |
| 28 | +); |
| 29 | + |
| 30 | +// CALENDAR styling specific overlay component requires outlet -> [overlaySettings]="{ outlet: element }" |
| 31 | +$roundness: 0.5; |
| 32 | +$custom-calendar-theme: igx-calendar-theme( |
| 33 | + $palette: $custom-palette, |
| 34 | + $date-current-text-color: $today-text, |
| 35 | + $border-radius: $roundness, |
| 36 | + $date-border-radius: $roundness |
| 37 | +); |
| 38 | + |
| 39 | +:host { |
| 40 | + ::ng-deep { |
| 41 | + @include igx-date-range-picker($custom-date-range-theme); |
| 42 | + @include igx-input-group($input-group-theme); |
| 43 | + @include igx-calendar($custom-calendar-theme); |
| 44 | + } |
| 45 | +} |
| 46 | + |
| 47 | +.date-picker-wrapper { |
| 48 | + padding: 1rem; |
| 49 | + max-width: 400px; |
| 50 | +} |
0 commit comments