Skip to content

Commit 16c2aec

Browse files
authored
Merge pull request #1 from slavapcom/events-dropdown-rework
Events dropdown rework
2 parents 1d4878b + 845370e commit 16c2aec

File tree

2 files changed

+579
-517
lines changed

2 files changed

+579
-517
lines changed

isteven-multi-select.css

Lines changed: 70 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/* ! vertical layout */
66
.multiSelect .vertical {
7-
float: none;
7+
float: none;
88
}
99

1010
/* ! horizontal layout */
@@ -15,14 +15,14 @@
1515
/* ! create a "row" */
1616
.multiSelect .line {
1717
padding: 2px 0px 4px 0px;
18-
max-height: 30px;
18+
max-height: 30px;
1919
overflow: hidden;
2020
box-sizing: content-box;
2121
}
2222

2323
/* ! create a "column" */
2424
.multiSelect .acol {
25-
display: inline-block;
25+
display: inline-block;
2626
min-width: 12px;
2727
}
2828

@@ -35,33 +35,33 @@
3535
.multiSelect > button {
3636
display: inline-block;
3737
position: relative;
38-
text-align: center;
38+
text-align: center;
3939
cursor: pointer;
40-
border: 1px solid #c6c6c6;
41-
padding: 1px 8px 1px 8px;
40+
border: 1px solid #c6c6c6;
41+
padding: 1px 8px 1px 8px;
4242
font-size: 14px;
4343
min-height : 38px !important;
4444
border-radius: 4px;
45-
color: #555;
45+
color: #555;
4646
-webkit-user-select: none;
4747
-moz-user-select: none;
4848
-ms-user-select: none;
4949
-o-user-select: none;
50-
user-select: none;
50+
user-select: none;
5151
white-space:normal;
5252
background-color: #fff;
53-
background-image: linear-gradient(#fff, #f7f7f7);
53+
background-image: linear-gradient(#fff, #f7f7f7);
5454
}
5555

5656
/* button: hover */
57-
.multiSelect > button:hover {
58-
background-image: linear-gradient(#fff, #e9e9e9);
57+
.multiSelect > button:hover {
58+
background-image: linear-gradient(#fff, #e9e9e9);
5959
}
6060

6161
/* button: disabled */
6262
.multiSelect > button:disabled {
63-
background-image: linear-gradient(#fff, #fff);
64-
border: 1px solid #ddd;
63+
background-image: linear-gradient(#fff, #fff);
64+
border: 1px solid #ddd;
6565
color: #999;
6666
}
6767

@@ -73,20 +73,20 @@
7373
/* labels on the button */
7474
.multiSelect .buttonLabel {
7575
display: inline-block;
76-
padding: 5px 0px 5px 0px;
76+
padding: 5px 0px 5px 0px;
7777
}
7878

7979
/* downward pointing arrow */
8080
.multiSelect .caret {
8181
display: inline-block;
8282
width: 0;
8383
height: 0;
84-
margin: 0px 0px 1px 12px !important;
84+
margin: 0px 0px 1px 12px !important;
8585
vertical-align: middle;
8686
border-top: 4px solid #333;
8787
border-right: 4px solid transparent;
8888
border-left: 4px solid transparent;
89-
border-bottom: 0 dotted;
89+
border-bottom: 0 dotted;
9090
}
9191

9292
/* the main checkboxes and helper layer */
@@ -97,15 +97,15 @@
9797
border: 1px solid rgba(0, 0, 0, 0.15);
9898
border-radius: 4px;
9999
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
100-
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
100+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
101101
min-width:278px;
102-
display: none !important;
102+
display: none !important;
103103
}
104104

105105
/* container of helper elements */
106106
.multiSelect .helperContainer {
107107
border-bottom: 1px solid #ddd;
108-
padding: 8px 8px 0px 8px;
108+
padding: 8px 8px 0px 8px;
109109
}
110110

111111
/* helper buttons (select all, none, reset); */
@@ -117,7 +117,7 @@
117117
height: 26px;
118118
font-size: 13px;
119119
border-radius: 2px;
120-
color: #666;
120+
color: #666;
121121
background-color: #f1f1f1;
122122
line-height: 1.6;
123123
margin: 0px 0px 8px 0px;
@@ -128,7 +128,7 @@
128128
}
129129

130130
.multiSelect .helperButton:not( .reset ) {
131-
margin-right: 4px;
131+
margin-right: 4px;
132132
}
133133

134134
/* clear button */
@@ -142,7 +142,7 @@
142142
width: 22px;
143143
font-size: 13px;
144144
border-radius: 2px;
145-
color: #666;
145+
color: #666;
146146
background-color: #f1f1f1;
147147
line-height: 1.4;
148148
right : 2px;
@@ -151,30 +151,30 @@
151151

152152
/* filter */
153153
.multiSelect .inputFilter {
154-
border-radius: 2px;
154+
border-radius: 2px;
155155
border: 1px solid #ccc;
156156
height: 26px;
157157
font-size: 14px;
158-
width:100%;
158+
width:100%;
159159
padding-left:7px;
160160
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
161161
-moz-box-sizing: border-box; /* Firefox, other Gecko */
162-
box-sizing: border-box; /* Opera/IE 8+ */
162+
box-sizing: border-box; /* Opera/IE 8+ */
163163
color: #888;
164164
margin: 0px 0px 8px 0px;
165165
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
166-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
166+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
167167
}
168168

169169
/* helper elements on hover & focus */
170170
.multiSelect .clearButton:hover,
171171
.multiSelect .helperButton:hover {
172172
border: 1px solid #ccc;
173-
color: #999;
174-
background-color: #f4f4f4;
173+
color: #999;
174+
background-color: #f4f4f4;
175175
}
176176
.multiSelect .helperButton:disabled {
177-
color: #ccc;
177+
color: #ccc;
178178
border: 1px solid #ddd;
179179
}
180180

@@ -184,13 +184,13 @@
184184
border: 1px solid #66AFE9 !important;
185185
outline: 0;
186186
-webkit-box-shadow: inset 0 0 1px rgba(0,0,0,.065), 0 0 5px rgba(102, 175, 233, .6) !important;
187-
box-shadow: inset 0 0 1px rgba(0,0,0,.065), 0 0 5px rgba(102, 175, 233, .6) !important;
187+
box-shadow: inset 0 0 1px rgba(0,0,0,.065), 0 0 5px rgba(102, 175, 233, .6) !important;
188188
}
189189

190190
/* container of multi select items */
191191
.multiSelect .checkBoxContainer {
192192
display: block;
193-
padding: 8px;
193+
padding: 8px;
194194
overflow: hidden;
195195
}
196196

@@ -203,87 +203,87 @@
203203
.multiSelect .multiSelectItem {
204204
display: block;
205205
padding: 3px;
206-
color: #444;
206+
color: #444;
207207
white-space: nowrap;
208208
-webkit-user-select: none;
209209
-moz-user-select: none;
210210
-ms-user-select: none;
211211
-o-user-select: none;
212-
user-select: none;
212+
user-select: none;
213213
border: 1px solid transparent;
214214
position: relative;
215-
min-width:278px;
216-
min-height: 32px;
215+
min-width:278px;
216+
min-height: 32px;
217217
}
218218

219219
/* Styling on selected items */
220220
.multiSelect .multiSelectItem:not(.multiSelectGroup).selected
221221
{
222-
background-image: linear-gradient( #e9e9e9, #f1f1f1 );
223-
color: #555;
224-
cursor: pointer;
222+
background-image: linear-gradient( #e9e9e9, #f1f1f1 );
223+
color: #555;
224+
cursor: pointer;
225225
border-top: 1px solid #e4e4e4;
226-
border-left: 1px solid #e4e4e4;
227-
border-right: 1px solid #d9d9d9;
226+
border-left: 1px solid #e4e4e4;
227+
border-right: 1px solid #d9d9d9;
228228
}
229229

230230
.multiSelect .multiSelectItem .acol label {
231231
display: inline-block;
232-
padding-right: 30px;
232+
padding-right: 30px;
233233
margin: 0px;
234-
font-weight: normal;
234+
font-weight: normal;
235235
line-height: normal;
236236
}
237237

238238
/* item labels focus on mouse hover */
239-
.multiSelect .multiSelectItem:hover,
239+
.multiSelect .multiSelectItem:hover,
240240
.multiSelect .multiSelectGroup:hover {
241-
background-image: linear-gradient( #c1c1c1, #999 ) !important;
242-
color: #fff !important;
243-
cursor: pointer;
241+
background-image: linear-gradient( #c1c1c1, #999 ) !important;
242+
color: #fff !important;
243+
cursor: pointer;
244244
border: 1px solid #ccc !important;
245245
}
246246

247247
/* item labels focus using keyboard */
248-
.multiSelect .multiSelectFocus {
249-
background-image: linear-gradient( #c1c1c1, #999 ) !important;
250-
color: #fff !important;
251-
cursor: pointer;
248+
.multiSelect .multiSelectFocus {
249+
background-image: linear-gradient( #c1c1c1, #999 ) !important;
250+
color: #fff !important;
251+
cursor: pointer;
252252
border: 1px solid #ccc !important;
253253
}
254254

255255
/* change mouse pointer into the pointing finger */
256-
.multiSelect .multiSelectItem span:hover,
256+
.multiSelect .multiSelectItem span:hover,
257257
.multiSelect .multiSelectGroup span:hover
258-
{
259-
cursor: pointer;
258+
{
259+
cursor: pointer;
260260
}
261261

262262
/* ! group labels */
263-
.multiSelect .multiSelectGroup {
263+
.multiSelect .multiSelectGroup {
264264
display: block;
265265
clear: both;
266266
}
267267

268268
/* right-align the tick mark (✔) */
269269
.multiSelect .tickMark {
270-
display:inline-block;
271-
position: absolute;
272-
right: 10px;
270+
display:inline-block;
271+
position: absolute;
272+
right: 10px;
273273
top: 7px;
274-
font-size: 10px;
274+
font-size: 10px;
275275
}
276276

277277
/* hide the original HTML checkbox away */
278-
.multiSelect .checkbox {
279-
color: #ddd !important;
278+
.multiSelect .checkbox {
279+
color: #ddd !important;
280280
position: absolute;
281281
left: -9999px;
282-
cursor: pointer;
282+
cursor: pointer;
283283
}
284284

285285
/* checkboxes currently disabled */
286-
.multiSelect .disabled,
286+
.multiSelect .disabled,
287287
.multiSelect .disabled:hover,
288288
.multiSelect .disabled label input:hover ~ span {
289289
color: #c4c4c4 !important;
@@ -297,3 +297,11 @@
297297
max-height: 22px;
298298
max-width:22px;
299299
}
300+
301+
.multiSelect .load-more-events {
302+
overflow: hidden;
303+
height: 0px;
304+
}
305+
.multiSelect .load-more-events.in-progress {
306+
height: auto;
307+
}

0 commit comments

Comments
 (0)