-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdate-picker.indigo.scss
More file actions
62 lines (50 loc) · 1.45 KB
/
date-picker.indigo.scss
File metadata and controls
62 lines (50 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@use 'sass:map';
@use 'styles/utilities' as *;
@use '../light/themes' as *;
@use '../../../input/themes/light/themes' as input-theme;
$theme: $indigo;
$input-theme: input-theme.$indigo;
:host {
--calendar-border-color: #{$indigo-calendar-border-color};
--input-icon: #{sizable(rem(14px), rem(16px), rem(16px))};
igc-icon,
::slotted(igc-icon) {
--size: var(--input-icon) !important;
}
igc-dialog[open]::part(base) {
border-radius: rem(6px);
box-shadow: var(--ig-elevation-5);
}
[part~='label'] {
@include type-style('caption');
}
::part(helper-text) {
grid-auto-rows: minmax(rem(15px), auto);
}
}
:host(:focus-within) {
[part='label'] {
color: var-get($input-theme, 'focused-secondary-color');
}
}
:host([readonly]) {
igc-date-time-input::part(container) {
border-color: var-get($theme, 'disabled-text-color');
}
}
:host(:not([disabled],[readonly]):state(ig-invalid)),
:host(:not(:disabled,[readonly]):state(ig-invalid)) {
::part(helper-text) {
color: var-get($input-theme, 'helper-text-color');
}
igc-date-time-input::part(container) {
border-color: var-get($theme, 'error-secondary-color');
&::after {
background: var-get($theme, 'error-secondary-color');
}
}
}
[part='actions'] {
min-height: #{sizable(rem(40px), rem(44px), rem(48px))};
padding: pad-block(rem(8px)) pad-inline(rem(16px));
}