-
Notifications
You must be signed in to change notification settings - Fork 1
/
superselector.css
69 lines (69 loc) · 1.48 KB
/
superselector.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
.superselector-wrapper::after {
display: inline-block;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #000;
content: "";
margin-left: -17px;
vertical-align: middle;
margin-right: 10px;
pointer-events: none;
}
.superselector {
box-sizing: border-box;
vertical-align: middle;
padding-right: 20px;
}
.superselector:focus {
outline: 1px solid #c00;
}
.superselector-list {
position: fixed;
display: inline-block;
background: #fff;
max-height: 300px;
box-sizing: border-box;
border: 1px solid #666;
border-top: 1px solid #999;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
overflow: auto;
z-index: 10000;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
.superselector-list ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.superselector-list ul li.choice,
.superselector-list ul li.title {
padding: 0 6px 1px 6px;
}
.superselector-list ul li.choice.active {
background: #1e90ff !important;
color: #fff !important;
cursor: pointer;
}
.superselector-list ul li.choice.disabled {
color: #ccc;
cursor: not-allowed !important;
}
.superselector-list ul li.seperator {
border-top: 1px solid #aaa;
height: 0;
margin: 1px 0;
}
.superselector-list ul li.title {
font-weight: bold;
background: #ddd;
font-size: 1.1em;
padding: 2px auto;
margin-top: 5px;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
}