-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathDropdown.module.css
More file actions
128 lines (111 loc) · 2.51 KB
/
Copy pathDropdown.module.css
File metadata and controls
128 lines (111 loc) · 2.51 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
.dropdown {
background: var(--ds-color-theme-surface-tertiary);
border-radius: 6px;
border: 1px solid var(--ds-color-theme-container-border-secondary);
box-shadow: 0 10px 24px var(--ds-color-theme-shadow-primary);
list-style: none;
margin: 0;
min-width: 245px;
overflow: hidden;
padding: 5px;
position: fixed;
z-index: 100;
&:focus-visible {
outline: none;
}
}
.header {
align-items: center;
color: var(--ds-color-theme-text-secondary);
display: flex;
font-size: 10px;
font-weight: 600;
height: 20px;
letter-spacing: 0.12px;
line-height: 13px;
padding: 0 9px 0 19px;
}
.empty {
color: var(--ds-color-theme-text-secondary);
font-size: 13px;
padding: 9px;
}
.item {
align-items: center;
border-radius: 3px;
color: var(--ds-color-theme-text-primary);
cursor: pointer;
display: flex;
font-size: 13px;
gap: 6px;
padding: 6px 9px;
text-align: left;
white-space: nowrap;
& > svg {
flex-shrink: 0;
}
}
.trailingIcon {
align-items: center;
color: var(--ds-color-theme-icons-secondary);
display: flex;
margin-left: auto;
}
/* Gated options (e.g. "Upgrade"): gray out the icon and label to signal they aren't selectable,
while keeping the trailing badge at full opacity. */
.itemDimmed > svg,
.itemDimmed .itemLabel {
opacity: 0.4;
}
.itemActive {
background: var(--ds-color-theme-control-fill-primary);
color: var(--ds-color-theme-text-primary);
.itemDescription {
color: var(--ds-color-theme-text-secondary);
}
}
.checkmark {
flex-shrink: 0;
height: 12px;
position: relative;
width: 4px;
&::before {
color: transparent;
content: '\2713';
font-size: 13px;
font-weight: 700;
left: -5px;
line-height: 12px;
position: absolute;
top: 0;
}
}
.itemSelected .checkmark::before {
color: var(--ds-color-theme-text-primary);
}
.itemActive .checkmark::before {
color: transparent;
}
.itemActive.itemSelected .checkmark::before {
color: var(--ds-color-theme-text-primary);
}
.itemLabel {
display: flex;
flex: 1;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.itemName {
letter-spacing: -0.08px;
overflow: hidden;
text-overflow: ellipsis;
line-height: 16px;
}
.itemDescription {
line-height: 16px;
color: var(--ds-color-theme-text-secondary);
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
}