-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcombobox.module.css
More file actions
98 lines (84 loc) · 2.07 KB
/
Copy pathcombobox.module.css
File metadata and controls
98 lines (84 loc) · 2.07 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.positioner {
z-index: var(--rs-z-index-portal);
}
.content {
font-size: var(--rs-font-size-small);
line-height: var(--rs-line-height-small);
letter-spacing: var(--rs-letter-spacing-small);
box-sizing: border-box;
background-color: var(--rs-color-background-base-primary);
border-radius: var(--rs-radius-2);
box-shadow: var(--rs-shadow-soft);
border: 0.5px solid var(--rs-color-border-base-primary);
/* Todo: var does not exist for 320px */
max-height: 320px;
min-width: var(--anchor-width);
overflow: auto;
transform-origin: var(--transform-origin);
transition: opacity var(--rs-duration-fast) var(--rs-ease-out);
}
.content[data-starting-style],
.content[data-ending-style] {
opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
.content {
transition:
opacity var(--rs-duration-fast) var(--rs-ease-out),
transform var(--rs-duration-fast) var(--rs-ease-out);
}
.content[data-starting-style],
.content[data-ending-style] {
transform: scale(0.97);
}
}
.list {
padding: var(--rs-space-2);
}
.itemIcon {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.itemIcon svg {
width: var(--rs-space-5);
height: var(--rs-space-5);
}
.menuitem {
display: flex;
align-items: center;
position: relative;
gap: var(--rs-space-3);
padding: var(--rs-space-3);
color: var(--rs-color-foreground-base-primary);
white-space: normal;
word-break: break-word;
border-radius: var(--rs-radius-1);
}
.menuitem[data-highlighted] {
outline: none;
cursor: pointer;
background: var(--rs-color-background-base-primary-hover);
}
.menuitem[data-disabled] {
opacity: 0.5;
pointer-events: none;
}
.list:empty {
padding: 0;
}
.content:has(.list:empty) {
border: none;
}
.label {
padding: var(--rs-space-2) var(--rs-space-3);
font-weight: var(--rs-font-weight-medium);
font-size: var(--rs-font-size-mini);
}
.separator {
/* Todo: var does not exist for 1px */
height: 1px;
margin: var(--rs-space-2) calc(var(--rs-space-3) * -1);
background: var(--rs-color-border-base-primary);
}