jquery.ui.selectmenu.css
2.61 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
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
/* Selectmenu
----------------------------------*/
.ui-selectmenu {
display: block;
display: inline-block;
position: relative; /*height: 2.2em;*/
vertical-align: middle;
text-decoration: none;
overflow: hidden;
zoom: 1;
}
.ui-selectmenu-icon {
position: absolute;
right: 6px;
margin-top: -8px;
top: 50%;
}
.ui-selectmenu-menu {
padding: 0;
margin: 0;
position: absolute;
top: 0;
display: none;
z-index: 1005;
}
/* z-index: 1005 to make selectmenu work with dialog */
.ui-selectmenu-menu ul {
padding: 0;
margin: 0;
list-style: none;
position: relative;
overflow: auto;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
.ui-selectmenu-open {
display: block;
}
.ui-selectmenu-menu-popup {
margin-top: -1px;
}
.ui-selectmenu-menu li {
padding: 0;
margin: 0;
display: block;
border-top: 1px dotted transparent;
border-bottom: 1px dotted transparent;
border-right-width: 0 !important;
border-left-width: 0 !important;
font-weight: normal !important;
}
.ui-selectmenu-menu li a, .ui-selectmenu-status {
line-height: 1.4em;
display: block;
padding: 2px 2.1em 2px 4px;
outline: none;
text-decoration: none;
}
.ui-selectmenu-menu li.ui-state-disabled a, .ui-state-disabled {
cursor: default;
}
.ui-selectmenu-menu li.ui-selectmenu-hasIcon a,
.ui-selectmenu-hasIcon .ui-selectmenu-status {
padding-left: 20px;
position: relative;
margin-left: 5px;
}
.ui-selectmenu-menu li .ui-icon, .ui-selectmenu-status .ui-icon {
position: absolute;
top: 1em;
margin-top: -8px;
left: 0;
}
.ui-selectmenu-status {
line-height: 1.4em;
}
.ui-selectmenu-menu li span, .ui-selectmenu-status span {
display: block;
margin-bottom: .2em;
}
.ui-selectmenu-menu li .ui-selectmenu-item-header {
font-weight: bold;
}
.ui-selectmenu-menu li .ui-selectmenu-item-footer {
opacity: .8;
}
/* for optgroups */
.ui-selectmenu-menu .ui-selectmenu-group {
font-size: 1em;
}
.ui-selectmenu-menu .ui-selectmenu-group .ui-selectmenu-group-label {
line-height: 1.4em;
display: block;
padding: .6em .5em 0;
font-weight: bold;
}
.ui-selectmenu-menu .ui-selectmenu-group ul {
margin: 0;
padding: 0;
}
/* IE6 workaround (dotted transparent borders) */
* html .ui-selectmenu-menu li {
border-color: pink;
filter: chroma(color=pink);
width: 100%;
}
* html .ui-selectmenu-menu li a {
position: relative
}
/* IE7 workaround (opacity disabled) */
*+html .ui-state-disabled, *+html .ui-state-disabled a {
color: silver;
}