-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdate-range-picker.fluent.scss
More file actions
76 lines (64 loc) · 1.9 KB
/
date-range-picker.fluent.scss
File metadata and controls
76 lines (64 loc) · 1.9 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@use 'styles/utilities' as *;
@use '../light/themes' as *;
$theme: $fluent;
:host {
--calendar-border-color: #{$fluent-calendar-border-color};
igc-dialog[open]::part(base) {
border-radius: 0;
}
::part(helper-text) {
grid-auto-rows: minmax(rem(18px), auto);
margin-block-start: pad-block(rem(5px));
}
}
:host([required]) {
::part(label)::after {
color: var-get($theme, 'error-secondary-color');
}
}
:host(:not([disabled])[readonly]) {
igc-input::part(prefix),
igc-input::part(suffix),
igc-date-time-input::part(prefix),
igc-date-time-input::part(suffix) {
background: transparent;
}
}
:host(:not([readonly],[disabled])) {
igc-input[readonly]:not(:focus):hover::part(container) {
&::before {
// This represents the shadow color
color: var-get($theme, 'hover-border-color');
}
}
}
:host(:not([disabled],[readonly]):state(ig-invalid)),
:host(:not([disabled],[readonly]):state(ig-invalid):hover) {
igc-input::part(container),
igc-date-time-input::part(container) {
&::before {
box-shadow: inset 0 0 0 var(--input-border-size) var-get($theme, 'error-secondary-color');
}
}
igc-date-time-input:focus-within {
&::part(container)::before {
box-shadow: inset 0 0 0 calc(var(--input-border-size) + #{rem(1px)}) var-get($theme, 'error-secondary-color');
}
}
}
:host(:not([disabled],[readonly]):state(ig-invalid):focus-within) {
igc-input::part(container) {
&::before {
box-shadow: inset 0 0 0 calc(var(--input-border-size) + #{rem(1px)}) var-get($theme, 'error-secondary-color');
}
}
}
:host(:disabled),
:host([disabled]) {
::part(label)::after {
color: var-get($theme, 'disabled-text-color');
}
}
[part='actions'] {
min-height: #{sizable(rem(40px), rem(48px), rem(54px))};
}