@finqu/cool 1.3.0 → 2.0.2

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 (74) hide show
  1. package/README.md +23 -9
  2. package/dist/css/cool.css +13391 -7742
  3. package/dist/css/cool.css.map +1 -1
  4. package/dist/css/cool.min.css +2 -93
  5. package/dist/css/cool.min.css.map +1 -1
  6. package/dist/js/cool.bundle.js +16051 -17050
  7. package/dist/js/cool.bundle.js.map +1 -1
  8. package/dist/js/cool.bundle.min.js +11 -18
  9. package/dist/js/cool.bundle.min.js.map +1 -1
  10. package/dist/js/cool.esm.js +3469 -4468
  11. package/dist/js/cool.esm.js.map +1 -1
  12. package/dist/js/cool.esm.min.js +2 -8
  13. package/dist/js/cool.esm.min.js.map +1 -1
  14. package/dist/js/cool.js +5083 -6089
  15. package/dist/js/cool.js.map +1 -1
  16. package/dist/js/cool.min.js +2 -8
  17. package/dist/js/cool.min.js.map +1 -1
  18. package/package.json +48 -16
  19. package/scss/LISENCE +15 -0
  20. package/scss/_badge.scss +134 -0
  21. package/scss/_button-group.scss +80 -0
  22. package/scss/_buttons.scss +304 -0
  23. package/scss/_dark.scss +637 -0
  24. package/scss/_dialog.scss +351 -0
  25. package/scss/_dropdown.scss +165 -0
  26. package/scss/_forms.scss +613 -0
  27. package/scss/_frame.scss +948 -0
  28. package/scss/_grid.scss +215 -0
  29. package/scss/_input-group.scss +326 -0
  30. package/scss/_list-group.scss +127 -0
  31. package/scss/_media.scss +439 -0
  32. package/scss/_navbar.scss +122 -0
  33. package/scss/_notification.scss +115 -0
  34. package/scss/_pagination.scss +82 -0
  35. package/scss/_popover.scss +61 -0
  36. package/scss/_reboot.scss +306 -0
  37. package/scss/_root.scss +848 -0
  38. package/scss/_section.scss +735 -0
  39. package/scss/_select.scss +559 -0
  40. package/scss/_tables.scss +611 -0
  41. package/scss/_tabs.scss +50 -0
  42. package/scss/_toast.scss +277 -0
  43. package/scss/_tooltip.scss +130 -0
  44. package/scss/_typography.scss +166 -0
  45. package/scss/_variables.scss +1229 -0
  46. package/scss/cool.scss +69 -0
  47. package/scss/utilities/_align.scss +51 -0
  48. package/scss/utilities/_animation.scss +165 -0
  49. package/scss/utilities/_background.scss +72 -0
  50. package/scss/utilities/_borders.scss +205 -0
  51. package/scss/utilities/_collapse.scss +28 -0
  52. package/scss/utilities/_cursor.scss +160 -0
  53. package/scss/utilities/_display.scss +116 -0
  54. package/scss/utilities/_embed.scss +89 -0
  55. package/scss/utilities/_fill.scss +79 -0
  56. package/scss/utilities/_filters.scss +233 -0
  57. package/scss/utilities/_flex.scss +216 -0
  58. package/scss/utilities/_grid.scss +136 -0
  59. package/scss/utilities/_opacity.scss +131 -0
  60. package/scss/utilities/_overflow.scss +242 -0
  61. package/scss/utilities/_perfect-scrollbar.scss +147 -0
  62. package/scss/utilities/_pointer-events.scss +125 -0
  63. package/scss/utilities/_position.scss +130 -0
  64. package/scss/utilities/_screen-readers.scss +95 -0
  65. package/scss/utilities/_shadows.scss +195 -0
  66. package/scss/utilities/_sizing.scss +288 -0
  67. package/scss/utilities/_spacing.scss +168 -0
  68. package/scss/utilities/_stroke.scss +124 -0
  69. package/scss/utilities/_text.scss +420 -0
  70. package/scss/utilities/_transform.scss +232 -0
  71. package/scss/utilities/_transitions.scss +147 -0
  72. package/scss/utilities/_user-select.scss +93 -0
  73. package/scss/utilities/_visibility.scss +66 -0
  74. package/scss/utilities/_z-index.scss +169 -0
@@ -0,0 +1,611 @@
1
+ @use "variables" as *;
2
+ @use "sass:color";
3
+ /* Tables ========================================================================== */
4
+
5
+ @mixin cool-tables {
6
+ .table {
7
+ background: transparent;
8
+ border-spacing: 0;
9
+ display: table;
10
+ margin: 0;
11
+ padding: 0;
12
+ width: 100%;
13
+ table-layout: auto;
14
+
15
+ .col-icon {
16
+ --cool-table-cell-width: 15px;
17
+ }
18
+ .col-small {
19
+ --cool-table-cell-width: 48px;
20
+ }
21
+ .col-small-medium {
22
+ --cool-table-cell-width: 74px;
23
+ }
24
+ .col-medium {
25
+ --cool-table-cell-width: 100px;
26
+ }
27
+ .col-medium-large {
28
+ --cool-table-cell-width: 150px;
29
+ }
30
+ .col-large {
31
+ --cool-table-cell-width: 288px;
32
+ }
33
+ .col-img-sm {
34
+ --cool-table-cell-width: 32px;
35
+ }
36
+ .col-img-md {
37
+ --cool-table-cell-width: 45px;
38
+ }
39
+ .col-img-lg {
40
+ --cool-table-cell-width: 90px;
41
+ }
42
+ .col-select {
43
+ --cool-table-cell-width: 18px;
44
+ }
45
+
46
+ thead,
47
+ .thead {
48
+ display: table-header-group;
49
+ vertical-align: middle;
50
+ border-color: inherit;
51
+ }
52
+
53
+ tbody,
54
+ .tbody {
55
+ display: table-row-group;
56
+ vertical-align: middle;
57
+ border-color: inherit;
58
+ }
59
+
60
+ .tr,
61
+ tr {
62
+ display: table-row;
63
+
64
+ &:first-child td,
65
+ &:first-child .td {
66
+ border-top: 0;
67
+ }
68
+
69
+ &[data-table-link],
70
+ &[data-table-btn] {
71
+ cursor: pointer;
72
+ }
73
+
74
+ .th,
75
+ th {
76
+ display: table-cell;
77
+ vertical-align: middle;
78
+ font-family: var(--cool-table-th-font-family);
79
+ line-height: var(--cool-table-th-line-height);
80
+ background-color: var(--cool-table-th-bg);
81
+ border-bottom: var(--cool-border-width) solid var(--cool-table-border-color);
82
+ color: var(--cool-table-head-color);
83
+ font-size: var(--cool-table-th-font-size);
84
+ font-weight: var(--cool-table-th-font-weight);
85
+ padding: var(--cool-table-th-padding-mobile);
86
+ word-break: normal;
87
+ box-sizing: content-box;
88
+ width: var(--cool-table-cell-width, auto);
89
+ height: var(--cool-table-cell-height, auto);
90
+
91
+ @include media-breakpoint-up(sm) {
92
+ padding: var(--cool-table-th-padding);
93
+ }
94
+ }
95
+
96
+ .td,
97
+ td {
98
+ display: table-cell;
99
+ vertical-align: middle;
100
+ position: static;
101
+ box-sizing: content-box;
102
+ line-height: var(--cool-table-td-line-height);
103
+ background: var(--cool-table-bg);
104
+ border-top: var(--cool-border-width) solid var(--cool-table-border-color);
105
+ color: var(--cool-table-color);
106
+ padding: var(--cool-table-td-padding-mobile);
107
+ width: var(--cool-table-cell-width, auto);
108
+ height: var(--cool-table-cell-height, auto);
109
+
110
+ @include media-breakpoint-down(sm) {
111
+ word-break: break-word;
112
+ }
113
+
114
+ @include media-breakpoint-up(sm) {
115
+ padding: var(--cool-table-td-padding);
116
+ }
117
+ }
118
+ }
119
+
120
+ ul {
121
+ display: block;
122
+ width: 100%;
123
+ box-sizing: border-box;
124
+ padding-left: 40px;
125
+
126
+ @include media-breakpoint-down(sm) {
127
+ padding-left: 10px;
128
+ }
129
+ }
130
+
131
+ li {
132
+ display: block;
133
+ list-style: none;
134
+ width: 100%;
135
+ }
136
+
137
+ a:not(.btn):not(.dropdown-item),
138
+ span.icon {
139
+ color: var(--cool-table-link-color);
140
+
141
+ &:hover:not(span) {
142
+ color: var(--cool-table-link-hover-color);
143
+
144
+ .icon {
145
+ color: var(--cool-table-link-hover-color);
146
+ }
147
+ }
148
+
149
+ .icon {
150
+ color: var(--cool-table-icon-color);
151
+ font-size: 18px;
152
+ }
153
+ }
154
+
155
+ p {
156
+ a:not(.btn):not(.dropdown-item),
157
+ span.icon {
158
+ color: var(--cool-table-link-color);
159
+ text-decoration: none;
160
+
161
+ &:hover {
162
+ color: var(--cool-table-link-hover-color);
163
+ }
164
+ }
165
+ }
166
+
167
+ .image.img-md {
168
+ --cool-image-width: 45px;
169
+ --cool-image-height: 45px;
170
+
171
+ &.img-thumbnail .icon {
172
+ --cool-image-icon-width: 20px;
173
+ --cool-image-icon-height: 20px;
174
+ }
175
+
176
+ .icon {
177
+ --cool-image-icon-width: 42px;
178
+ --cool-image-icon-height: 42px;
179
+ }
180
+ }
181
+
182
+ .badge {
183
+ white-space: normal;
184
+ }
185
+ }
186
+
187
+ .table-sm .tr:first-child .td,
188
+ .table-sm tr:first-child td {
189
+ padding: var(--cool-table-th-padding-sm);
190
+ }
191
+
192
+ .table-sm .tr .td,
193
+ .table-sm tr td {
194
+ padding: var(--cool-table-td-padding-sm);
195
+ }
196
+
197
+ .table-borderless:not(.table-sortable) .tr .th,
198
+ .table-borderless:not(.table-sortable) .tr .td,
199
+ .table-borderless:not(.table-sortable) tr th,
200
+ .table-borderless:not(.table-sortable) tr td {
201
+ border: none;
202
+ }
203
+
204
+ .table-hover thead tr th,
205
+ .table-hover .thead .tr .th {
206
+ background-color: var(--cool-table-th-bg);
207
+ }
208
+
209
+ .table-hover > tbody > tr:hover > td,
210
+ .table-hover > .tbody > .tr:hover > .td {
211
+ background-color: var(--cool-table-hover-bg);
212
+ }
213
+
214
+ .table-hover > tbody > tr:not(:first-child):not(:last-child):hover > td,
215
+ .table-hover > .tbody > .tr:not(:first-child):not(:last-child):hover > .td {
216
+ border-radius: 0;
217
+ }
218
+
219
+ .table-sortable {
220
+ &:has(.sortable-chosen) {
221
+ user-select: none;
222
+ }
223
+
224
+ &.table-borderless {
225
+ .table tbody,
226
+ .table .tbody {
227
+ outline: none;
228
+ }
229
+ }
230
+
231
+ li {
232
+ margin-top: calc(-1 * var(--cool-border-width));
233
+ }
234
+
235
+ li:first-child {
236
+ margin-top: 0;
237
+ }
238
+
239
+ table,
240
+ .table {
241
+ position: relative;
242
+
243
+ thead tr th,
244
+ .thead .tr .th {
245
+ background-color: var(--cool-table-bg);
246
+ }
247
+
248
+ thead tr th.sortable,
249
+ .thead .tr .th.sortable {
250
+ color: var(--cool-table-color);
251
+ }
252
+
253
+ thead tr th.sortable:hover,
254
+ .thead .tr .th.sortable:hover {
255
+ cursor: pointer;
256
+ background: var(--cool-table-sortable-head-hover-bg) !important;
257
+ }
258
+
259
+ tbody,
260
+ .tbody {
261
+ position: relative;
262
+ display: table;
263
+ width: 100%;
264
+ outline: var(--cool-border-width) solid var(--cool-table-border-color);
265
+ outline-offset: calc(-0.5 * var(--cool-border-width));
266
+ background-color: var(--cool-table-bg);
267
+
268
+ > tr td.ui-sortable-handle,
269
+ > .tr .td.ui-sortable-handle {
270
+ width: var(--cool-table-sortable-handle-width);
271
+ height: var(--cool-table-sortable-handle-height);
272
+ padding-right: 0;
273
+ text-align: center;
274
+ cursor:
275
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABF0lEQ…%2BX%2BvObByYdEkFh8%2F6qXFrrfeocIk8x2VrNl9A%2F0l7Ib3y%2F5wAAAAAElFTkSuQmCC),
276
+ move;
277
+ cursor: -webkit-grab;
278
+ cursor: grab;
279
+ }
280
+
281
+ > tr td.ui-sortable-handle:focus,
282
+ > tr td.ui-sortable-handle:active,
283
+ > .tr .td.ui-sortable-handle:focus,
284
+ > .tr .td.ui-sortable-handle:active {
285
+ cursor:
286
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA8ElEQ…MaIrswx%2FYOXKRSUsXsh8s3Y91rlQK%2FF8IiOx%2B3vxAooqZGlRhljTAAAAAElFTkSuQmCC),
287
+ move;
288
+ cursor: -webkit-grabbing;
289
+ cursor: grabbing;
290
+ }
291
+ }
292
+ }
293
+ }
294
+
295
+ .table-bulk-actions tr.selected > td,
296
+ .table-bulk-actions .tr.selected > .td {
297
+ background-color: var(--cool-table-hover-bg);
298
+ color: var(--cool-table-hover-color);
299
+ }
300
+
301
+ .table-bulk-actions tr th.bulk-action,
302
+ .table-bulk-actions tr td.bulk-action,
303
+ .table-bulk-actions .tr .th.bulk-action,
304
+ .table-bulk-actions .tr .td.bulk-action {
305
+ cursor: pointer;
306
+ text-align: center;
307
+ position: relative;
308
+
309
+ &:hover {
310
+ background: var(--cool-table-bulk-actions-hover-bg);
311
+ color: var(--cool-table-bulk-actions-hover-color);
312
+
313
+ .dropdown-menu {
314
+ display: block;
315
+ }
316
+ }
317
+
318
+ .dropdown-menu {
319
+ background: var(--cool-section-bg);
320
+ border: var(--cool-border-width) solid var(--cool-border-color);
321
+ box-shadow: var(--cool-table-bulk-actions-dropdown-shadow);
322
+ clear: left;
323
+ display: none;
324
+ list-style: none;
325
+ margin: 0;
326
+ padding: 0;
327
+ position: absolute;
328
+ right: 0;
329
+ top: 100%;
330
+ z-index: 100;
331
+ width: 100%;
332
+ min-width: var(--cool-table-bulk-actions-dropdown-min-width);
333
+
334
+ li {
335
+ font-size: var(--cool-table-bulk-actions-dropdown-item-font-size);
336
+ font-weight: var(--cool-font-weight-normal);
337
+ line-height: var(--cool-table-bulk-actions-dropdown-item-line-height);
338
+ min-height: var(--cool-table-bulk-actions-dropdown-item-line-height);
339
+
340
+ & > * {
341
+ color: var(--cool-body-color);
342
+ cursor: pointer;
343
+ display: block;
344
+ padding: var(--cool-table-bulk-actions-dropdown-item-padding);
345
+ text-decoration: none;
346
+ text-transform: none;
347
+
348
+ &:hover {
349
+ background: var(--cool-table-bulk-actions-hover-bg);
350
+ color: var(--cool-section-bg);
351
+ }
352
+ }
353
+ }
354
+ }
355
+ }
356
+
357
+ .table-bulk-actions .bulk-actions-header {
358
+ display: none;
359
+ position: absolute;
360
+ left: 0;
361
+ top: 0;
362
+ background: var(--cool-table-bg);
363
+ }
364
+
365
+ .table-bulk-actions.bulk-actions-active .bulk-actions-header {
366
+ display: block;
367
+ z-index: 1002;
368
+ border-bottom: var(--cool-border-width) solid var(--cool-table-border-color);
369
+ background-color: var(--cool-table-th-bg);
370
+ }
371
+
372
+ .table-bulk-actions .col-select {
373
+ text-align: center;
374
+ flex-wrap: nowrap;
375
+ position: relative;
376
+ padding-right: 0;
377
+ max-width: 100%;
378
+ line-height: 0;
379
+ }
380
+
381
+ .table-responsive {
382
+ @include media-breakpoint-down(sm) {
383
+ --cool-table-th-padding-mobile: var(--cool-table-responsive-td-padding);
384
+ --cool-table-td-padding-x: var(--cool-table-responsive-td-padding);
385
+ overflow: hidden;
386
+ table-layout: auto;
387
+
388
+ &.table-bulk-actions.bulk-actions-active .bulk-actions-header,
389
+ .bulk-actions-select {
390
+ background-color: transparent;
391
+ }
392
+
393
+ th,
394
+ .th,
395
+ td,
396
+ .td {
397
+ --cool-table-cell-width: auto;
398
+ }
399
+
400
+ &.table-bordered {
401
+ border: none;
402
+ }
403
+
404
+ &.table-bulk-actions .bulk-actions-header {
405
+ border-bottom: 0;
406
+ }
407
+
408
+ > .thead > .tr > .th:not(.bulk-actions-select),
409
+ > thead > tr > th:not(.bulk-actions-select) {
410
+ display: none;
411
+ }
412
+
413
+ > .thead > .tr > .th.bulk-actions-select,
414
+ > thead > tr > th.bulk-actions-select {
415
+ border-bottom: 0;
416
+ text-align: left;
417
+ padding: var(--cool-table-responsive-td-padding);
418
+ }
419
+
420
+ > .tbody > .tr,
421
+ > tbody > tr {
422
+ display: block;
423
+ margin-bottom: var(--cool-table-responsive-margin-bottom);
424
+ box-sizing: border-box;
425
+ margin-top: 0;
426
+ border-right: var(--cool-border-width) solid var(--cool-table-border-color);
427
+ border-bottom: var(--cool-border-width) solid var(--cool-table-border-color);
428
+ border-left: var(--cool-border-width) solid var(--cool-table-border-color);
429
+ border-radius: var(--cool-border-radius);
430
+
431
+ &:first-child > .td,
432
+ &:first-child > td {
433
+ border-top: var(--cool-border-width) solid var(--cool-table-border-color);
434
+ border-left: none;
435
+ border-right: none;
436
+ border-bottom: none;
437
+ }
438
+
439
+ &:last-child {
440
+ margin-bottom: 0;
441
+ }
442
+ }
443
+
444
+ > .tbody > .tr > .td,
445
+ > tbody > tr > td {
446
+ display: flex;
447
+ text-align: left !important;
448
+ min-height: 0;
449
+ border-top: var(--cool-border-width) solid var(--cool-table-border-color);
450
+ border-left: none;
451
+ border-right: none;
452
+ border-bottom: none;
453
+ flex: 1;
454
+ flex-wrap: wrap;
455
+ width: 100%;
456
+ box-sizing: border-box;
457
+ padding: var(--cool-table-responsive-td-padding);
458
+ align-items: center;
459
+ font-size: var(--cool-table-responsive-td-font-size);
460
+ line-height: var(--cool-table-responsive-td-line-height);
461
+ border-radius: 0 0 var(--cool-border-radius) var(--cool-border-radius);
462
+
463
+ [type="checkbox"]:not(.onoffswitch-checkbox) {
464
+ margin: 0 auto 0 0;
465
+ }
466
+
467
+ &.col-select {
468
+ flex-wrap: nowrap;
469
+
470
+ &[data-heading]:after {
471
+ content: attr(data-heading);
472
+ display: inline-block;
473
+ width: 100%;
474
+ text-align: left;
475
+ font-weight: var(--cool-table-responsive-heading-font-weight);
476
+ margin-left: 5px;
477
+ }
478
+
479
+ .form-check:not(.bulk-actions-select) {
480
+ padding-left: 0;
481
+ margin-left: 0;
482
+ }
483
+ }
484
+
485
+ a:not(.btn):not(.dropdown-item) {
486
+ padding: 0;
487
+ }
488
+
489
+ &:first-of-type:not(.d-none),
490
+ &:first-of-type:not(.d-sm-none),
491
+ &:first-of-type:not(.d-md-none) {
492
+ background: var(--cool-table-responsive-first-td-bg);
493
+ border-radius: var(--cool-border-radius) var(--cool-border-radius) 0 0 !important;
494
+ }
495
+
496
+ &:first-of-type.d-none + td,
497
+ &:first-of-type.d-none + .td,
498
+ &:first-of-type.d-sm-none + td,
499
+ &:first-of-type.d-sm-none + .td,
500
+ &:first-of-type.d-md-none + td,
501
+ &:first-of-type.d-md-none + .td {
502
+ background: var(--cool-table-responsive-first-td-bg);
503
+ border-radius: var(--cool-border-radius) var(--cool-border-radius) 0 0 !important;
504
+ }
505
+
506
+ .heading:not(.d-none):not(.d-sm-none):not(.d-md-none),
507
+ &[data-heading]:not(.col-select):before {
508
+ content: attr(data-heading);
509
+ display: inline-block;
510
+ width: 100%;
511
+ text-align: left;
512
+ font-weight: var(--cool-table-responsive-heading-font-weight);
513
+ margin-bottom: var(--cool-table-responsive-heading-margin-bottom);
514
+ }
515
+
516
+ .heading:not(.d-none):not(.d-sm-none):not(.d-md-none) {
517
+ margin-bottom: 0;
518
+
519
+ & + * {
520
+ margin-top: var(--cool-table-responsive-heading-margin-bottom);
521
+ }
522
+ }
523
+
524
+ .d-block,
525
+ p {
526
+ width: 100%;
527
+ }
528
+
529
+ &.no-wrap-mobile {
530
+ display: flex !important;
531
+ flex-wrap: nowrap;
532
+
533
+ .heading:not(.d-none):not(.d-sm-none):not(.d-md-none),
534
+ &[data-heading]:not(.col-select):before {
535
+ width: 50%;
536
+ }
537
+ }
538
+ }
539
+ }
540
+ }
541
+
542
+ .table-sticky-actions {
543
+ overflow-x: auto;
544
+ position: relative;
545
+ display: flex;
546
+
547
+ .table {
548
+ min-width: 100%;
549
+ white-space: nowrap;
550
+ border-collapse: collapse;
551
+
552
+ .badge {
553
+ white-space: nowrap;
554
+ }
555
+ }
556
+
557
+ .col-sticky {
558
+ position: sticky;
559
+ right: 0;
560
+ z-index: 2;
561
+
562
+ &:has(.dropdown-menu.show) {
563
+ z-index: 1001;
564
+ }
565
+ }
566
+
567
+ .table-sticky-actions-sentinel {
568
+ margin-left: -2px;
569
+ }
570
+
571
+ &.sticky {
572
+ .col-sticky {
573
+ box-shadow: inset 1px 0 0px var(--cool-table-sticky-actions-shadow-color);
574
+ border: transparent;
575
+ background-color: var(--cool-table-sticky-actions-col-sticky-bg);
576
+ border-radius: 0;
577
+
578
+ & + * {
579
+ background-color: var(--cool-table-sticky-actions-col-sticky-bg);
580
+ }
581
+
582
+ &:before {
583
+ content: "";
584
+ position: absolute;
585
+ top: 0;
586
+ left: calc(-1 * var(--cool-table-sticky-actions-shadow-width));
587
+ width: var(--cool-table-sticky-actions-shadow-width);
588
+ height: 100%;
589
+ z-index: -1;
590
+ background: var(--cool-table-sticky-actions-shadow-gradient);
591
+ }
592
+ }
593
+
594
+ th.col-sticky {
595
+ border-bottom: 1px solid var(--cool-table-border-color);
596
+ }
597
+
598
+ tbody > tr:not(:last-of-type) > td.col-sticky {
599
+ border-bottom: 1px solid var(--cool-table-border-color);
600
+ }
601
+ }
602
+ }
603
+ }
604
+
605
+ @if $cool-use-component-layer {
606
+ @layer components {
607
+ @include cool-tables;
608
+ }
609
+ } @else {
610
+ @include cool-tables;
611
+ }
@@ -0,0 +1,50 @@
1
+ @use "variables" as *;
2
+ /* Tabs ========================================================================== */
3
+
4
+ @mixin cool-tabs {
5
+ .tabs-container {
6
+ overflow-x: auto;
7
+
8
+ &:has(+ .tab-content) {
9
+ padding-bottom: var(--cool-section-spacer);
10
+ }
11
+ }
12
+
13
+ .tabs {
14
+ display: inline-flex;
15
+ gap: 1px;
16
+ align-items: center;
17
+ background-color: var(--cool-section-bg);
18
+ border-radius: calc(var(--cool-section-border-radius) + 2px);
19
+ padding: 2px;
20
+ list-style-type: none;
21
+ margin: 0;
22
+ border: 1px solid var(--cool-section-border-color);
23
+ box-shadow: var(--cool-box-shadow-sm);
24
+
25
+ .tab-item {
26
+ &.active .tab-item-action {
27
+ border-color: var(--cool-theme-text-color-info);
28
+ color: var(--cool-theme-text-color-info);
29
+ }
30
+
31
+ .tab-item-action {
32
+ display: block;
33
+ padding: var(--cool-spacing-1) var(--cool-spacing-1);
34
+ border: 1px solid transparent;
35
+ border-radius: var(--cool-section-border-radius);
36
+ transition: all 0.2s ease-in-out;
37
+ color: var(--cool-theme-text-color-dark);
38
+ font-size: var(--cool-font-size-sm);
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ @if $cool-use-component-layer {
45
+ @layer components {
46
+ @include cool-tabs;
47
+ }
48
+ } @else {
49
+ @include cool-tabs;
50
+ }