|
| 1 | +@use 'styles/utilities' as *; |
| 2 | +@use '../light/themes' as *; |
| 3 | + |
| 4 | +$theme: $material; |
| 5 | + |
| 6 | +:host(:not([invalid])[outlined][readonly]:hover) { |
| 7 | + igc-date-time-input::part(start), |
| 8 | + igc-date-time-input::part(end), |
| 9 | + igc-date-time-input::part(filler) { |
| 10 | + border-color: var-get($theme, 'border-color'); |
| 11 | + } |
| 12 | + |
| 13 | + igc-date-time-input::part(notch) { |
| 14 | + border-bottom-color: var-get($theme, 'border-color'); |
| 15 | + } |
| 16 | +} |
| 17 | + |
| 18 | +:host(:not([invalid])[outlined][readonly]) { |
| 19 | + igc-date-time-input:focus-within { |
| 20 | + &::part(start), |
| 21 | + &::part(end), |
| 22 | + &::part(filler) { |
| 23 | + border-color: var-get($theme, 'focused-border-color'); |
| 24 | + } |
| 25 | + |
| 26 | + &::part(notch) { |
| 27 | + border-bottom-color: var-get($theme, 'focused-border-color'); |
| 28 | + } |
| 29 | + } |
| 30 | +} |
| 31 | + |
| 32 | +:host(:not([outlined],[disabled])[readonly]) { |
| 33 | + igc-date-time-input::part(container) { |
| 34 | + background: var-get($theme, 'box-background-focus'); |
| 35 | + } |
| 36 | +} |
| 37 | + |
| 38 | +:host(:not([outlined],[invalid])[readonly]) { |
| 39 | + igc-date-time-input:hover { |
| 40 | + &::part(container) { |
| 41 | + border-bottom-color: var-get($theme, 'idle-bottom-line-color'); |
| 42 | + |
| 43 | + &::after { |
| 44 | + background: var-get($theme, 'idle-bottom-line-color'); |
| 45 | + } |
| 46 | + } |
| 47 | + } |
| 48 | + |
| 49 | + igc-date-time-input:focus-within { |
| 50 | + &::part(container) { |
| 51 | + border-bottom-color: var-get($theme, 'focused-bottom-line-color'); |
| 52 | + |
| 53 | + &::after { |
| 54 | + background: var-get($theme, 'focused-bottom-line-color'); |
| 55 | + } |
| 56 | + } |
| 57 | + } |
| 58 | +} |
| 59 | + |
| 60 | +:host(:not([outlined])[readonly][invalid]) { |
| 61 | + igc-date-time-input:hover, |
| 62 | + igc-date-time-input:focus-within { |
| 63 | + &::part(container) { |
| 64 | + border-color: var-get($theme, 'error-secondary-color'); |
| 65 | + |
| 66 | + &::after { |
| 67 | + border-color: var-get($theme, 'error-secondary-color'); |
| 68 | + } |
| 69 | + } |
| 70 | + } |
| 71 | +} |
0 commit comments