simp-select 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/style.css CHANGED
@@ -1,496 +1,502 @@
1
- :root {
2
- --simpS_bg: white;
3
- --simpS_pad_hor: 15px;
4
- --simpS_height_top: 40px;
5
- --simpS_color: #27272a;
6
- --simpS_color_light: #eae9e9;
7
- --simpS_color_cheked: #d9d7d7;
8
- --simpS_color_yes: green;
9
- --simpS_color_no: red;
10
- --simpS_color_placeholder: #5d5c5c;
11
- --simpS_color_dis: #8b8b8b;
12
- --simpS_status_bar: rgba(46, 122, 1, 0.67);
13
- --simpS_dropdownBg: var(--simpS_bg);
14
- --simpS_labelBg: var(--simpS_bg);
15
- --simpS_label_pad_hor: 4px;
16
- --simpS_borderColor: var(--simpS_color);
17
- --simpS_DropDownBorderColor: var(--simpS_borderColor);
18
-
19
- --simpS_radius: 4px;
20
- --simpS_f_size: 16px;
21
- --simpS_f_shadow: 0 0 3px 0 var(--simpS_color);
22
-
23
-
24
- --simpS_size_check: 20px;
25
-
26
- --simpS_li_h: 36px;
27
-
28
- --simpS_btn_h: 34px;
29
- --simpS_btn_bg: #f9f9f9;
30
- --simpS_btn_bg_reverse: #eeecec;
31
-
32
- }
33
- .SimpleSel {
34
- position: relative;
35
- box-sizing: border-box;
36
- color: var(--simpS_color);
37
- font-size: var(--simpS_f_size);
38
- user-select: none;
39
- }
40
- .SimpleSel--disabled {
41
- color: var(--simpS_color_dis);
42
- opacity: .8;
43
-
44
- }
45
-
46
- /* start all setting */
47
-
48
- .SimpleSel * {
49
- box-sizing: border-box;
50
- }
51
- .SimpleSel :after,
52
- .SimpleSel :before {
53
- box-sizing: border-box;
54
- }
55
-
56
- .SimpleSel--float .SimpleSel__select_init {
57
- visibility: hidden;
58
- }
59
-
60
- .SimpleSel__select_init {
61
- position: absolute;
62
- opacity: 0;
63
- top: 0;
64
- right: 0;
65
- width: 100%;
66
- height: 100%;
67
- /*z-index: 2;*/
68
- box-sizing: border-box;
69
- }
70
- .SimpleSel__select_init--native {
71
- z-index: 5;
72
- }
73
-
74
- /* end all setting */
75
-
76
- /* start Buttons */
77
- .SimpleSel__bottom_control,
78
- .SimpleSel__control {
79
- margin: 0;
80
- width: auto;
81
- overflow: visible;
82
- color: inherit;
83
- font: inherit;
84
- line-height: normal;
85
- -webkit-font-smoothing: inherit;
86
- -moz-osx-font-smoothing: inherit;
87
- -webkit-appearance: none;
88
- outline: none;
89
- cursor: pointer;
90
-
91
- background-color: var(--simpS_btn_bg);
92
- padding: 1px 10px;
93
- text-align: center;
94
- border-radius: 0;
95
- border: none;
96
- display: flex;
97
- align-content: center;
98
- align-items: center;
99
- justify-content: center;
100
- height: var(--simpS_btn_h);
101
- }
102
- .SimpleSel__bottom_control:hover,
103
- .SimpleSel__control:hover {
104
- background-color: var(--simpS_btn_bg_reverse);
105
- }
106
- /* end Buttons */
107
-
108
- /* start Checkbox */
109
- .SimpleSel__select_all__icon,
110
- .SimpleSel__list_item_icon,
111
- .SimpleSel__reset_all__icon {
112
- width: var(--simpS_size_check);
113
- height: var(--simpS_size_check);
114
- position: relative;
115
- border: 1px solid currentColor;
116
- margin-right: 7px;
117
- display: flex;
118
- align-items: center;
119
- justify-content: center;
120
- border-radius: var(--simpS_radius);
121
- }
122
- .SimpleSel__list_item_icon:before,
123
- .SimpleSel__select_all__icon:before {
124
- content: "";
125
- display: block;
126
- transition: 0.25s all;
127
- transform: rotate(45deg) translate(-17%, -10%);
128
- top: 1px;
129
- left: 4px;
130
- /*width: 7px;*/
131
- width: calc(var(--simpS_size_check) / 3);
132
- height: calc(var(--simpS_size_check) / 2 + 1px);
133
- border: solid currentColor;
134
- border-width: 0 2px 2px 0;
135
- }
136
- /* end Checkbox */
137
-
138
-
139
-
140
- .SimpleSel__top {
141
- position: relative;
142
- }
143
- .SimpleSel__top_body {
144
- position: relative;
145
-
146
- height: var(--simpS_height_top);
147
- padding: 5px 0 5px var(--simpS_pad_hor);
148
-
149
- background-color: var(--simpS_bg);
150
- color: currentColor;
151
- border: 2px solid var(--simpS_borderColor);
152
- border-radius: var(--simpS_radius);
153
-
154
- display: flex;
155
- align-items: center;
156
- justify-content: space-between;
157
-
158
- cursor: pointer;
159
- }
160
-
161
- .SimpleSel--disabled .SimpleSel__top_body {
162
- cursor: default;
163
- user-select: none;
164
- }
165
-
166
- .SimpleSel__top_body:focus-visible {
167
- box-shadow: var(--simpS_f_shadow);
168
- }
169
-
170
- .SimpleSel__title {
171
- flex: 1;
172
- white-space: nowrap;
173
- overflow: hidden;
174
- text-overflow: ellipsis;
175
- text-align: left;
176
- }
177
-
178
- .SimpleSel__icon {
179
- width: var(--simpS_height_top);
180
- height: var(--simpS_height_top);
181
- display: flex;
182
- align-items: center;
183
- justify-content: center;
184
- position: relative;
185
- }
186
- .SimpleSel__icon:after {
187
- content: '';
188
- transition: .25s transform, .25s top;
189
- width: 0.5em;
190
- height: 0.5em;
191
- border-bottom: 2px currentColor solid;
192
- border-right: 2px currentColor solid;
193
- display: inline;
194
- position: absolute;
195
- transform-origin: left top;
196
- top: calc(50% - 2px);
197
- left: 50%;
198
- transform: rotate(45deg) translate(-50%,-50%);
199
- }
200
- .SimpleSel--open .SimpleSel__icon:after {
201
- top: calc(50% + 2px);
202
- transform: rotate(225deg) translate(-50%,-50%);
203
- }
204
-
205
- .SimpleSel--always_open .SimpleSel__icon {
206
- display: none;
207
- }
208
-
209
- .SimpleSel__list_item--not_value,
210
- .SimpleSel--single[data-count-checked-full="0"] .SimpleSel__title,
211
- .SimpleSel__title--placeholder {
212
- color: var(--simpS_color_placeholder);
213
- }
214
-
215
-
216
- .SimpleSel__body {
217
- max-height: 0;
218
- opacity: 0;
219
- visibility: hidden;
220
- overflow: hidden;
221
- overflow-y: auto;
222
- position: absolute;
223
- transition: .25s all;
224
- width: 100%;
225
- border: 1px solid var(--simpS_DropDownBorderColor);
226
- z-index: 3;
227
- border-radius: var(--simpS_radius);
228
- background-color: var(--simpS_dropdownBg);
229
- overscroll-behavior: contain;
230
- }
231
- .SimpleSel--body-always_open {
232
- max-height: none;
233
- position: relative;
234
- top: auto;
235
- opacity: 1;
236
- visibility: visible;
237
- }
238
-
239
- .SimpleSel:not(.SimpleSel--up) .SimpleSel--multi {
240
- top: 100%;
241
- margin-top: 2px;
242
- }
243
-
244
- .SimpleSel--up:not(.SimpleSel--float) .SimpleSel__body {
245
- bottom: 100%;
246
- margin-bottom: 2px;
247
- }
248
-
249
- .SimpleSel--open .SimpleSel__body {
250
- max-height: 230px;
251
- opacity: 1;
252
- visibility: visible;
253
- }
254
-
255
- .SimpleSel__search_wrap{
256
- padding: 5px 10px;
257
- }
258
- .SimpleSel__search{
259
- width: 100%;
260
- border-radius: var(--simpS_radius);
261
- padding: 2px var(--simpS_pad_hor);
262
- }
263
- .SimpleSel__search--top {
264
- position: absolute;
265
- top: 0;
266
- left: 0;
267
- height: 100%;
268
- opacity: 0;
269
- display: none;
270
- }
271
- .SimpleSel--open .SimpleSel__search--top {
272
- opacity: 1;
273
- display: block;
274
- }
275
- .SimpleSel__search--dropdown {
276
- border: none;
277
- border-bottom: 1px solid currentColor;
278
- border-radius: 0;
279
- height: var(--simpS_btn_h);
280
- }
281
-
282
- /* controls */
283
- .SimpleSel__controls {
284
- display: flex;
285
- border-bottom: 1px solid currentColor;
286
- }
287
- .SimpleSel__control {
288
- flex: 1;
289
- }
290
- .SimpleSel__control + .SimpleSel__control {
291
- border-left: 1px solid;
292
- }
293
- .SimpleSel__select_all__icon {
294
- color: var(--simpS_color_cheked);
295
- border-radius: 50%;
296
- border-color: var(--simpS_color_yes);
297
- }
298
- .SimpleSel[data-count-checked-full="0"] .SimpleSel__select_all__icon {
299
- color: var(--simpS_color_light);
300
- }
301
- .SimpleSel[data-check-all-multi="yes"] .SimpleSel__select_all__icon {
302
- color: var(--simpS_color_yes);
303
- }
304
-
305
- .SimpleSel__reset_all__icon {
306
- position: relative;
307
- border-radius: 50%;
308
- color: var(--simpS_color_no);
309
-
310
- }
311
- .SimpleSel__reset_all__icon:before, .SimpleSel__reset_all__icon:after {
312
- position: absolute;
313
- left: calc(var(--simpS_f_size) / 2);
314
- content: ' ';
315
- height: 60%;
316
- width: 2px;
317
- background-color: currentColor;
318
- }
319
- .SimpleSel__reset_all__icon:before {
320
- transform: rotate(45deg);
321
- }
322
- .SimpleSel__reset_all__icon:after {
323
- transform: rotate(-45deg);
324
- }
325
-
326
-
327
- .SimpleSel__bottom_controls {
328
- display: flex;
329
- position: sticky;
330
- border-top: 1px solid currentColor;
331
- margin-top: 5px;
332
- bottom: 0;
333
- }
334
- .SimpleSel__bottom_controls--hide {
335
- display: none;
336
- }
337
- .SimpleSel--float .SimpleSel__bottom_controls--hide{
338
- display: flex;
339
- }
340
- .SimpleSel__bottom_control--hide {
341
- display: none;
342
- }
343
- .SimpleSel__bottom_control {
344
- flex: 1;
345
- }
346
- .SimpleSel__bottom_control--ok{
347
- text-transform: uppercase;
348
- }
349
- .SimpleSel__bottom_control + .SimpleSel__bottom_control {
350
- border-left: 1px solid ;
351
- }
352
-
353
-
354
- /**List*/
355
- .SimpleSel__list {
356
- list-style-type: none;
357
- margin: 0;
358
- padding: 0;
359
- }
360
- .SimpleSel__group_items:not(:first-child) {
361
- margin-top: 5px;
362
- }
363
- .SimpleSel__group_title {
364
- font-weight: bold;
365
- cursor: default;
366
- display: block;
367
- padding: 6px 10px ;
368
- margin-bottom: 2px;
369
- font-size: 1.02em;
370
- background-color: var(--simpS_color_light);
371
- }
372
-
373
- .SimpleSel__group {
374
- list-style-type: none;
375
- margin: 0;
376
- padding: 0;
377
- }
378
-
379
-
380
-
381
- .SimpleSel__list_item {
382
- cursor: pointer;
383
- }
384
- .SimpleSel__list_item:not(:last-child) {
385
- border-bottom: 1px solid var(--simpS_color_light);
386
- }
387
-
388
- .SimpleSel__list_item--disabled {
389
- opacity: .5;
390
- cursor: default;
391
- }
392
-
393
- .SimpleSel__list_item_body {
394
- padding: 5px var(--simpS_pad_hor);
395
- display: flex;
396
- align-items: center;
397
- min-height: var(--simpS_li_h);
398
- }
399
- @media (hover: hover) {
400
- .SimpleSel__list_item:not(.SimpleSel__list_item--disabled) {
401
- .SimpleSel__list_item_body:hover {
402
- cursor: pointer;
403
- background-color: var(--simpS_color_light);
404
- }
405
- }
406
- }
407
-
408
-
409
- .SimpleSel--single .SimpleSel__list_item--checked {
410
- background-color: var(--simpS_color_cheked);
411
- }
412
-
413
- .SimpleSel__list_item:not(.SimpleSel__list_item--checked) .SimpleSel__list_item_icon:before {
414
- opacity: 0;
415
- width: 0;
416
- height: 0;
417
- }
418
-
419
- .SimpleSel__close {
420
- display: none;
421
- }
422
-
423
- /* FLOAT */
424
- .SimpleSel--body_open {
425
- overflow: hidden;
426
- position: relative;
427
- }
428
-
429
-
430
- .SimpleSel--float .SimpleSel__body {
431
- position: fixed;
432
- max-width: 90%;
433
- max-height: 90%;
434
- left: 50%;
435
- top: 50%;
436
- overflow: hidden;
437
- overflow-y: auto;
438
- transform: translate(-50%, -50%);
439
- flex-direction: column;
440
- display: none;
441
- }
442
- .SimpleSel--open {
443
- z-index: 7;
444
- }
445
- .SimpleSel--float.SimpleSel--open .SimpleSel__body{
446
- display: flex;
447
- }
448
-
449
- .SimpleSel--float .SimpleSel__bottom_control--hide {
450
- display: flex;
451
- }
452
- .SimpleSel--float .SimpleSel__list {
453
- flex: 1;
454
- }
455
-
456
-
457
- .SimpleSel__debounce_progress_bar {
458
- transition-timing-function: linear;
459
- potransition-property: width;
460
- width: 0;
461
- height: 5px;
462
- background-color: var(--simpS_status_bar);
463
- transition-duration: 0ms;
464
- position: absolute;
465
- bottom: 0;
466
- left: 0;
467
-
468
-
469
- }
470
- .SimpleSel__debounce_progress_bar.this--animating {
471
- width: 100%;
472
- transition-duration: var(--duration, 1ms);
473
- }
474
-
475
- /** **/
476
- .SimpleSel--label_mode.SimpleSel--fill_without_value {
477
- .SimpleSel__title {
478
- opacity: 0;
479
- visibility: hidden;
480
- pointer-events: none;
481
- }
482
- }
483
- .SimpleSel__label {
484
- position: absolute;
485
- top: 50%;
486
- left: var(--simpS_label_pad_hor);
487
- transform: translateY(-50%);
488
- transition: all 0.2s ease;
489
- pointer-events: none;
490
- }
491
- .SimpleSel--fill_with_value .SimpleSel__label {
492
- top: 0;
493
- transform: translateY(-50%);
494
- background-color: var(--simpS_labelBg);
495
- padding: 0 var(--simpS_label_pad_hor);
496
- }
1
+ :root {
2
+ --simpS_bg: white;
3
+ --simpS_pad_hor: 15px;
4
+ --simpS_height_top: 40px;
5
+ --simpS_color: #27272a;
6
+ --simpS_color_light: #eae9e9;
7
+ --simpS_color_cheked: #d9d7d7;
8
+ --simpS_color_yes: green;
9
+ --simpS_color_no: red;
10
+ --simpS_color_placeholder: #5d5c5c;
11
+ --simpS_color_dis: #8b8b8b;
12
+ --simpS_status_bar: rgba(46, 122, 1, 0.67);
13
+ --simpS_dropdownBg: var(--simpS_bg);
14
+ --simpS_labelBg: var(--simpS_bg);
15
+ --simpS_label_left: var(--simpS_pad_hor);
16
+ --simpS_label_pad_hor_active: 4px;
17
+ --simpS_borderColor: var(--simpS_color);
18
+ --simpS_DropDownBorderColor: var(--simpS_borderColor);
19
+
20
+ --simpS_radius: 4px;
21
+ --simpS_f_size: 16px;
22
+ --simpS_f_shadow: 0 0 3px 0 var(--simpS_color);
23
+
24
+
25
+ --simpS_size_check: 20px;
26
+
27
+ --simpS_li_h: 36px;
28
+
29
+ --simpS_btn_h: 34px;
30
+ --simpS_btn_bg: #f9f9f9;
31
+ --simpS_btn_bg_reverse: #eeecec;
32
+
33
+ }
34
+ .SimpleSel {
35
+ position: relative;
36
+ box-sizing: border-box;
37
+ color: var(--simpS_color);
38
+ font-size: var(--simpS_f_size);
39
+ user-select: none;
40
+ }
41
+ .SimpleSel--disabled {
42
+ color: var(--simpS_color_dis);
43
+ opacity: .8;
44
+
45
+ }
46
+
47
+ /* start all setting */
48
+
49
+ .SimpleSel * {
50
+ box-sizing: border-box;
51
+ }
52
+ .SimpleSel :after,
53
+ .SimpleSel :before {
54
+ box-sizing: border-box;
55
+ }
56
+
57
+ .SimpleSel--float .SimpleSel__select_init {
58
+ visibility: hidden;
59
+ }
60
+
61
+ .SimpleSel__select_init {
62
+ position: absolute;
63
+ opacity: 0;
64
+ top: 0;
65
+ right: 0;
66
+ width: 100%;
67
+ height: 100%;
68
+ /*z-index: 2;*/
69
+ box-sizing: border-box;
70
+ }
71
+ .SimpleSel__select_init--native {
72
+ z-index: 5;
73
+ }
74
+
75
+ /* end all setting */
76
+
77
+ /* start Buttons */
78
+ .SimpleSel__bottom_control,
79
+ .SimpleSel__control {
80
+ margin: 0;
81
+ width: auto;
82
+ overflow: visible;
83
+ color: inherit;
84
+ font: inherit;
85
+ line-height: normal;
86
+ -webkit-font-smoothing: inherit;
87
+ -moz-osx-font-smoothing: inherit;
88
+ -webkit-appearance: none;
89
+ outline: none;
90
+ cursor: pointer;
91
+
92
+ background-color: var(--simpS_btn_bg);
93
+ padding: 1px 10px;
94
+ text-align: center;
95
+ border-radius: 0;
96
+ border: none;
97
+ display: flex;
98
+ align-content: center;
99
+ align-items: center;
100
+ justify-content: center;
101
+ height: var(--simpS_btn_h);
102
+ }
103
+ .SimpleSel__bottom_control:hover,
104
+ .SimpleSel__control:hover {
105
+ background-color: var(--simpS_btn_bg_reverse);
106
+ }
107
+ /* end Buttons */
108
+
109
+ /* start Checkbox */
110
+ .SimpleSel__select_all__icon,
111
+ .SimpleSel__list_item_icon,
112
+ .SimpleSel__reset_all__icon {
113
+ width: var(--simpS_size_check);
114
+ min-width: var(--simpS_size_check);
115
+ height: var(--simpS_size_check);
116
+ position: relative;
117
+ border: 1px solid currentColor;
118
+ margin-right: 7px;
119
+ display: flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+ border-radius: var(--simpS_radius);
123
+ }
124
+ .SimpleSel__list_item_icon:before,
125
+ .SimpleSel__select_all__icon:before {
126
+ content: "";
127
+ display: block;
128
+ transition: 0.25s all;
129
+ transform: rotate(45deg) translate(-17%, -10%);
130
+ top: 1px;
131
+ left: 4px;
132
+ /*width: 7px;*/
133
+ width: calc(var(--simpS_size_check) / 3);
134
+ height: calc(var(--simpS_size_check) / 2 + 1px);
135
+ border: solid currentColor;
136
+ border-width: 0 2px 2px 0;
137
+ }
138
+ /* end Checkbox */
139
+
140
+
141
+
142
+ .SimpleSel__top {
143
+ position: relative;
144
+ }
145
+ .SimpleSel__top_body {
146
+ position: relative;
147
+
148
+ height: var(--simpS_height_top);
149
+ padding: 5px 0 5px var(--simpS_pad_hor);
150
+
151
+ background-color: var(--simpS_bg);
152
+ color: currentColor;
153
+ border: 2px solid var(--simpS_borderColor);
154
+ border-radius: var(--simpS_radius);
155
+
156
+ display: flex;
157
+ align-items: center;
158
+ justify-content: space-between;
159
+
160
+ cursor: pointer;
161
+ }
162
+
163
+ .SimpleSel--disabled .SimpleSel__top_body {
164
+ cursor: default;
165
+ user-select: none;
166
+ }
167
+
168
+ .SimpleSel__top_body:focus-visible {
169
+ box-shadow: var(--simpS_f_shadow);
170
+ }
171
+
172
+ .SimpleSel__title {
173
+ flex: 1;
174
+ white-space: nowrap;
175
+ overflow: hidden;
176
+ text-overflow: ellipsis;
177
+ text-align: left;
178
+ }
179
+
180
+ .SimpleSel__icon {
181
+ width: var(--simpS_height_top);
182
+ height: var(--simpS_height_top);
183
+ display: flex;
184
+ align-items: center;
185
+ justify-content: center;
186
+ position: relative;
187
+ }
188
+ .SimpleSel__icon:after {
189
+ content: '';
190
+ transition: .25s transform, .25s top;
191
+ width: 0.5em;
192
+ height: 0.5em;
193
+ border-bottom: 2px currentColor solid;
194
+ border-right: 2px currentColor solid;
195
+ display: inline;
196
+ position: absolute;
197
+ transform-origin: left top;
198
+ top: calc(50% - 2px);
199
+ left: 50%;
200
+ transform: rotate(45deg) translate(-50%,-50%);
201
+ }
202
+ .SimpleSel--open .SimpleSel__icon:after {
203
+ top: calc(50% + 2px);
204
+ transform: rotate(225deg) translate(-50%,-50%);
205
+ }
206
+
207
+ .SimpleSel--always_open .SimpleSel__icon {
208
+ display: none;
209
+ }
210
+
211
+ .SimpleSel__list_item--not_value,
212
+ .SimpleSel--single[data-count-checked-full="0"] .SimpleSel__title,
213
+ .SimpleSel__title--placeholder {
214
+ color: var(--simpS_color_placeholder);
215
+ }
216
+
217
+
218
+ .SimpleSel__body {
219
+ max-height: 0;
220
+ opacity: 0;
221
+ visibility: hidden;
222
+ overflow: hidden;
223
+ position: absolute;
224
+ transition: .25s all;
225
+ width: 100%;
226
+ border: 1px solid var(--simpS_DropDownBorderColor);
227
+ z-index: 3;
228
+ border-radius: var(--simpS_radius);
229
+ background-color: var(--simpS_dropdownBg);
230
+ overscroll-behavior: contain;
231
+
232
+ }
233
+ .SimpleSel--body-always_open {
234
+ max-height: none;
235
+ position: relative;
236
+ top: auto;
237
+ opacity: 1;
238
+ visibility: visible;
239
+ overflow-y: auto;
240
+ }
241
+
242
+ .SimpleSel:not(.SimpleSel--up) .SimpleSel--multi {
243
+ top: 100%;
244
+ margin-top: 2px;
245
+ }
246
+
247
+ .SimpleSel--up:not(.SimpleSel--float) .SimpleSel__body {
248
+ bottom: 100%;
249
+ margin-bottom: 2px;
250
+ }
251
+
252
+ .SimpleSel--opened .SimpleSel__body {
253
+ overflow-y: auto;
254
+ }
255
+ .SimpleSel--open .SimpleSel__body {
256
+ max-height: 230px;
257
+ opacity: 1;
258
+ visibility: visible;
259
+ }
260
+
261
+ .SimpleSel__search_wrap{
262
+ padding: 5px 10px;
263
+ }
264
+ .SimpleSel__search{
265
+ width: 100%;
266
+ border-radius: var(--simpS_radius);
267
+ padding: 2px var(--simpS_pad_hor);
268
+ }
269
+ .SimpleSel__search--top {
270
+ position: absolute;
271
+ top: 0;
272
+ left: 0;
273
+ height: 100%;
274
+ opacity: 0;
275
+ display: none;
276
+ }
277
+ .SimpleSel--open .SimpleSel__search--top {
278
+ opacity: 1;
279
+ display: block;
280
+ }
281
+ .SimpleSel__search--dropdown {
282
+ border: none;
283
+ border-bottom: 1px solid currentColor;
284
+ border-radius: 0;
285
+ height: var(--simpS_btn_h);
286
+ }
287
+
288
+ /* controls */
289
+ .SimpleSel__controls {
290
+ display: flex;
291
+ border-bottom: 1px solid currentColor;
292
+ }
293
+ .SimpleSel__control {
294
+ flex: 1;
295
+ }
296
+ .SimpleSel__control + .SimpleSel__control {
297
+ border-left: 1px solid;
298
+ }
299
+ .SimpleSel__select_all__icon {
300
+ color: var(--simpS_color_cheked);
301
+ border-radius: 50%;
302
+ border-color: var(--simpS_color_yes);
303
+ }
304
+ .SimpleSel[data-count-checked-full="0"] .SimpleSel__select_all__icon {
305
+ color: var(--simpS_color_light);
306
+ }
307
+ .SimpleSel[data-check-all-multi="yes"] .SimpleSel__select_all__icon {
308
+ color: var(--simpS_color_yes);
309
+ }
310
+
311
+ .SimpleSel__reset_all__icon {
312
+ position: relative;
313
+ border-radius: 50%;
314
+ color: var(--simpS_color_no);
315
+
316
+ }
317
+ .SimpleSel__reset_all__icon:before, .SimpleSel__reset_all__icon:after {
318
+ position: absolute;
319
+ left: calc(var(--simpS_f_size) / 2);
320
+ content: ' ';
321
+ height: 60%;
322
+ width: 2px;
323
+ background-color: currentColor;
324
+ }
325
+ .SimpleSel__reset_all__icon:before {
326
+ transform: rotate(45deg);
327
+ }
328
+ .SimpleSel__reset_all__icon:after {
329
+ transform: rotate(-45deg);
330
+ }
331
+
332
+
333
+ .SimpleSel__bottom_controls {
334
+ display: flex;
335
+ position: sticky;
336
+ border-top: 1px solid currentColor;
337
+ margin-top: 5px;
338
+ bottom: 0;
339
+ }
340
+ .SimpleSel__bottom_controls--hide {
341
+ display: none;
342
+ }
343
+ .SimpleSel--float .SimpleSel__bottom_controls--hide{
344
+ display: flex;
345
+ }
346
+ .SimpleSel__bottom_control--hide {
347
+ display: none;
348
+ }
349
+ .SimpleSel__bottom_control {
350
+ flex: 1;
351
+ }
352
+ .SimpleSel__bottom_control--ok{
353
+ text-transform: uppercase;
354
+ }
355
+ .SimpleSel__bottom_control + .SimpleSel__bottom_control {
356
+ border-left: 1px solid ;
357
+ }
358
+
359
+
360
+ /**List*/
361
+ .SimpleSel__list {
362
+ list-style-type: none;
363
+ margin: 0;
364
+ padding: 0;
365
+ }
366
+ .SimpleSel__group_items:not(:first-child) {
367
+ margin-top: 5px;
368
+ }
369
+ .SimpleSel__group_title {
370
+ font-weight: bold;
371
+ cursor: default;
372
+ display: block;
373
+ padding: 6px 10px ;
374
+ margin-bottom: 2px;
375
+ font-size: 1.02em;
376
+ background-color: var(--simpS_color_light);
377
+ }
378
+
379
+ .SimpleSel__group {
380
+ list-style-type: none;
381
+ margin: 0;
382
+ padding: 0;
383
+ }
384
+
385
+
386
+
387
+ .SimpleSel__list_item {
388
+ cursor: pointer;
389
+ }
390
+ .SimpleSel__list_item:not(:last-child) {
391
+ border-bottom: 1px solid var(--simpS_color_light);
392
+ }
393
+
394
+ .SimpleSel__list_item--disabled {
395
+ opacity: .5;
396
+ cursor: default;
397
+ }
398
+
399
+ .SimpleSel__list_item_body {
400
+ padding: 5px var(--simpS_pad_hor);
401
+ display: flex;
402
+ align-items: center;
403
+ min-height: var(--simpS_li_h);
404
+ }
405
+ @media (hover: hover) {
406
+ .SimpleSel__list_item:not(.SimpleSel__list_item--disabled) {
407
+ .SimpleSel__list_item_body:hover {
408
+ cursor: pointer;
409
+ background-color: var(--simpS_color_light);
410
+ }
411
+ }
412
+ }
413
+
414
+
415
+ .SimpleSel--single .SimpleSel__list_item--checked {
416
+ background-color: var(--simpS_color_cheked);
417
+ }
418
+
419
+ .SimpleSel__list_item:not(.SimpleSel__list_item--checked) .SimpleSel__list_item_icon:before {
420
+ opacity: 0;
421
+ width: 0;
422
+ height: 0;
423
+ }
424
+
425
+ .SimpleSel__close {
426
+ display: none;
427
+ }
428
+
429
+ /* FLOAT */
430
+ .SimpleSel--body_open {
431
+ overflow: hidden;
432
+ position: relative;
433
+ }
434
+
435
+
436
+ .SimpleSel--float .SimpleSel__body {
437
+ position: fixed;
438
+ max-width: 90%;
439
+ max-height: 90%;
440
+ left: 50%;
441
+ top: 50%;
442
+ overflow: hidden;
443
+ overflow-y: auto;
444
+ transform: translate(-50%, -50%);
445
+ flex-direction: column;
446
+ display: none;
447
+ }
448
+ .SimpleSel--open {
449
+ z-index: 7;
450
+ }
451
+ .SimpleSel--float.SimpleSel--open .SimpleSel__body{
452
+ display: flex;
453
+ }
454
+
455
+ .SimpleSel--float .SimpleSel__bottom_control--hide {
456
+ display: flex;
457
+ }
458
+ .SimpleSel--float .SimpleSel__list {
459
+ flex: 1;
460
+ }
461
+
462
+
463
+ .SimpleSel__debounce_progress_bar {
464
+ transition-timing-function: linear;
465
+ potransition-property: width;
466
+ width: 0;
467
+ height: 5px;
468
+ background-color: var(--simpS_status_bar);
469
+ transition-duration: 0ms;
470
+ position: absolute;
471
+ bottom: 0;
472
+ left: 0;
473
+
474
+
475
+ }
476
+ .SimpleSel__debounce_progress_bar.this--animating {
477
+ width: 100%;
478
+ transition-duration: var(--duration, 1ms);
479
+ }
480
+
481
+ /** **/
482
+ .SimpleSel--label_mode.SimpleSel--fill_without_value {
483
+ .SimpleSel__title {
484
+ opacity: 0;
485
+ visibility: hidden;
486
+ pointer-events: none;
487
+ }
488
+ }
489
+ .SimpleSel__label {
490
+ position: absolute;
491
+ top: 50%;
492
+ left: var(--simpS_label_left);
493
+ transform: translateY(-50%);
494
+ transition: all 0.2s ease;
495
+ pointer-events: none;
496
+ }
497
+ .SimpleSel--fill_with_value .SimpleSel__label {
498
+ top: 0;
499
+ transform: translateY(-50%);
500
+ background-color: var(--simpS_labelBg);
501
+ padding: 0 var(--simpS_label_pad_hor_active);
502
+ }