File size: 904 Bytes
3425d88
 
 
 
 
c71b7d4
 
3425d88
 
c71b7d4
 
3425d88
 
 
 
 
c71b7d4
 
3425d88
 
c71b7d4
 
3425d88
 
 
c71b7d4
3425d88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Base styles for the select component */
.custom-select {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.select-btn {
    text-align: left;
}

.select-list {
    transform-origin: top;
    will-change: transform, opacity;
    transition: transform 200ms ease, opacity 200ms ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.select-list li {
    user-select: none;
}

/* Animation for the portal */
.select-portal {
    transition: opacity 200ms ease, transform 200ms ease;
}

/* Custom scrollbar for the dropdown */
.select-list::-webkit-scrollbar {
    width: 8px;
}

.select-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 4px 4px 0;
}

.select-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.select-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}