@@ -16,7 +16,7 @@ jQuery Selectric is a jQuery plugin designed to help at stylizing and manipulati
16
16
Make sure to include jQuery in your page:
17
17
18
18
``` html
19
- <script src =" //ajax.googleapis.com/ajax/libs/jquery/1.11.1 /jquery.min.js" ></script >
19
+ <script src =" //ajax.googleapis.com/ajax/libs/jquery/1.11.2 /jquery.min.js" ></script >
20
20
```
21
21
22
22
Include ** jQuery Selectric:**
@@ -28,13 +28,11 @@ Include **jQuery Selectric:**
28
28
Put styles in your CSS and change it to your taste : D
29
29
30
30
``` css
31
- /* ======================================================================
31
+ /* ======================================
32
32
Selectric
33
- ====================================================================== */
33
+ ======================================*/
34
34
.selectricWrapper {
35
35
position : relative ;
36
- margin : 0 0 10px ;
37
- width : 300px ;
38
36
cursor : pointer ;
39
37
}
40
38
@@ -46,31 +44,29 @@ Put styles in your CSS and change it to your taste :D
46
44
border : 1px solid #DDD ;
47
45
background : #F8F8F8 ;
48
46
position : relative ;
49
- border-radius : 2px ;
50
47
}
51
48
.selectric .label {
52
49
display : block ;
53
50
white-space : nowrap ;
54
51
overflow : hidden ;
55
- margin : 0 30 px 0 0 ;
56
- padding : 6 px ;
52
+ text-overflow : ellipsis ;
53
+ margin : 0 38 px 0 10 px ;
57
54
font-size : 12px ;
58
- line-height : 18 px ;
55
+ line-height : 38 px ;
59
56
color : #444 ;
60
- min- height : 18 px ;
57
+ height : 38 px ;
61
58
}
62
59
.selectric .button {
63
60
display : block ;
64
61
position : absolute ;
65
62
right : 0 ;
66
63
top : 0 ;
67
- width : 30 px ;
68
- height : 30 px ;
64
+ width : 38 px ;
65
+ height : 38 px ;
69
66
color : #BBB ;
70
67
text-align : center ;
71
68
font : 0 /0 a;
72
- /* IE Fix */
73
- *font : 20px /30px Lucida Sans Unicode, Arial Unicode MS, Arial ;
69
+ *font : 20px /38px Lucida Sans Unicode, Arial Unicode MS, Arial ;
74
70
}
75
71
.selectric .button :after {
76
72
content : " " ;
@@ -88,21 +84,17 @@ Put styles in your CSS and change it to your taste :D
88
84
}
89
85
90
86
.selectricHover .selectric {
91
- border-color : #CCC ;
87
+ border-color : #C4C4C4 ;
92
88
}
93
89
.selectricHover .selectric .button {
94
- color : #888 ;
95
- }
96
- .selectricHover .selectric .button :after {
97
- border-top-color : #888 ;
90
+ color : #A2A2A2 ;
98
91
}
99
92
100
93
.selectricOpen {
101
94
z-index : 9999 ;
102
95
}
103
96
.selectricOpen .selectric {
104
- border-color : #CCC ;
105
- background : #F0F0F0 ;
97
+ border-color : #C4C4C4 ;
106
98
}
107
99
.selectricOpen .selectricItems {
108
100
display : block ;
@@ -112,7 +104,6 @@ Put styles in your CSS and change it to your taste :D
112
104
filter : alpha (opacity=50 );
113
105
opacity : 0.5 ;
114
106
cursor : default ;
115
- -webkit-touch-callout : none ;
116
107
-webkit-user-select : none ;
117
108
-moz-user-select : none ;
118
109
-ms-user-select : none ;
@@ -159,8 +150,8 @@ Put styles in your CSS and change it to your taste :D
159
150
position : absolute ;
160
151
top : 100% ;
161
152
left : 0 ;
162
- background : #F9F9F9 ;
163
- border : 1px solid #CCC ;
153
+ background : #F8F8F8 ;
154
+ border : 1px solid #C4C4C4 ;
164
155
z-index : -1 ;
165
156
box-shadow : 0 0 10px -6px ;
166
157
}
@@ -182,7 +173,7 @@ Put styles in your CSS and change it to your taste :D
182
173
}
183
174
.selectricItems li {
184
175
display : block ;
185
- padding : 5 px ;
176
+ padding : 8 px ;
186
177
border-top : 1px solid #FFF ;
187
178
border-bottom : 1px solid #EEE ;
188
179
color : #666 ;
@@ -191,18 +182,41 @@ Put styles in your CSS and change it to your taste :D
191
182
.selectricItems li .selected {
192
183
background : #EFEFEF ;
193
184
color : #444 ;
194
- border-top-color : #E0E0E0 ;
195
185
}
196
186
.selectricItems li :hover {
197
187
background : #F0F0F0 ;
198
188
color : #444 ;
199
189
}
200
- .selectricItems li .disabled {
201
- background : #F5F5F5 ;
202
- color : #BBB ;
203
- border-top-color : #FAFAFA ;
190
+ .selectricItems .disabled {
191
+ filter : alpha (opacity=50 );
192
+ opacity : 0.5 ;
193
+ cursor : default !important ;
194
+ background : none !important ;
195
+ color : #666 !important ;
196
+ -webkit-user-select : none ;
197
+ -moz-user-select : none ;
198
+ -ms-user-select : none ;
199
+ user-select : none ;
200
+ }
201
+ .selectricItems .selectricGroup .selectricGroupLabel {
202
+ font-weight : bold ;
203
+ padding-left : 10px ;
204
204
cursor : default ;
205
+ -webkit-user-select : none ;
206
+ -moz-user-select : none ;
207
+ -ms-user-select : none ;
208
+ user-select : none ;
209
+ background : none ;
210
+ color : #444 ;
211
+ }
212
+ .selectricItems .selectricGroup.disabled li {
213
+ filter : alpha (opacity=100 );
214
+ opacity : 1 ;
205
215
}
216
+ .selectricItems .selectricGroup li {
217
+ padding-left : 25px ;
218
+ }
219
+
206
220
```
207
221
208
222
Initialize ** jQuery Selectric:**
0 commit comments