-
Notifications
You must be signed in to change notification settings - Fork 32
/
jquery.selectboxit.css
106 lines (93 loc) · 2.62 KB
/
jquery.selectboxit.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
/*
* jQuery.selectBoxIt.css 0.9.0
* Author: @gregfranko
*/
/* Div container holding the dropdown list */
.selectboxit-container {
display: inline-block;
/* Hack for IE 6 and 7 to allow inline-block to work */
*display: inline;
zoom: 1;
}
/* Dropdown List Box */
.selectboxit {
height: 30px; /* Height of the select box */
cursor:pointer;
white-space:nowrap;
/* Provide a background image here if you want to use an image for the down arrow */
}
/* Dropdown List Box and Dropdown Options List */
.selectboxit, .selectboxit-options {
width: 240px; /* Width of the dropdown list box and dropdown list options*/
}
/* Dropdown list Default Icon Positioning */
.selectboxit-default-icon {
float: left;
}
/* Dropdown List Box Text */
.selectboxit-text {
font: 14px Helvetica, Arial;
text-indent: 5px;
line-height: 30px;
overflow:hidden;
float:left;
white-space:nowrap;
/* Prevents text selection */
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: -moz-none;
ms-user-select: none;
-o-user-select: none;
user-select: none;
}
/* Dropdown List Options List*/
ul.selectboxit-options {
font: 14px Helvetica, Arial;
margin:0;
padding:0;
list-style:none;
position:absolute;
max-height: 180px; /* A vertical scrollbar appears if your select box options are taller than this and overflow is set to auto */
overflow:hidden; /* Change to auto if you want a vertical scrollbar to appear */
cursor:pointer;
display:none;
z-index:99999;
outline:none;
}
/* Dropdown List Individual Options */
.selectboxit-options li, .selectboxit-options .selectboxit-optgroup-header {
line-height: 30px; /* Height of Individual Select Box Options */
text-indent: 5px; /* Horizontal Positioning of the select box option text */
overflow:hidden;
white-space:nowrap;
list-style:none;
}
/* Dropdown List Optgroup Headers */
.selectboxit-options .selectboxit-optgroup-header {
font-weight: bold;
}
/* Dropdown List Optgroup Options */
.selectboxit-options .selectboxit-optgroup-option {
text-indent: 20px;
}
/* Dropdown List Optgroup Header hover psuedo class */
.selectboxit-options .selectboxit-optgroup-header[data-disabled='true']:hover {
cursor: default;
}
/* Dropdown List Down Arrow Container (if an image is not used) */
.selectboxit-arrow-container {
/* Positions the down arrow */
width: 30px;
float:right;
}
/* Dropdown List Down Arrow */
.selectboxit-arrow {
/* Horizontally centers the down arrow */
margin-right:auto;
margin-left:auto;
}
/* Dropdown List Individual Option Icon Positioning */
.selectboxit-options li span {
float:left;
}