-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselect-multiple-search-ui.css
130 lines (115 loc) · 2.48 KB
/
select-multiple-search-ui.css
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
129
130
.select__multiple__search__container {
position: relative;
display: flex;
flex-flow: column nowrap;
gap: 4px;
}
.select__multiple__search__container * {
box-sizing: border-box;
padding: 0;
margin: 0;
}
.select__multiple__search__container select {
position: absolute !important;
height: 1px !important;
width: 1px !important;
padding: 0 !important;
margin: 0 !important;
border: 0 !important;
overflow: hidden !important;
clip: rect(0 0 0 0) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
}
.select__selected__part {
list-style: none;
display: flex;
flex-flow: row wrap;
gap: 4px;
}
.select__selected {
position: relative;
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
gap: 4px;
padding: 4px;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
background-color: #CACACA;
border: 1px solid #AAA;
border-radius: 4px;
}
.select__selected__remove {
background-color: transparent;
border: none;
color: #999;
cursor: pointer;
font-weight: 700;
font-size: 1rem;
line-height: 1rem;
width: 1rem;
height: 1rem;
display: flex;
justify-content: center;
align-items: center;
transition: .1s ease-out;
-webkit-appearance: none;
border-radius: 0;
}
.select__selected__remove:hover {
color: #323232;
}
.select__selected__seperator {
height: 100%;
border: 1px solid #999;
border-radius: 1px;
}
.select__selected__name {
cursor: default;
color: inherit;
}
.select__search__part {
position: relative;
display: flex;
flex-flow: row nowrap;
align-items: stretch;
gap: 8px;
}
.select__list {
top: 100%;
position: absolute;
width: max-content;
max-height: 240px;
max-width: 100%;
list-style: none;
z-index: 99;
display: flex;
flex-flow: column nowrap;
overflow: hidden;
overflow-y: auto;
border: 1px solid #CACACA;
background: #fff;
}
.select__list__item__title, .select__list__item {
position: relative;
display: flex;
flex-flow: row nowrap;
align-items: center;
gap: 8px;
padding: 8px;
cursor: pointer;
}
.select__list__item__title {
font-weight: bolder;
background: #CACACA;
}
.select__list__item {
padding: 8px 12px;
}
.select__list__item:hover, .select__item__highlighted {
background: #EFEFEF;
}