-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathDateField.css
More file actions
73 lines (62 loc) · 1.44 KB
/
DateField.css
File metadata and controls
73 lines (62 loc) · 1.44 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
@import "./theme.css";
@import "./utilities.css";
.react-aria-DateField {
display: flex;
flex-direction: column;
}
.react-aria-DateInput {
display: inline;
padding: 0 var(--spacing-3);
box-sizing: border-box;
border-radius: var(--radius);
font: var(--font-size) system-ui;
color: var(--field-text-color);
height: var(--spacing-8);
line-height: var(--spacing-8);
width: fit-content;
min-width: 150px;
white-space: nowrap;
forced-color-adjust: none;
cursor: text;
overflow-x: auto;
scrollbar-width: none;
&[data-focus-within] {
outline: 2px solid var(--focus-ring-color);
outline-offset: -1px;
}
&[data-disabled] {
color: var(--text-color-disabled);
}
}
.react-aria-DateSegment {
padding: 2px;
font-size: var(--font-size);
font-variant-numeric: tabular-nums;
text-align: end;
color: var(--field-text-color);
-webkit-tap-highlight-color: transparent;
&[data-type=literal] {
padding: 0;
}
&[data-placeholder] {
color: var(--text-color-placeholder);
}
&:focus {
color: var(--highlight-foreground);
background: var(--highlight-background);
outline: none;
border-radius: 4px;
caret-color: transparent;
}
&[data-invalid] {
color: var(--invalid-color);
&:focus {
background: var(--highlight-background-invalid);
color: var(--highlight-foreground);
}
}
&[data-disabled] {
color: var(--text-color-disabled);
cursor: default;
}
}