@ohos-ports/slim-select 0.0.0-stage → 4.7.0-beta.1

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.
Files changed (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +353 -2
  3. package/dist/animations.d.ts +37 -0
  4. package/dist/classes.d.ts +52 -0
  5. package/dist/events.d.ts +26 -0
  6. package/dist/helpers.d.ts +24 -0
  7. package/dist/index.d.ts +62 -0
  8. package/dist/index.umd.d.ts +2 -0
  9. package/dist/lifecycle.d.ts +44 -0
  10. package/dist/mutations.d.ts +33 -0
  11. package/dist/react/index.d.ts +4 -0
  12. package/dist/react/index.js +2153 -0
  13. package/dist/react/index.umd.js +1 -0
  14. package/dist/react/react.d.ts +16 -0
  15. package/dist/react/react.test.d.ts +1 -0
  16. package/dist/react/slim-select/react/index.d.ts +4 -0
  17. package/dist/render.d.ts +207 -0
  18. package/dist/select.d.ts +47 -0
  19. package/dist/settings.d.ts +46 -0
  20. package/dist/slimselect.cjs +2 -0
  21. package/dist/slimselect.cjs.js.map +1 -0
  22. package/dist/slimselect.css +1 -0
  23. package/dist/slimselect.css.map +1 -0
  24. package/dist/slimselect.es.js +2100 -0
  25. package/dist/slimselect.es.js.map +1 -0
  26. package/dist/slimselect.iife.js +2 -0
  27. package/dist/slimselect.iife.js.map +1 -0
  28. package/dist/slimselect.js +2 -0
  29. package/dist/slimselect.js.map +1 -0
  30. package/dist/src/docs/helpers.d.ts +14 -0
  31. package/dist/src/docs/main.d.ts +0 -0
  32. package/dist/src/docs/nav.d.ts +20 -0
  33. package/dist/src/docs/router.d.ts +2 -0
  34. package/dist/src/docs/store.d.ts +12 -0
  35. package/dist/store.d.ts +62 -0
  36. package/dist/sync.d.ts +88 -0
  37. package/dist/vue/helpers.d.ts +2 -0
  38. package/dist/vue/index.d.ts +4 -0
  39. package/dist/vue/index.js +2226 -0
  40. package/dist/vue/index.umd.js +1 -0
  41. package/dist/vue/slim-select/vue/index.d.ts +4 -0
  42. package/package.json +101 -4
  43. package/src/slim-select/slimselect.scss +807 -0
@@ -0,0 +1,807 @@
1
+ :root {
2
+ // Colors
3
+ --ss-primary-color: #5897fb;
4
+ --ss-bg-color: #ffffff;
5
+ --ss-font-color: #4d4d4d;
6
+ --ss-placeholder-color: #8d8d8d;
7
+ --ss-disabled-color: #dcdee2;
8
+ --ss-border-color: #dcdee2;
9
+ --ss-highlight-color: #fffb8c;
10
+ --ss-focus-color: var(--ss-primary-color);
11
+ --ss-success-color: #00b755;
12
+ --ss-error-color: #dc3545;
13
+
14
+ // Heights
15
+ --ss-main-height: 40px;
16
+ --ss-content-height: 300px;
17
+ --ss-modal-height: 85vh;
18
+ --ss-modal-width: min(90vw, 400px);
19
+ --ss-search-height: var(--ss-main-height);
20
+ --ss-option-height: var(--ss-main-height);
21
+
22
+ // Spacing
23
+ --ss-spacing-l: 9px;
24
+ --ss-spacing-m: 7px;
25
+ --ss-spacing-s: 5px;
26
+
27
+ // Misc
28
+ --ss-animation-timing: 0.2s;
29
+ --ss-border-radius: 4px;
30
+ --ss-modal-z-index: 1000001;
31
+ }
32
+
33
+ // Animation keyframes
34
+ @keyframes ss-valueIn {
35
+ 0% {
36
+ transform: scale(0);
37
+ opacity: 0;
38
+ }
39
+ 100% {
40
+ transform: scale(1);
41
+ opacity: 1;
42
+ }
43
+ }
44
+ @keyframes ss-valueOut {
45
+ 0% {
46
+ transform: scale(1);
47
+ opacity: 1;
48
+ }
49
+ 100% {
50
+ transform: scale(0);
51
+ opacity: 0;
52
+ }
53
+ }
54
+
55
+ // Misc classes
56
+ .ss-hide {
57
+ display: none !important;
58
+ }
59
+
60
+ // Main container
61
+ .ss-main {
62
+ display: flex;
63
+ flex-direction: row;
64
+ align-items: center;
65
+ position: relative;
66
+ user-select: none;
67
+ color: var(--ss-font-color);
68
+ min-height: var(--ss-main-height);
69
+ width: 100%;
70
+ padding: 0 var(--ss-spacing-s);
71
+ cursor: pointer;
72
+ border: 1px solid var(--ss-border-color);
73
+ border-radius: var(--ss-border-radius);
74
+ background-color: var(--ss-bg-color);
75
+ outline: 0;
76
+ box-sizing: border-box;
77
+ transition:
78
+ background-color var(--ss-animation-timing),
79
+ border-radius var(--ss-animation-timing);
80
+
81
+ @media (prefers-reduced-motion: reduce) {
82
+ transition: background-color var(--ss-animation-timing);
83
+ }
84
+
85
+ overflow: hidden;
86
+
87
+ &:focus {
88
+ box-shadow: 0 0 5px var(--ss-focus-color);
89
+ }
90
+
91
+ &.ss-disabled {
92
+ background-color: var(--ss-disabled-color);
93
+ cursor: not-allowed;
94
+
95
+ .ss-values {
96
+ .ss-disabled {
97
+ color: var(--ss-font-color);
98
+ }
99
+
100
+ .ss-value {
101
+ .ss-value-delete {
102
+ cursor: not-allowed;
103
+ }
104
+ }
105
+ }
106
+ }
107
+
108
+ &.ss-dir-above {
109
+ border-top-left-radius: 0px;
110
+ border-top-right-radius: 0px;
111
+ }
112
+ &.ss-dir-below {
113
+ border-bottom-left-radius: 0px;
114
+ border-bottom-right-radius: 0px;
115
+ }
116
+
117
+ .ss-values {
118
+ display: flex;
119
+ flex-wrap: wrap;
120
+ align-items: center;
121
+ align-content: center;
122
+ align-self: stretch;
123
+ gap: var(--ss-spacing-m);
124
+ flex: 1 1 0%;
125
+ min-width: 0; // Allow container to shrink below content width
126
+ max-width: 100%;
127
+ padding: var(--ss-spacing-s) 0;
128
+ box-sizing: border-box;
129
+ overflow: hidden;
130
+
131
+ // When multiString is enabled, values container holds a single text line
132
+ &:has(.ss-multi-string) {
133
+ flex-wrap: nowrap;
134
+ gap: 0;
135
+ }
136
+
137
+ // Single-line value text fills space before the arrow/deselect siblings
138
+ &:has(.ss-single),
139
+ &:has(.ss-placeholder) {
140
+ flex-wrap: nowrap;
141
+ }
142
+
143
+ // Shared layout for single value, placeholder, and multiString text
144
+ .ss-single,
145
+ .ss-placeholder,
146
+ .ss-multi-string {
147
+ display: block;
148
+ flex: 1 1 0%;
149
+ min-width: 0;
150
+ width: 100%;
151
+ max-width: 100%;
152
+ margin: 0;
153
+ padding: 0 var(--ss-spacing-m) 0 calc(var(--ss-spacing-l) - var(--ss-spacing-s));
154
+ line-height: 1.2;
155
+ overflow: hidden;
156
+ text-overflow: ellipsis;
157
+ white-space: nowrap;
158
+ box-sizing: border-box;
159
+ }
160
+
161
+ .ss-placeholder {
162
+ color: var(--ss-placeholder-color);
163
+ }
164
+
165
+ // Max is used to display max number of values
166
+ .ss-max {
167
+ display: flex;
168
+ user-select: none;
169
+ align-items: center;
170
+ width: fit-content;
171
+ font-size: 12px;
172
+ color: var(--ss-bg-color);
173
+ line-height: 1;
174
+ padding: var(--ss-spacing-s) var(--ss-spacing-m);
175
+ background-color: var(--ss-primary-color);
176
+ border-radius: var(--ss-border-radius);
177
+ }
178
+
179
+ // Used for the selected values
180
+ .ss-value {
181
+ display: flex;
182
+ user-select: none;
183
+ align-items: center;
184
+ width: fit-content;
185
+ max-width: 100%; // Ensure value doesn't exceed container width
186
+ background-color: var(--ss-primary-color);
187
+ border-radius: var(--ss-border-radius);
188
+ animation-name: ss-valueIn;
189
+ animation-duration: var(--ss-animation-timing);
190
+ animation-timing-function: ease-out;
191
+ animation-fill-mode: both;
192
+
193
+ @media (prefers-reduced-motion: reduce) {
194
+ animation: none;
195
+ }
196
+
197
+ &.ss-value-out {
198
+ animation-name: ss-valueOut;
199
+ animation-duration: var(--ss-animation-timing);
200
+ animation-timing-function: ease-out;
201
+ }
202
+
203
+ // Keyboard highlight while search is focused (Left/Right on empty input)
204
+ &.ss-highlighted {
205
+ box-shadow: inset 0 0 0 2px var(--ss-bg-color);
206
+ outline: 2px solid var(--ss-font-color);
207
+ outline-offset: -2px;
208
+ }
209
+
210
+ .ss-value-text {
211
+ flex: 1; // Take up available space in flex container
212
+ min-width: 0; // Allow text to shrink
213
+ font-size: 12px;
214
+ line-height: 1;
215
+ color: var(--ss-bg-color);
216
+ padding: var(--ss-spacing-s) var(--ss-spacing-m);
217
+ overflow: hidden;
218
+ text-overflow: ellipsis;
219
+ white-space: nowrap;
220
+ }
221
+
222
+ .ss-value-delete {
223
+ display: flex;
224
+ align-items: center;
225
+ height: var(--ss-spacing-l);
226
+ width: var(--ss-spacing-l);
227
+ padding: var(--ss-spacing-s) var(--ss-spacing-m);
228
+ cursor: pointer;
229
+ border-left: solid 1px var(--ss-bg-color);
230
+ box-sizing: content-box;
231
+
232
+ svg {
233
+ height: var(--ss-spacing-l);
234
+ width: var(--ss-spacing-l);
235
+
236
+ path {
237
+ fill: none;
238
+ stroke: var(--ss-bg-color);
239
+ stroke-width: 18;
240
+ stroke-linecap: round;
241
+ stroke-linejoin: round;
242
+ }
243
+ }
244
+ }
245
+ }
246
+ }
247
+
248
+ .ss-deselect {
249
+ flex: 0 1 auto;
250
+ display: flex;
251
+ align-items: center;
252
+ justify-content: center;
253
+ width: fit-content;
254
+ height: auto;
255
+ padding: 0 var(--ss-spacing-m) 0 var(--ss-spacing-m);
256
+
257
+ svg {
258
+ width: 8px;
259
+ height: 8px;
260
+
261
+ path {
262
+ fill: none;
263
+ stroke: var(--ss-font-color);
264
+ stroke-width: 20;
265
+ stroke-linecap: round;
266
+ stroke-linejoin: round;
267
+ }
268
+ }
269
+ }
270
+
271
+ .ss-arrow {
272
+ flex: 0 1 auto;
273
+ display: flex;
274
+ align-items: center;
275
+ justify-content: flex-end;
276
+ width: 12px;
277
+ height: 12px;
278
+ margin: auto var(--ss-spacing-m) auto var(--ss-spacing-m);
279
+
280
+ path {
281
+ fill: none;
282
+ stroke: var(--ss-font-color);
283
+ stroke-width: 18;
284
+ stroke-linecap: round;
285
+ stroke-linejoin: round;
286
+ transition-timing-function: ease-out;
287
+ transition: var(--ss-animation-timing);
288
+ }
289
+ }
290
+ }
291
+
292
+ // Visually hidden live region for screen reader search announcements
293
+ .ss-status {
294
+ position: absolute;
295
+ width: 1px;
296
+ height: 1px;
297
+ padding: 0;
298
+ margin: -1px;
299
+ overflow: hidden;
300
+ clip: rect(0, 0, 0, 0);
301
+ white-space: nowrap;
302
+ border: 0;
303
+ }
304
+
305
+ // Content container
306
+ .ss-content {
307
+ position: absolute; // default position
308
+ display: flex;
309
+ height: auto;
310
+ flex-direction: column;
311
+ width: auto;
312
+ max-height: var(--ss-content-height);
313
+ box-sizing: border-box;
314
+ border: solid 1px var(--ss-border-color);
315
+ background-color: var(--ss-bg-color);
316
+ min-height: 0;
317
+ transition:
318
+ transform var(--ss-animation-timing),
319
+ opacity var(--ss-animation-timing);
320
+ opacity: 0;
321
+ transform: scaleY(0);
322
+ overflow: hidden;
323
+ z-index: 10000;
324
+
325
+ @media (prefers-reduced-motion: reduce) {
326
+ transition: none;
327
+ }
328
+
329
+ &.ss-relative {
330
+ position: relative;
331
+ height: 100%;
332
+ // In-flow panels (alwaysOpen / contentLocation) must not overlay sticky headers
333
+ z-index: auto;
334
+ }
335
+
336
+ &.ss-fixed {
337
+ position: fixed;
338
+ }
339
+
340
+ &.ss-dir-above {
341
+ transform-origin: center bottom;
342
+ flex-direction: column-reverse;
343
+ border-top-left-radius: var(--ss-border-radius);
344
+ border-top-right-radius: var(--ss-border-radius);
345
+ }
346
+
347
+ &.ss-dir-below {
348
+ transform-origin: center top;
349
+ border-bottom-left-radius: var(--ss-border-radius);
350
+ border-bottom-right-radius: var(--ss-border-radius);
351
+ }
352
+
353
+ &.ss-open {
354
+ opacity: 1;
355
+ transform: scaleY(1);
356
+ }
357
+
358
+ .ss-search {
359
+ flex: 0 1 auto;
360
+ display: flex;
361
+ flex-direction: row;
362
+ align-items: center;
363
+ gap: var(--ss-spacing-s);
364
+ min-height: var(--ss-search-height);
365
+ padding: 0 var(--ss-spacing-s);
366
+ box-sizing: border-box;
367
+ border-bottom: 1px solid var(--ss-border-color);
368
+
369
+ input {
370
+ display: inline-flex;
371
+ font-size: inherit;
372
+ line-height: inherit;
373
+ flex: 1 1 auto;
374
+ width: 100%;
375
+ min-width: 0;
376
+ min-height: 0;
377
+ height: 100%;
378
+ padding: 0 var(--ss-spacing-m);
379
+ margin: 0;
380
+ border: none;
381
+ background-color: var(--ss-bg-color);
382
+ outline: 0;
383
+ text-align: left;
384
+ box-sizing: border-box;
385
+
386
+ &::placeholder {
387
+ color: var(--ss-placeholder-color);
388
+ vertical-align: middle;
389
+ }
390
+
391
+ &:focus {
392
+ box-shadow: none;
393
+ }
394
+ }
395
+
396
+ .ss-addable {
397
+ display: inline-flex;
398
+ justify-content: center;
399
+ align-items: center;
400
+ cursor: pointer;
401
+ flex: 0 0 auto;
402
+ box-sizing: border-box;
403
+ width: 22px;
404
+ height: 22px;
405
+ margin: auto 0;
406
+ padding: 0;
407
+ border: none;
408
+ border-radius: var(--ss-border-radius);
409
+ background-color: var(--ss-primary-color);
410
+
411
+ svg {
412
+ display: flex;
413
+ align-items: center;
414
+ justify-content: center;
415
+ flex: 0 0 auto;
416
+ width: 10px;
417
+ height: 10px;
418
+ margin: 0;
419
+
420
+ path {
421
+ fill: none;
422
+ stroke: var(--ss-bg-color);
423
+ stroke-width: 18;
424
+ stroke-linecap: round;
425
+ stroke-linejoin: round;
426
+ }
427
+ }
428
+ }
429
+
430
+ .ss-selectall {
431
+ margin-left: auto;
432
+ }
433
+ }
434
+
435
+ // Shared select-all checkbox (search row + optgroup actions)
436
+ .ss-selectall {
437
+ flex: 0 0 auto;
438
+ display: flex;
439
+ flex-direction: row;
440
+ align-items: center;
441
+ cursor: pointer;
442
+ user-select: none;
443
+ gap: var(--ss-spacing-s);
444
+ transition: opacity var(--ss-animation-timing);
445
+
446
+ &:hover {
447
+ opacity: 0.7;
448
+ }
449
+
450
+ span {
451
+ flex: 0 1 auto;
452
+ display: flex;
453
+ align-items: center;
454
+ justify-content: center;
455
+ font-size: calc(100% * 0.65);
456
+ color: var(--ss-font-color);
457
+ text-align: center;
458
+ white-space: nowrap;
459
+ }
460
+
461
+ svg {
462
+ flex: 0 0 auto;
463
+ width: 15px;
464
+ height: 15px;
465
+ border-radius: calc(var(--ss-border-radius) * 0.5);
466
+
467
+ path {
468
+ stroke-linecap: round;
469
+ stroke-linejoin: round;
470
+ transition:
471
+ fill var(--ss-animation-timing),
472
+ stroke var(--ss-animation-timing);
473
+ }
474
+
475
+ // Checkbox box
476
+ path:first-child {
477
+ fill: var(--ss-bg-color);
478
+ stroke: var(--ss-border-color);
479
+ stroke-width: 8;
480
+ }
481
+
482
+ // Check mark — hidden until selected
483
+ path:last-child {
484
+ fill: none;
485
+ stroke: transparent;
486
+ stroke-width: 10;
487
+ }
488
+ }
489
+
490
+ &.ss-selected {
491
+ svg {
492
+ animation-name: ss-valueIn;
493
+ animation-duration: var(--ss-animation-timing);
494
+ animation-timing-function: ease-out;
495
+
496
+ @media (prefers-reduced-motion: reduce) {
497
+ animation: none;
498
+ }
499
+
500
+ path:first-child {
501
+ fill: var(--ss-primary-color);
502
+ stroke: var(--ss-primary-color);
503
+ }
504
+
505
+ path:last-child {
506
+ stroke: var(--ss-bg-color);
507
+ }
508
+ }
509
+ }
510
+ }
511
+
512
+ &.ss-dir-above .ss-search {
513
+ border-bottom: none;
514
+ border-top: 1px solid var(--ss-border-color);
515
+ }
516
+
517
+ .ss-list {
518
+ flex: 1 1 auto;
519
+ height: auto;
520
+ min-height: 0;
521
+ overflow-x: hidden;
522
+ overflow-y: auto;
523
+ scrollbar-color: var(--ss-primary-color) var(--ss-bg-color);
524
+
525
+ .ss-error {
526
+ color: var(--ss-error-color);
527
+ padding: var(--ss-spacing-l);
528
+ }
529
+
530
+ .ss-searching {
531
+ color: var(--ss-font-color);
532
+ padding: var(--ss-spacing-l);
533
+ }
534
+
535
+ .ss-optgroup {
536
+ .ss-option {
537
+ min-height: 0;
538
+ transition:
539
+ max-height var(--ss-animation-timing) ease,
540
+ min-height var(--ss-animation-timing) ease,
541
+ opacity var(--ss-animation-timing) ease,
542
+ padding-top var(--ss-animation-timing) ease,
543
+ padding-bottom var(--ss-animation-timing) ease,
544
+ margin-top var(--ss-animation-timing) ease,
545
+ margin-bottom var(--ss-animation-timing) ease;
546
+ }
547
+
548
+ &:not(.ss-close):not(.ss-open) .ss-option {
549
+ min-height: var(--ss-option-height);
550
+ }
551
+
552
+ &.ss-open {
553
+ .ss-option {
554
+ min-height: var(--ss-option-height);
555
+ max-height: 100px;
556
+ opacity: 1;
557
+ overflow: visible;
558
+ }
559
+ }
560
+
561
+ // If optgroup has close, hide all options
562
+ &.ss-close {
563
+ .ss-option {
564
+ min-height: 0 !important;
565
+ padding-top: 0 !important;
566
+ padding-bottom: 0 !important;
567
+ margin-top: 0 !important;
568
+ margin-bottom: 0 !important;
569
+ max-height: 0;
570
+ opacity: 0;
571
+ overflow: hidden;
572
+ }
573
+ }
574
+
575
+ .ss-optgroup-label {
576
+ display: flex;
577
+ flex-direction: row;
578
+ align-items: center;
579
+ justify-content: space-between;
580
+ min-height: var(--ss-option-height);
581
+ padding: 0 var(--ss-spacing-l);
582
+
583
+ .ss-optgroup-label-text {
584
+ flex: 1 1 auto;
585
+ font-weight: bold;
586
+ color: var(--ss-font-color);
587
+ }
588
+
589
+ // If optgroup has arrow, make label clickable
590
+ &:has(.ss-arrow) {
591
+ cursor: pointer;
592
+ }
593
+
594
+ .ss-optgroup-actions {
595
+ flex: 0 1 auto;
596
+ display: flex;
597
+ flex-direction: row;
598
+ align-items: center;
599
+ justify-content: center;
600
+ gap: var(--ss-spacing-m);
601
+
602
+ .ss-closable {
603
+ flex: 0 1 auto;
604
+ display: flex;
605
+ flex-direction: row;
606
+ cursor: pointer;
607
+
608
+ .ss-arrow {
609
+ flex: 1 1 auto;
610
+ width: 10px;
611
+ height: 10px;
612
+
613
+ path {
614
+ fill: none;
615
+ stroke: var(--ss-font-color);
616
+ stroke-width: 18;
617
+ stroke-linecap: round;
618
+ stroke-linejoin: round;
619
+ transition-timing-function: ease-out;
620
+ transition: var(--ss-animation-timing);
621
+ }
622
+ }
623
+ }
624
+ }
625
+ }
626
+
627
+ .ss-option {
628
+ padding: 0 var(--ss-spacing-l) 0 calc(var(--ss-spacing-l) * 3);
629
+ }
630
+ }
631
+
632
+ .ss-option {
633
+ display: flex;
634
+ align-items: center;
635
+ min-height: var(--ss-option-height);
636
+ padding: 0 var(--ss-spacing-l);
637
+ white-space: normal;
638
+ color: var(--ss-font-color);
639
+ cursor: pointer;
640
+ user-select: none;
641
+ content-visibility: auto;
642
+ contain-intrinsic-size: auto var(--ss-option-height);
643
+
644
+ &:hover:not(.ss-disabled) {
645
+ color: var(--ss-bg-color);
646
+ background-color: var(--ss-primary-color);
647
+ border-left: 5px solid var(--ss-primary-color);
648
+ transition: border-left var(--ss-animation-timing) ease;
649
+ }
650
+
651
+ &.ss-highlighted,
652
+ &:not(.ss-disabled).ss-selected {
653
+ color: var(--ss-bg-color);
654
+ background-color: var(--ss-primary-color);
655
+ }
656
+
657
+ &.ss-disabled {
658
+ cursor: not-allowed;
659
+ background-color: var(--ss-disabled-color);
660
+
661
+ &:hover {
662
+ color: var(--ss-font-color);
663
+ }
664
+ }
665
+
666
+ // Sub div wrapper for highlighting text
667
+ .ss-search-highlight {
668
+ display: inline-block;
669
+ background-color: var(--ss-highlight-color);
670
+ }
671
+ }
672
+
673
+ .ss-search {
674
+ display: flex;
675
+ flex-direction: row;
676
+ align-items: center;
677
+ min-height: var(--ss-search-height);
678
+ padding: 0 var(--ss-spacing-l);
679
+ }
680
+ }
681
+ }
682
+
683
+ // Modal overlay
684
+ .ss-modal-overlay {
685
+ position: fixed;
686
+ inset: 0;
687
+ z-index: var(--ss-modal-z-index);
688
+ display: flex;
689
+ align-items: center;
690
+ justify-content: center;
691
+ padding: var(--ss-spacing-l);
692
+ box-sizing: border-box;
693
+ background-color: rgba(0, 0, 0, 0.8);
694
+ opacity: 0;
695
+ transition: opacity var(--ss-animation-timing);
696
+
697
+ @media (prefers-reduced-motion: reduce) {
698
+ transition: none;
699
+ }
700
+
701
+ &.ss-open {
702
+ opacity: 1;
703
+ }
704
+
705
+ .ss-modal-dialog {
706
+ position: relative;
707
+ display: flex;
708
+ flex-direction: column;
709
+ width: 100%;
710
+ max-width: var(--ss-modal-width);
711
+ max-height: var(--ss-modal-height);
712
+ overflow: visible;
713
+
714
+ .ss-modal-title {
715
+ flex: 0 0 auto;
716
+ width: 100%;
717
+ padding: 0 0 var(--ss-spacing-l);
718
+ box-sizing: border-box;
719
+ font-weight: bold;
720
+ font-size: 1.35em;
721
+ line-height: 1.3;
722
+ color: #ffffff;
723
+ text-align: left;
724
+ background: none;
725
+ border: none;
726
+ }
727
+
728
+ .ss-content {
729
+ &.ss-modal-content {
730
+ position: relative !important;
731
+ top: auto !important;
732
+ left: auto !important;
733
+ width: 100% !important;
734
+ max-width: 100%;
735
+ max-height: var(--ss-modal-height);
736
+ min-height: 0;
737
+ margin: 0 !important;
738
+ transform-origin: center center;
739
+ z-index: 1;
740
+ border-radius: var(--ss-border-radius);
741
+ overflow: visible;
742
+
743
+ .ss-modal-close {
744
+ position: absolute;
745
+ top: 0;
746
+ right: 0;
747
+ z-index: 2;
748
+ display: flex;
749
+ align-items: center;
750
+ justify-content: center;
751
+ width: 28px;
752
+ height: 28px;
753
+ padding: 0;
754
+ margin: 0;
755
+ border: none;
756
+ border-radius: var(--ss-border-radius);
757
+ background-color: var(--ss-bg-color);
758
+ color: var(--ss-font-color);
759
+ cursor: pointer;
760
+ outline: 0;
761
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
762
+ transform: translate(50%, -50%);
763
+
764
+ &:hover {
765
+ background-color: var(--ss-bg-color);
766
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
767
+ }
768
+
769
+ &:focus {
770
+ box-shadow: 0 0 5px var(--ss-focus-color);
771
+ }
772
+
773
+ svg {
774
+ width: 10px;
775
+ height: 10px;
776
+
777
+ path {
778
+ fill: none;
779
+ stroke: currentColor;
780
+ stroke-width: 20;
781
+ stroke-linecap: round;
782
+ stroke-linejoin: round;
783
+ }
784
+ }
785
+ }
786
+
787
+ .ss-list {
788
+ min-height: 0;
789
+ overflow-x: hidden;
790
+ overflow-y: auto;
791
+ border-radius: 0 0 var(--ss-border-radius) var(--ss-border-radius);
792
+ scrollbar-color: var(--ss-primary-color) var(--ss-bg-color);
793
+ }
794
+
795
+ .ss-search.ss-hide ~ .ss-list {
796
+ border-radius: var(--ss-border-radius);
797
+ }
798
+
799
+ &.ss-dir-above,
800
+ &.ss-dir-below {
801
+ flex-direction: column;
802
+ transform-origin: center center;
803
+ }
804
+ }
805
+ }
806
+ }
807
+ }