@trilogy-ds/styles 0.0.1-alpha-prompt

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 (145) hide show
  1. package/README.md +47 -0
  2. package/dist/default/assets/icons/all/alert.svg +1 -0
  3. package/dist/default/assets/icons/all/arrow-down.svg +1 -0
  4. package/dist/default/assets/icons/all/arrow-left.svg +1 -0
  5. package/dist/default/assets/icons/all/arrow-right.svg +1 -0
  6. package/dist/default/assets/icons/all/arrow-up.svg +1 -0
  7. package/dist/default/assets/icons/all/attachment.svg +1 -0
  8. package/dist/default/assets/icons/all/bell.svg +1 -0
  9. package/dist/default/assets/icons/all/calendar.svg +1 -0
  10. package/dist/default/assets/icons/all/check-circle.svg +1 -0
  11. package/dist/default/assets/icons/all/check.svg +1 -0
  12. package/dist/default/assets/icons/all/exclamation-circle.svg +1 -0
  13. package/dist/default/assets/icons/all/eye-slash.svg +1 -0
  14. package/dist/default/assets/icons/all/eye.svg +1 -0
  15. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  16. package/dist/default/assets/icons/all/infos-circle.svg +1 -0
  17. package/dist/default/assets/icons/all/micro.svg +1 -0
  18. package/dist/default/assets/icons/all/search.svg +1 -0
  19. package/dist/default/assets/icons/all/times.svg +1 -0
  20. package/dist/default/assets/icons/all/trash.svg +1 -0
  21. package/dist/default/trilogy-mangled.css +1 -0
  22. package/dist/default/trilogy-partials.css +1 -0
  23. package/dist/default/trilogy.css +1 -0
  24. package/framework/src/_all.scss +8 -0
  25. package/framework/src/base/_all.scss +9 -0
  26. package/framework/src/base/_color.scss +7 -0
  27. package/framework/src/base/_elements.scss +34 -0
  28. package/framework/src/base/_fonts.scss +2 -0
  29. package/framework/src/base/_generic.scss +76 -0
  30. package/framework/src/base/_helpers.scss +875 -0
  31. package/framework/src/base/_loading.scss +109 -0
  32. package/framework/src/base/_reset.scss +148 -0
  33. package/framework/src/components/_accordion.scss +144 -0
  34. package/framework/src/components/_autocomplete.scss +38 -0
  35. package/framework/src/components/_autolayout.scss +332 -0
  36. package/framework/src/components/_badge.scss +87 -0
  37. package/framework/src/components/_box.scss +168 -0
  38. package/framework/src/components/_breadcrumb.scss +36 -0
  39. package/framework/src/components/_button.scss +79 -0
  40. package/framework/src/components/_calendar.scss +129 -0
  41. package/framework/src/components/_card.scss +244 -0
  42. package/framework/src/components/_checkbox.scss +71 -0
  43. package/framework/src/components/_chips.scss +84 -0
  44. package/framework/src/components/_container.scss +69 -0
  45. package/framework/src/components/_countdown.scss +57 -0
  46. package/framework/src/components/_date-picker.scss +58 -0
  47. package/framework/src/components/_divider.scss +52 -0
  48. package/framework/src/components/_dropdown.scss +195 -0
  49. package/framework/src/components/_fab.scss +47 -0
  50. package/framework/src/components/_flex-box.scss +994 -0
  51. package/framework/src/components/_icon.scss +384 -0
  52. package/framework/src/components/_image.scss +69 -0
  53. package/framework/src/components/_index.scss +51 -0
  54. package/framework/src/components/_link.scss +58 -0
  55. package/framework/src/components/_list.scss +66 -0
  56. package/framework/src/components/_loader.scss +126 -0
  57. package/framework/src/components/_modal.scss +232 -0
  58. package/framework/src/components/_otp.scss +73 -0
  59. package/framework/src/components/_pagination.scss +83 -0
  60. package/framework/src/components/_popover.scss +340 -0
  61. package/framework/src/components/_price.scss +184 -0
  62. package/framework/src/components/_product-tour.scss +129 -0
  63. package/framework/src/components/_prompt.scss +125 -0
  64. package/framework/src/components/_radio.scss +82 -0
  65. package/framework/src/components/_range.scss +85 -0
  66. package/framework/src/components/_scroll-view.scss +19 -0
  67. package/framework/src/components/_segmented-control.scss +62 -0
  68. package/framework/src/components/_select.scss +131 -0
  69. package/framework/src/components/_stepper.scss +217 -0
  70. package/framework/src/components/_sticker.scss +148 -0
  71. package/framework/src/components/_switch.scss +115 -0
  72. package/framework/src/components/_table.scss +244 -0
  73. package/framework/src/components/_tabs.scss +228 -0
  74. package/framework/src/components/_tag.scss +114 -0
  75. package/framework/src/components/_text.scss +55 -0
  76. package/framework/src/components/_textarea.scss +46 -0
  77. package/framework/src/components/_timeline.scss +282 -0
  78. package/framework/src/components/_title.scss +151 -0
  79. package/framework/src/components/alert/_alert.scss +94 -0
  80. package/framework/src/components/alert/_index.scss +2 -0
  81. package/framework/src/components/alert/_toaster.scss +124 -0
  82. package/framework/src/components/input/_entry.scss +135 -0
  83. package/framework/src/components/input/_form.scss +602 -0
  84. package/framework/src/components/input/_index.scss +4 -0
  85. package/framework/src/components/input/_input-gauge.scss +44 -0
  86. package/framework/src/components/input/_input-icons.scss +55 -0
  87. package/framework/src/components/progress/_index.scss +2 -0
  88. package/framework/src/components/progress/_progress-radial.scss +28 -0
  89. package/framework/src/components/progress/_progress.scss +223 -0
  90. package/framework/src/elements/_index.scss +5 -0
  91. package/framework/src/elements/_other.scss +3 -0
  92. package/framework/src/elements/_plus-symbol.scss +32 -0
  93. package/framework/src/grid/_all.scss +3 -0
  94. package/framework/src/grid/_columns.scss +467 -0
  95. package/framework/src/grid/_rows.scss +54 -0
  96. package/framework/src/grid/_tiles.scss +78 -0
  97. package/framework/src/layout/_all.scss +5 -0
  98. package/framework/src/layout/_hero.scss +146 -0
  99. package/framework/src/layout/_main.scss +36 -0
  100. package/framework/src/layout/_section.scss +46 -0
  101. package/framework/src/theming/_all.scss +3 -0
  102. package/framework/src/theming/buttons_partial.scss +32 -0
  103. package/framework/src/theming/common_partials.scss +10 -0
  104. package/framework/src/theming/links_partial.scss +20 -0
  105. package/framework/src/trilogy-core.scss +16 -0
  106. package/framework/src/trilogy-mangled.scss +14 -0
  107. package/framework/src/trilogy-namespaced.scss +14 -0
  108. package/framework/src/trilogy.scss +8 -0
  109. package/framework/src/utilities/_a11y.scss +13 -0
  110. package/framework/src/utilities/_all.scss +13 -0
  111. package/framework/src/utilities/_animations.scss +71 -0
  112. package/framework/src/utilities/_background.scss +21 -0
  113. package/framework/src/utilities/_controls.scss +56 -0
  114. package/framework/src/utilities/_derived-variables.scss +1 -0
  115. package/framework/src/utilities/_functions.scss +94 -0
  116. package/framework/src/utilities/_initial-variables.scss +10 -0
  117. package/framework/src/utilities/_post.scss +6 -0
  118. package/framework/src/utilities/_pre.scss +8 -0
  119. package/framework/src/utilities/_spacing.scss +10 -0
  120. package/framework/src/utilities/_tools.scss +3 -0
  121. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  122. package/framework/src/utilities/mixins/_delete.scss +86 -0
  123. package/framework/src/utilities/mixins/_index.scss +11 -0
  124. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  125. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  126. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  127. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  128. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  129. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  130. package/framework/src/utilities/mixins/_state.scss +25 -0
  131. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  132. package/framework/src/utilities/mixins/_utils.scss +24 -0
  133. package/framework/src/utilities/variables/_animation.scss +2 -0
  134. package/framework/src/utilities/variables/_color.scss +85 -0
  135. package/framework/src/utilities/variables/_font.scss +97 -0
  136. package/framework/src/utilities/variables/_index.scss +6 -0
  137. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  138. package/framework/src/utilities/variables/_shadow.scss +3 -0
  139. package/framework/src/utilities/variables/_zindex.scss +14 -0
  140. package/package.json +28 -0
  141. package/themes/default/src/_all.scss +1 -0
  142. package/themes/default/src/assets.scss +11 -0
  143. package/themes/default/src/utilities/_all.scss +0 -0
  144. package/themes/default/src/utilities/_post.scss +0 -0
  145. package/themes/default/src/utilities/_pre.scss +3 -0
@@ -0,0 +1,148 @@
1
+ $sticker-height: 35px;
2
+
3
+ .sticker {
4
+ border-radius: 9999px;
5
+ font-size: 16px;
6
+ flex-grow: 0;
7
+ display: inline-flex;
8
+ padding: 8px 16px;
9
+ color: getColor('background') !important;
10
+ line-height: 20px;
11
+ flex-shrink: 0;
12
+ background-color: getColor('main');
13
+ font-weight: 600;
14
+ max-height: 36px;
15
+
16
+ .icon {
17
+ width: 1em;
18
+ margin-right: 5px;
19
+ }
20
+
21
+ &.is-small {
22
+ .icon {
23
+ margin-right: 3px;
24
+ }
25
+ }
26
+
27
+ &:not(.is-hat) {
28
+ width: fit-content;
29
+
30
+ @include mobile {
31
+ font-size: 12px;
32
+ padding: $spacing-1 $spacing-2;
33
+ height: auto;
34
+ line-height: 15px;
35
+
36
+ }
37
+ }
38
+
39
+ &.is-accent {
40
+ background-color: getColor('accent');
41
+ color: getColor('background') !important;
42
+ }
43
+
44
+ &.is-info {
45
+ background-color: getColor('info');
46
+ color: getColor('background') !important;
47
+ }
48
+
49
+ &.is-inverted {
50
+ background-color: white !important;
51
+ border-style: solid;
52
+ border-width: 2px;
53
+ border-color: currentColor;
54
+ color: currentColor;
55
+ }
56
+
57
+ &.is-small {
58
+ font-size: 12px;
59
+ padding: $spacing-1 $spacing-2;
60
+ height: auto;
61
+ line-height: 15px;
62
+
63
+ }
64
+
65
+ // deprecated
66
+ &.is-stretched {
67
+ border-radius: var(--radius) 0;
68
+ padding: 0 10px;
69
+ position: relative;
70
+ margin-right: 10px;
71
+ margin-left: 10px;
72
+
73
+ &::before,
74
+ &::after {
75
+ position: absolute;
76
+ top: 0;
77
+ content: " ";
78
+ transform: skew(-20deg);
79
+ padding-left: 7px;
80
+ padding-right: 7px;
81
+ line-height: 2em;
82
+ height: 100%;
83
+ display: block;
84
+ }
85
+
86
+ &::before {
87
+ border-radius: var(--radius) 0 0 var(--radius);
88
+ left: -6px;
89
+ }
90
+
91
+ &::after {
92
+ border-radius: 0 var(--radius) var(--radius) 0;
93
+ right: -7px;
94
+ }
95
+ }
96
+ }
97
+
98
+ @mixin hat-margins {
99
+ position: relative;
100
+ border-top-left-radius: 0 !important;
101
+ border-top-right-radius: 0 !important;
102
+ text-align: center;
103
+ margin-top: $sticker-height !important;
104
+ }
105
+
106
+ .has-hat,
107
+ .has-hat-desktop,
108
+ .has-hat-mobile {
109
+ .is-hat {
110
+ display: inline-block;
111
+ border-radius: var(--radius) var(--radius) 0 0;
112
+ position: absolute;
113
+ top: -$sticker-height;
114
+ left: 0;
115
+ right: 0;
116
+ white-space: nowrap;
117
+ padding-left: 5px;
118
+ padding-right: 5px;
119
+ overflow: hidden;
120
+ text-overflow: ellipsis;
121
+ }
122
+
123
+ &.is-fullheight {
124
+ height: calc(100% - #{$sticker-height}) !important;
125
+ }
126
+ }
127
+
128
+ .has-hat {
129
+ @include hat-margins();
130
+ }
131
+
132
+ .has-hat-desktop {
133
+ @include desktop() {
134
+ @include hat-margins();
135
+ }
136
+ }
137
+
138
+ .has-hat-tablet {
139
+ @include tablet() {
140
+ @include hat-margins();
141
+ }
142
+ }
143
+
144
+ .has-hat-mobile {
145
+ @include mobile() {
146
+ @include hat-margins();
147
+ }
148
+ }
@@ -0,0 +1,115 @@
1
+ .switch {
2
+ position: relative;
3
+ margin: 8px;
4
+ width: fit-content;
5
+
6
+ &.is-fullwidth {
7
+ width: 100%;
8
+ }
9
+
10
+ input {
11
+ opacity: 0;
12
+ position: absolute;
13
+ outline: none;
14
+
15
+ &:focus-visible ~ label:before{
16
+ outline: 2px solid;
17
+ }
18
+ &:disabled ~ label,
19
+ &:disabled:checked ~ label {
20
+ cursor: not-allowed;
21
+
22
+ &:before {
23
+ background-color: getColor('disabled');
24
+ }
25
+ }
26
+
27
+ &:disabled ~ label {
28
+ &:after {
29
+ $colorSvg: encodecolor(getColor('disabled'));
30
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
31
+ }
32
+ }
33
+
34
+ &:disabled:checked ~ label {
35
+ &:after {
36
+ $colorSvg: encodecolor(getColor('disabled'));
37
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
38
+ }
39
+ }
40
+ }
41
+
42
+ label {
43
+ width: 100%;
44
+ display: flex;
45
+ align-items: center;
46
+ cursor: pointer;
47
+ padding: $spacing-1;
48
+ padding-right: 60px;
49
+
50
+ &:before {
51
+ content: '';
52
+ position: absolute;
53
+ top: 50%;
54
+ transform: translateY(-50%);
55
+ right: 0;
56
+ border-radius: 9999px;
57
+ width: 44px;
58
+ height: 22px;
59
+ background-color: getColor('neutral');
60
+ }
61
+
62
+ &:after {
63
+ $colorSvg: encodecolor(getColor('neutral'));
64
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
65
+ position: absolute;
66
+ top: 50%;
67
+ transform: translateY(-50%);
68
+ right: calc(44px - 18px - 2px);
69
+ border-radius: 9999px;
70
+ width: 18px;
71
+ height: 18px;
72
+ background-color: getColor('background');
73
+ transition: 0.3s;
74
+ }
75
+ }
76
+
77
+ input:checked {
78
+ & ~ label {
79
+ font-weight: bold;
80
+
81
+ &:before {
82
+ background-color: getColor('main');
83
+ }
84
+
85
+ &:after {
86
+ right: 2px;
87
+ $colorSvg: encodecolor(getColor('main'));
88
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
89
+ background-color: getColor('background');
90
+ }
91
+ }
92
+ }
93
+
94
+ &.is-reversed {
95
+ label {
96
+ flex-direction: row-reverse;
97
+ padding-right: 0;
98
+ padding-left: 60px;
99
+
100
+ &:before {
101
+ left: 0;
102
+ margin-left: 0;
103
+ margin-right: 16px;
104
+ }
105
+
106
+ &:after {
107
+ left: 2px;
108
+ }
109
+ }
110
+
111
+ input:checked ~ label:after {
112
+ left: calc(44px - 18px - 2px);
113
+ }
114
+ }
115
+ }
@@ -0,0 +1,244 @@
1
+ @use "sass:math";
2
+
3
+ /**
4
+ * @deprecated "Use box.is-paddingless instead"
5
+ */
6
+ .table-container.box {
7
+ padding: 0;
8
+ }
9
+
10
+ .table {
11
+ @include block;
12
+
13
+ background-color: transparent;
14
+ color: getColor('neutral');
15
+
16
+ &:not(:last-child) {
17
+ margin-bottom: 30px;
18
+ }
19
+
20
+ /**
21
+ * @deprecated "Use multiples <tr><th> instead"
22
+ */
23
+ tbody .is-body-header {
24
+ background-color: getColor('neutral-fade');
25
+ }
26
+
27
+ td,
28
+ th {
29
+ border: var(--border);
30
+ border-width: 0;
31
+ padding: 20px;
32
+ vertical-align: top;
33
+ text-align: left;
34
+
35
+ // Modifiers
36
+ &.is-narrow {
37
+ white-space: nowrap;
38
+ width: 1%;
39
+ }
40
+
41
+ &.is-selected {
42
+ background-color: getColor('main');
43
+ color: getColor('background');
44
+
45
+ a,
46
+ strong {
47
+ color: currentColor;
48
+ }
49
+ }
50
+ }
51
+
52
+ th {
53
+ color: getColor('font');
54
+ }
55
+
56
+ tr {
57
+ @each $name in $colors-feedback {
58
+ &.is-#{$name} {
59
+ background-color: fadeColor($name);
60
+ }
61
+ }
62
+
63
+ th {
64
+ background-color: getColor('background');
65
+ }
66
+
67
+ th,
68
+ td {
69
+ color: getColor('font');
70
+ vertical-align: middle;
71
+ }
72
+
73
+ td {
74
+ border-bottom: var(--border);
75
+
76
+ > p {
77
+ margin: 0;
78
+ }
79
+ }
80
+
81
+ &.is-selected {
82
+ background-color: getColor('main');
83
+ color: getColor('background');
84
+
85
+ a,
86
+ strong {
87
+ color: currentColor;
88
+ }
89
+
90
+ td,
91
+ th {
92
+ color: currentColor;
93
+ }
94
+ }
95
+
96
+ &.is-expanded,
97
+ &.is-expandable:hover {
98
+ td {
99
+ color: getColor('accent');
100
+ cursor: pointer;
101
+ }
102
+ }
103
+
104
+ &.is-expandable + .is-expansion {
105
+ display: none;
106
+ }
107
+
108
+ &.is-expanded + .is-expansion {
109
+ display: table-row;
110
+ }
111
+
112
+ &.is-expanded {
113
+ > td {
114
+ border-bottom: 0;
115
+ }
116
+
117
+ .toggle {
118
+ transform: rotate(180deg);
119
+ color: inherit;
120
+ }
121
+
122
+ + tr > td {
123
+ border-top: 0;
124
+ }
125
+ }
126
+ }
127
+
128
+ thead {
129
+ td,
130
+ th {
131
+ border-width: 0 0 1px;
132
+ color: getColor('font');
133
+ }
134
+ }
135
+
136
+ tfoot {
137
+ td,
138
+ th {
139
+ border-width: 2px 0 0;
140
+ color: getColor('font');
141
+ }
142
+ }
143
+
144
+ tbody {
145
+ tr {
146
+ &:last-child {
147
+ td,
148
+ th {
149
+ border-bottom-width: 0;
150
+ }
151
+ }
152
+ }
153
+ }
154
+
155
+ &.has-border-all {
156
+ border: var(--border);
157
+
158
+ th {
159
+ border-right: var(--border);
160
+ }
161
+
162
+ td {
163
+ &:not(:last-child) {
164
+ border-right: var(--border);
165
+ }
166
+ }
167
+ }
168
+
169
+ &.has-border-inner {
170
+ th {
171
+ &:not(:last-child) {
172
+ border-right: var(--border);
173
+ }
174
+ }
175
+
176
+ td {
177
+ &:not(:last-child) {
178
+ border-right: var(--border);
179
+ }
180
+ }
181
+ }
182
+
183
+ &.is-compact {
184
+ td,
185
+ th {
186
+ padding: math.div(20px, 3) math.div(20px, 3);
187
+ }
188
+ }
189
+
190
+ &.is-fullwidth {
191
+ width: 100%;
192
+ }
193
+
194
+ &.is-striped {
195
+ tbody {
196
+ tr:not(.is-selected) {
197
+ &:nth-child(even) {
198
+ background-color: getColor('neutral-fade');
199
+ }
200
+ }
201
+ }
202
+ }
203
+
204
+ .subtable {
205
+ background-color: getColor('neutral-fade');
206
+ border-radius: var(--radius);
207
+ padding: 25px;
208
+
209
+ @include mobile() {
210
+ padding: 15px;
211
+ }
212
+
213
+ .table {
214
+ background: transparent;
215
+
216
+ tr:not(:first-child) {
217
+ td {
218
+ border-top: var(--border);
219
+ }
220
+ }
221
+
222
+ td {
223
+ border: 0;
224
+
225
+ &:first-child {
226
+ padding-left: 0;
227
+ }
228
+
229
+ &:last-child {
230
+ padding-right: 0;
231
+ }
232
+ }
233
+ }
234
+ }
235
+ }
236
+
237
+ .table-container {
238
+ @include block;
239
+ @include overflow-touch;
240
+
241
+ overflow: auto;
242
+ overflow-y: hidden;
243
+ max-width: 100%;
244
+ }
@@ -0,0 +1,228 @@
1
+ $height-tab-default: 64px;
2
+ $height-arrow-default:48px;
3
+ $height-arrow-small:30px;
4
+
5
+ .tabs {
6
+ @include overflow-touch;
7
+ @include unselectable;
8
+
9
+ align-items: stretch;
10
+ justify-content: space-between;
11
+ font-weight: $weight-normal;
12
+ width: 100%;
13
+ text-align: center;
14
+ overflow: hidden;
15
+ position: relative;
16
+
17
+
18
+ .arrow-prev, .arrow-next {
19
+ z-index: 1;
20
+ height: 44px;
21
+ position: absolute;
22
+ top: 0px;
23
+ transition: opacity 0.3s ease;
24
+ opacity: 1;
25
+ background-color: getColor('background');
26
+ }
27
+
28
+ .arrow-prev {
29
+ left: 0px;
30
+ }
31
+
32
+ .arrow-next {
33
+ right: 0px;
34
+ }
35
+
36
+
37
+ &::-webkit-scrollbar {
38
+ width: 0 !important;
39
+ height: 0 !important;
40
+ scrollbar-width: none !important;
41
+ }
42
+
43
+ &.is-inverted {
44
+ background-color: getColor('font');
45
+
46
+ .tab-list > .tab {
47
+ color: getColor('background') !important;
48
+
49
+ &.is-active {
50
+ border-bottom-color: currentColor;
51
+ }
52
+
53
+ #{$hoverSelector} {
54
+ color: getColor('background') !important;
55
+ cursor: pointer;
56
+ }
57
+
58
+ &:focus-visible {
59
+ border-color: getColor('background');
60
+ }
61
+
62
+ }
63
+
64
+ .arrow-prev, .arrow-next {
65
+ background-color: getColor('font');
66
+ }
67
+
68
+ }
69
+
70
+ &:has(.tab-list.is-aligned-start) {
71
+ text-align: left;
72
+ }
73
+
74
+ &:has(.tab-list.is-aligned-end) {
75
+ text-align: right;
76
+ }
77
+
78
+ .tab-list {
79
+ background-color: transparent;
80
+ height: 48px;
81
+ overflow-x: auto;
82
+ white-space: nowrap;
83
+ overflow-y: hidden;
84
+ max-width: 100%;
85
+
86
+ &::-webkit-scrollbar {
87
+ width: 0 !important;
88
+ height: 0 !important;
89
+ scrollbar-width: none !important;
90
+ }
91
+
92
+ &.is-fullwidth {
93
+ @include desktop {
94
+ > * {
95
+ flex-grow: 1;
96
+ flex-shrink: 0;
97
+ }
98
+ }
99
+ }
100
+
101
+ &.is-clipped {
102
+ box-shadow: none;
103
+ }
104
+
105
+ @include mobile {
106
+ justify-content: flex-start;
107
+ }
108
+
109
+ &:has(.tab .icon) {
110
+ height: 64px;
111
+ .arrow-prev, .arrow-next {
112
+ height: 60px;
113
+ }
114
+ }
115
+
116
+ > .tab {
117
+ display: inline-block;
118
+ line-height: normal;
119
+ font-family: $family-primary;
120
+ height: calc(100% - 4px);
121
+ background-color: transparent;
122
+ color: getColor('font');
123
+ text-decoration: none;
124
+ outline: none;
125
+ padding: 12px 24px;
126
+ font-size: $text-16;
127
+ border: 0px solid transparent;
128
+ border-bottom: 1px solid getColor('neutral');
129
+
130
+ .tab-icon {
131
+ margin-top: 2px;
132
+ }
133
+
134
+ &.is-active {
135
+ color: getColor('main');
136
+ position: relative;
137
+ border-bottom-color: getColor('main');
138
+ font-weight: $weight-bold;
139
+ border-bottom-width: 2px;
140
+ }
141
+
142
+ &:hover:not([disabled]) {
143
+ color: getColor('main');
144
+ border-bottom-color: currentColor;
145
+ cursor: pointer;
146
+ border-bottom-width: 2px;
147
+
148
+ .icon.is-small [class^=tri-]::before, .icon.is-small [class*=" tri-"]::before {
149
+ font-size: 22px !important;
150
+ background-color: currentColor;
151
+ }
152
+ }
153
+
154
+ &:focus-visible {
155
+ border-color: currentColor;
156
+ color: getColor('main');
157
+ }
158
+
159
+ .icon {
160
+ height: 0;
161
+ }
162
+
163
+ .icon.is-small, .icon.is-small {
164
+ font-size: 22px;
165
+ }
166
+
167
+ &[disabled], &[aria-disabled=true] {
168
+ background-color: transparent !important;
169
+ border-bottom-color: getColor('neutral') !important;
170
+ &.is-active{
171
+ border-bottom-color: currentColor !important;
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ &.is-fullwidth .tab-list {
178
+ display: flex;
179
+ > .tab {
180
+ flex:1;
181
+ }
182
+ }
183
+
184
+ &.is-small{
185
+
186
+ .tab-list {
187
+ & > .tab {
188
+ font-size: $text-14 ;
189
+ padding: 12px 16px;
190
+ }
191
+ }
192
+ }
193
+
194
+
195
+ .tab-panels {
196
+ padding-top: $spacing-3;
197
+ padding-bottom: $spacing-3;
198
+
199
+ .tab-panel {
200
+ transition: opacity 2s ease-in-out;
201
+ transition-delay: 1s;
202
+
203
+ * {
204
+ -webkit-user-select: text;
205
+ -moz-user-select: text;
206
+ -ms-user-select: text;
207
+ user-select: text;
208
+ }
209
+
210
+ &:not(.is-active) {
211
+ display: none;
212
+ }
213
+
214
+ &.is-active {
215
+ animation: fade-in 250ms;
216
+ }
217
+
218
+ @keyframes fade-in {
219
+ from {
220
+ opacity: 0;
221
+ }
222
+ to {
223
+ opacity: 1;
224
+ }
225
+ }
226
+ }
227
+ }
228
+ }