forked from losmicar/bselect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bselect.css
137 lines (129 loc) · 2.32 KB
/
bselect.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
131
132
133
134
135
136
137
.bselect{
display: inline-block;
font-family: sans-serif;
position: relative;
}
.bselect-input{
display:none;
}
.bselect-active{
cursor:pointer;
background:#fff;
color: #464646;
display: inline-flex;
width: 100%;
border: 1px solid #a7a7a7;
border-radius: 3px;
cursor: pointer;
font-size: 13px;
line-height: 2.4em;
/*text-indent: 10px;
padding-left:10px;*/
position:relative;
display:inline-block;
}
.bselect-item{
display:inline-flex;
width:100%;
}
.bselect-item .bselect-remove{
display:none;
}
.bselect-item.bselect-disabled .bselect-remove{
display:block;
color:#000;
}
.bselect-disabled{
color:#ababab;
}
.bselect-remove{
display: inline-flex;
padding-right: 5px;
padding-left: 5px;
}
.bselect-default-text{
padding-left:10px;
}
.bselect-multiple-item{
display: inline-flex;
border: 1px solid #dedede;
margin: 2px;
padding-right: 10px;
border-radius: 3px;
padding-left: 10px;
}
.bselect-active.elipsis{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bselect-active:after{
position: absolute;
content: "";
top: 14px;
right: 10px;
width: 0;
height: 0;
border: 6px solid transparent;
border-color: #4a4a4a transparent transparent
}
.bselect-search{
}
.bselect-content{
visibility:hidden;
background: #fff;
border: 1px solid #dedede;
position: absolute;
z-index: 9;
}
.bselect-list{
max-height: 200px;
overflow: hidden;
overflow-y: auto;
margin: 0px;
padding: 0px;
}
.bselect-list li{
cursor:pointer;
font-size: 13px;
padding-top: 3px;
padding-bottom: 3px;
padding-left: 10px;
line-height: 2em;
}
.bselect-list li.elipsis{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bselect-list li:hover{
background:#dedede;
}
.bselect-search{
width: 98%;
margin: 0px auto;
margin-top: 1%;
}
.bselect-search input{
border: 0px;
border-radius: 0px;
height: 30px;
border: 1px solid #dedede;
margin-bottom: 2%;
width: 100%;
text-indent: 5px;
box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
.bselect-search input:focus{
outline: 0;
border: 1px solid #0be;
}
.bselect-list li.hide-item{
display:none;
}
.bselect-no-results{
text-align: center;
padding: 20px;
height: 100%;
font-size: 13px;
}