-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdate-picker.fluent.scss
More file actions
59 lines (48 loc) · 1.33 KB
/
date-picker.fluent.scss
File metadata and controls
59 lines (48 loc) · 1.33 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
@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='label'] {
@include type-style('subtitle-2');
}
::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-date-time-input::part(prefix),
igc-date-time-input::part(suffix) {
background: transparent;
}
}
:host(:not([disabled],[readonly]):state(ig-invalid)) {
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(:disabled),
:host([disabled]) {
[part='label']::after {
color: var-get($theme, 'disabled-text-color');
}
}
[part='actions'] {
min-height: #{sizable(rem(40px), rem(48px), rem(54px))};
}