-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselect-search.css
More file actions
84 lines (74 loc) · 2.4 KB
/
select-search.css
File metadata and controls
84 lines (74 loc) · 2.4 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
.select-search{
& *{
box-sizing: border-box;
}
& textarea:focus, input:focus{
outline: none;
}
& .select-search-placeholder-style{
cursor: pointer;
border: 1px solid lightgrey;
width: 100%;
max-width: 350px;
padding: 3px 5px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
& .select-search-modal{
background-color: #ffffff;
border: 1px solid lightgrey;
border-bottom: none;
/* min-width: 350px; */
max-height: 300px;
overflow: auto;
position: absolute;
z-index: 9999;
& .select-search-input-style{
width: 100%;
border: none;
border-bottom: 1px solid lightgrey;
padding: 3px 5px;
}
& .select-search-list{
& .select-search-optgroup{
position: sticky;
top: 0px;
background-color: rgb(235, 235, 235);
padding: 3px 5px;
}
& .select-search-optgroup-list{
& .select-search-item-style{
padding-left: 20px;
}
}
& .select-search-item-style{
border-bottom: 1px solid lightgrey;
padding: 3px 5px;
cursor: pointer;
transition: background-color 0.3s;
-webkit-transition: background-color 0.3s;
-moz-transition: background-color 0.3s;
-o-transition: background-color 0.3s;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
&.selected{
background-color: #b8e5c6;
}
&:hover{
background-color: #b8e5c6;
}
}
}
}
}