-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathindex.scss
More file actions
57 lines (50 loc) · 1.47 KB
/
Copy pathindex.scss
File metadata and controls
57 lines (50 loc) · 1.47 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
@use "../../style/variables" as *;
.#{$prefix}-auto-complete {
position: relative;
display: inline-block;
width: 100%;
&_disabled {
cursor: not-allowed;
opacity: var(--ty-auto-complete-opacity-disabled);
}
// Dropdown
&__dropdown {
width: 100%;
margin: 0;
padding: var(--ty-auto-complete-dropdown-padding);
list-style-type: none;
background-color: var(--ty-auto-complete-dropdown-bg);
box-sizing: border-box;
overflow: hidden auto;
z-index: 10;
box-shadow: var(--ty-auto-complete-dropdown-shadow);
border-radius: var(--ty-auto-complete-dropdown-radius);
font-size: var(--ty-auto-complete-dropdown-font-size);
max-height: var(--ty-auto-complete-dropdown-max-height);
}
// Empty state
&__empty {
padding: var(--ty-auto-complete-empty-padding);
text-align: center;
color: var(--ty-auto-complete-empty-color);
font-size: var(--ty-auto-complete-empty-font-size);
}
}
// Option
.#{$prefix}-auto-complete-option {
display: flex;
align-items: center;
padding: var(--ty-auto-complete-option-padding);
font-size: var(--ty-auto-complete-option-font-size);
line-height: var(--ty-auto-complete-option-line-height);
cursor: pointer;
color: var(--ty-auto-complete-option-color);
transition: background-color 0.2s;
&_active {
background-color: var(--ty-auto-complete-option-bg-active);
}
&_disabled {
cursor: not-allowed;
opacity: var(--ty-auto-complete-option-opacity-disabled);
}
}