-
Notifications
You must be signed in to change notification settings - Fork 264
/
jquery.dropdown.css
93 lines (93 loc) · 2.05 KB
/
jquery.dropdown.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
/* jQuery Dropdown: A simple dropdown plugin
*
* Contribute: https://github.com/claviska/jquery-dropdown
*
* @license: MIT license: http://opensource.org/licenses/MIT
*
*/
.jq-dropdown {
position: absolute;
z-index: 1039;
display: none;
}
.jq-dropdown .jq-dropdown-menu,
.jq-dropdown .jq-dropdown-panel {
min-width: 160px;
max-width: 360px;
list-style: none;
background: white;
border: solid 1px #ddd;
border-radius: 4px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
overflow: visible;
padding: 4px 0;
margin: 0;
}
.jq-dropdown .jq-dropdown-panel {
padding: 10px;
}
.jq-dropdown.jq-dropdown-tip {
margin-top: 8px;
}
.jq-dropdown.jq-dropdown-tip:before {
position: absolute;
top: -6px;
left: 9px;
content: "";
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-bottom: 7px solid #ddd;
display: inline-block;
}
.jq-dropdown.jq-dropdown-tip:after {
position: absolute;
top: -5px;
left: 10px;
content: "";
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid white;
display: inline-block;
}
.jq-dropdown.jq-dropdown-tip.jq-dropdown-anchor-right:before {
left: auto;
right: 9px;
}
.jq-dropdown.jq-dropdown-tip.jq-dropdown-anchor-right:after {
left: auto;
right: 10px;
}
.jq-dropdown.jq-dropdown-scroll .jq-dropdown-menu,
.jq-dropdown.jq-dropdown-scroll .jq-dropdown-panel {
max-height: 180px;
overflow: auto;
}
.jq-dropdown .jq-dropdown-menu li {
list-style: none;
padding: 0 0;
text-indent: 0;
margin: 0;
line-height: 18px;
}
.jq-dropdown .jq-dropdown-menu li > a,
.jq-dropdown .jq-dropdown-menu label {
display: block;
color: inherit;
text-decoration: none;
line-height: 18px;
padding: 3px 15px;
margin: 0;
white-space: nowrap;
}
.jq-dropdown .jq-dropdown-menu li > a:hover,
.jq-dropdown .jq-dropdown-menu label:hover {
background-color: #f2f2f2;
color: inherit;
cursor: pointer;
}
.jq-dropdown .jq-dropdown-menu .jq-dropdown-divider {
font-size: 1px;
border-top: solid 1px #e5e5e5;
padding: 0;
margin: 5px 0;
}