@carbon/styles 0.8.0-rc.0 → 0.10.0-rc.0
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/package.json +9 -9
- package/scss/_feature-flags.scss +8 -1
- package/scss/components/button/_button.scss +2 -112
- package/scss/components/button/_tokens.scss +2 -2
- package/scss/components/checkbox/_checkbox.scss +3 -0
- package/scss/components/code-snippet/_code-snippet.scss +3 -3
- package/scss/components/data-table/_data-table.scss +1 -0
- package/scss/components/data-table/expandable/_data-table-expandable.scss +2 -2
- package/scss/components/date-picker/_date-picker.scss +1 -1
- package/scss/components/date-picker/_flatpickr.scss +39 -38
- package/scss/components/dropdown/_dropdown.scss +4 -4
- package/scss/components/form/_form.scss +7 -4
- package/scss/components/list-box/_list-box.scss +4 -4
- package/scss/components/notification/_inline-notification.scss +2 -2
- package/scss/components/notification/_toast-notification.scss +3 -3
- package/scss/components/number-input/_number-input.scss +3 -3
- package/scss/components/overflow-menu/_overflow-menu.scss +5 -4
- package/scss/components/popover/_popover.scss +241 -199
- package/scss/components/radio-button/_radio-button.scss +11 -9
- package/scss/components/search/_search.scss +7 -7
- package/scss/components/structured-list/_structured-list.scss +3 -3
- package/scss/components/tabs/_tabs.scss +111 -551
- package/scss/components/tile/_tile.scss +4 -3
- package/scss/components/toggle/_toggle.scss +80 -18
- package/scss/components/tooltip/_index.scss +1 -0
- package/scss/components/tooltip/_tooltip.scss +38 -725
- package/scss/components/treeview/_treeview.scss +17 -17
|
@@ -33,437 +33,8 @@
|
|
|
33
33
|
/// @access public
|
|
34
34
|
/// @group tabs
|
|
35
35
|
@mixin tabs {
|
|
36
|
-
.#{$prefix}--tabs {
|
|
37
|
-
@include reset;
|
|
38
|
-
@include type-style('body-short-01');
|
|
39
|
-
|
|
40
|
-
position: relative;
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: auto;
|
|
43
|
-
color: $text-primary;
|
|
44
|
-
@include breakpoint(md) {
|
|
45
|
-
min-height: rem(40px);
|
|
46
|
-
background: none;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.#{$prefix}--tabs--container {
|
|
51
|
-
@include breakpoint(md) {
|
|
52
|
-
min-height: rem(48px);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.#{$prefix}--tabs-trigger {
|
|
57
|
-
display: flex;
|
|
58
|
-
height: rem(40px);
|
|
59
|
-
align-items: center;
|
|
60
|
-
justify-content: space-between;
|
|
61
|
-
padding: 0 $spacing-09 0 $spacing-05;
|
|
62
|
-
border-bottom: 1px solid $border-strong;
|
|
63
|
-
background-color: $layer;
|
|
64
|
-
color: $text-primary;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
outline: 2px solid transparent;
|
|
67
|
-
|
|
68
|
-
@include breakpoint(md) {
|
|
69
|
-
display: none;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.#{$prefix}--tabs-trigger:focus,
|
|
74
|
-
.#{$prefix}--tabs-trigger:active {
|
|
75
|
-
@include focus-outline('outline');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.#{$prefix}--tabs-trigger svg {
|
|
79
|
-
position: absolute;
|
|
80
|
-
right: $spacing-05;
|
|
81
|
-
fill: $border-inverse;
|
|
82
|
-
transition: transform $duration-fast-01 motion(standard, productive);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.#{$prefix}--tabs-trigger--open:focus,
|
|
86
|
-
.#{$prefix}--tabs-trigger--open:active {
|
|
87
|
-
@include focus-outline('reset');
|
|
88
|
-
|
|
89
|
-
transition: outline $duration-fast-01 motion(standard, productive);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.#{$prefix}--tabs-trigger--open {
|
|
93
|
-
background: $layer-accent;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.#{$prefix}--tabs-trigger--open svg {
|
|
97
|
-
@include rotate(-180deg, $duration-fast-01, 50% 45%);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// There is only a difference in tab color when in mobile/dropdown view
|
|
101
|
-
.#{$prefix}--tabs--light.#{$prefix}--tabs-trigger {
|
|
102
|
-
background-color: $field-02;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.#{$prefix}--tabs-trigger-text {
|
|
106
|
-
overflow: hidden;
|
|
107
|
-
padding-top: 2px;
|
|
108
|
-
color: $text-primary;
|
|
109
|
-
font-weight: 400;
|
|
110
|
-
text-decoration: none;
|
|
111
|
-
text-overflow: ellipsis;
|
|
112
|
-
white-space: nowrap;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.#{$prefix}--tabs-trigger-text:hover {
|
|
116
|
-
color: $text-primary;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.#{$prefix}--tabs-trigger-text:focus {
|
|
120
|
-
outline: none;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.#{$prefix}--tabs__nav {
|
|
124
|
-
@include box-shadow;
|
|
125
|
-
|
|
126
|
-
position: absolute;
|
|
127
|
-
z-index: z('dropdown');
|
|
128
|
-
display: flex;
|
|
129
|
-
width: 100%;
|
|
130
|
-
max-height: 600px;
|
|
131
|
-
flex-direction: column;
|
|
132
|
-
padding: 0;
|
|
133
|
-
margin: 0;
|
|
134
|
-
background: $layer;
|
|
135
|
-
list-style: none;
|
|
136
|
-
transition: max-height $duration-fast-01 motion(standard, productive);
|
|
137
|
-
|
|
138
|
-
@include breakpoint(md) {
|
|
139
|
-
z-index: auto;
|
|
140
|
-
width: auto;
|
|
141
|
-
flex-direction: row;
|
|
142
|
-
background: none;
|
|
143
|
-
box-shadow: none;
|
|
144
|
-
transition: inherit;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.#{$prefix}--tabs__nav--hidden {
|
|
149
|
-
overflow: hidden;
|
|
150
|
-
max-height: 0;
|
|
151
|
-
transition: max-height $duration-fast-01 motion(standard, productive);
|
|
152
|
-
|
|
153
|
-
@include breakpoint(md) {
|
|
154
|
-
display: flex;
|
|
155
|
-
max-width: 100%;
|
|
156
|
-
max-height: none;
|
|
157
|
-
overflow-x: auto;
|
|
158
|
-
transition: inherit;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
//-----------------------------
|
|
163
|
-
// Item
|
|
164
|
-
//-----------------------------
|
|
165
|
-
.#{$prefix}--tabs__nav-item {
|
|
166
|
-
@include reset;
|
|
167
|
-
|
|
168
|
-
display: flex;
|
|
169
|
-
width: 100%;
|
|
170
|
-
height: rem(40px);
|
|
171
|
-
padding: 0;
|
|
172
|
-
background-color: $layer;
|
|
173
|
-
cursor: pointer;
|
|
174
|
-
transition: background-color $duration-fast-01 motion(standard, productive);
|
|
175
|
-
|
|
176
|
-
@include breakpoint(md) {
|
|
177
|
-
height: auto;
|
|
178
|
-
background: transparent;
|
|
179
|
-
|
|
180
|
-
+ .#{$prefix}--tabs__nav-item {
|
|
181
|
-
margin-left: rem(1px);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.#{$prefix}--tabs--container .#{$prefix}--tabs__nav-item {
|
|
187
|
-
@include breakpoint(md) {
|
|
188
|
-
background-color: $layer-accent;
|
|
189
|
-
|
|
190
|
-
+ .#{$prefix}--tabs__nav-item {
|
|
191
|
-
margin-left: 0;
|
|
192
|
-
// Draws the border without affecting the inner-content
|
|
193
|
-
box-shadow: -1px 0 0 0 $border-strong;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
+ .#{$prefix}--tabs__nav-item.#{$prefix}--tabs__nav-item--selected,
|
|
197
|
-
&.#{$prefix}--tabs__nav-item--selected + .#{$prefix}--tabs__nav-item {
|
|
198
|
-
box-shadow: none;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.#{$prefix}--tabs__nav-item .#{$prefix}--tabs__nav-link {
|
|
204
|
-
transition: color $duration-fast-01 motion(standard, productive),
|
|
205
|
-
border-bottom-color $duration-fast-01 motion(standard, productive),
|
|
206
|
-
outline $duration-fast-01 motion(standard, productive);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
//-----------------------------
|
|
210
|
-
// Item Hover
|
|
211
|
-
//-----------------------------
|
|
212
|
-
.#{$prefix}--tabs__nav-item:hover:not(.#{$prefix}--tabs__nav-item--selected) {
|
|
213
|
-
@include breakpoint(md) {
|
|
214
|
-
background: transparent;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.#{$prefix}--tabs__nav-item:hover:not(.#{$prefix}--tabs__nav-item--disabled) {
|
|
219
|
-
background-color: $layer-hover;
|
|
220
|
-
box-shadow: 0 -1px 0 $layer-hover;
|
|
221
|
-
|
|
222
|
-
@include breakpoint(md) {
|
|
223
|
-
background-color: transparent;
|
|
224
|
-
|
|
225
|
-
+ .#{$prefix}--tabs__nav-item {
|
|
226
|
-
box-shadow: none;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.#{$prefix}--tabs--container
|
|
232
|
-
.#{$prefix}--tabs__nav-item:hover:not(.#{$prefix}--tabs__nav-item--disabled) {
|
|
233
|
-
@include breakpoint(md) {
|
|
234
|
-
background-color: $layer-selected-hover;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
//---------------------------------------------
|
|
239
|
-
// Item Disabled
|
|
240
|
-
//---------------------------------------------
|
|
241
|
-
.#{$prefix}--tabs__nav-item--disabled,
|
|
242
|
-
.#{$prefix}--tabs__nav-item--disabled:hover {
|
|
243
|
-
cursor: not-allowed;
|
|
244
|
-
outline: none;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.#{$prefix}--tabs--container
|
|
248
|
-
.#{$prefix}--tabs__nav-item.#{$prefix}--tabs__nav-item--disabled,
|
|
249
|
-
.#{$prefix}--tabs--container
|
|
250
|
-
.#{$prefix}--tabs__nav-item.#{$prefix}--tabs__nav-item--disabled:hover {
|
|
251
|
-
@include breakpoint(md) {
|
|
252
|
-
background-color: button.$button-disabled;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.#{$prefix}--tabs--container
|
|
257
|
-
.#{$prefix}--tabs__nav-item--disabled
|
|
258
|
-
.#{$prefix}--tabs__nav-link {
|
|
259
|
-
@include breakpoint(md) {
|
|
260
|
-
border-bottom: none;
|
|
261
|
-
color: $text-on-color-disabled;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
//-----------------------------
|
|
266
|
-
// Item Selected
|
|
267
|
-
//-----------------------------
|
|
268
|
-
.#{$prefix}--tabs__nav-item--selected:not(.#{$prefix}--tabs__nav-item--disabled) {
|
|
269
|
-
display: none;
|
|
270
|
-
border: none;
|
|
271
|
-
transition: color $duration-fast-01 motion(standard, productive);
|
|
272
|
-
|
|
273
|
-
@include breakpoint(md) {
|
|
274
|
-
display: flex;
|
|
275
|
-
.#{$prefix}--tabs__nav-link,
|
|
276
|
-
.#{$prefix}--tabs__nav-link:focus,
|
|
277
|
-
.#{$prefix}--tabs__nav-link:active {
|
|
278
|
-
@include type-style('productive-heading-01');
|
|
279
|
-
|
|
280
|
-
border-bottom: 2px solid $border-interactive;
|
|
281
|
-
color: $text-primary;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.#{$prefix}--tabs--container
|
|
287
|
-
.#{$prefix}--tabs__nav-item--selected:not(.#{$prefix}--tabs__nav-item--disabled),
|
|
288
|
-
.#{$prefix}--tabs--container
|
|
289
|
-
.#{$prefix}--tabs__nav-item--selected:hover:not(.#{$prefix}--tabs__nav-item--disabled) {
|
|
290
|
-
@include breakpoint(md) {
|
|
291
|
-
background-color: $layer;
|
|
292
|
-
|
|
293
|
-
.#{$prefix}--tabs__nav-link {
|
|
294
|
-
padding: $spacing-03 $spacing-05;
|
|
295
|
-
border-bottom: none;
|
|
296
|
-
box-shadow: inset 0 2px 0 0 $border-interactive;
|
|
297
|
-
// height - vertical padding
|
|
298
|
-
// Draws the border without affecting the inner-content
|
|
299
|
-
line-height: calc(#{rem(48px)} - (#{$spacing-03} * 2));
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.#{$prefix}--tabs__nav-link:focus,
|
|
303
|
-
.#{$prefix}--tabs__nav-link:active {
|
|
304
|
-
box-shadow: none;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
//-----------------------------
|
|
310
|
-
// Link
|
|
311
|
-
//-----------------------------
|
|
312
|
-
a.#{$prefix}--tabs__nav-link {
|
|
313
|
-
@include focus-outline('reset');
|
|
314
|
-
|
|
315
|
-
display: inline-block;
|
|
316
|
-
overflow: hidden;
|
|
317
|
-
width: calc(100% - 32px);
|
|
318
|
-
height: rem(40px);
|
|
319
|
-
padding: $spacing-04 0;
|
|
320
|
-
border-bottom: 1px solid $border-subtle;
|
|
321
|
-
margin: 0 $spacing-05;
|
|
322
|
-
color: $text-secondary;
|
|
323
|
-
font-weight: 400;
|
|
324
|
-
line-height: 1rem;
|
|
325
|
-
text-decoration: none;
|
|
326
|
-
text-overflow: ellipsis;
|
|
327
|
-
transition: border $duration-fast-01 motion(standard, productive),
|
|
328
|
-
outline $duration-fast-01 motion(standard, productive);
|
|
329
|
-
white-space: nowrap;
|
|
330
|
-
|
|
331
|
-
&:focus,
|
|
332
|
-
&:active {
|
|
333
|
-
@include focus-outline('outline');
|
|
334
|
-
|
|
335
|
-
width: 100%;
|
|
336
|
-
padding-left: 16px;
|
|
337
|
-
margin: 0;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
@include breakpoint(md) {
|
|
341
|
-
width: rem(160px);
|
|
342
|
-
padding: $spacing-04 $spacing-05 $spacing-03;
|
|
343
|
-
border-bottom: $tab-underline-color;
|
|
344
|
-
margin: 0;
|
|
345
|
-
line-height: inherit;
|
|
346
|
-
|
|
347
|
-
&:focus,
|
|
348
|
-
&:active {
|
|
349
|
-
width: rem(160px);
|
|
350
|
-
border-bottom: 2px;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.#{$prefix}--tabs--container a.#{$prefix}--tabs__nav-link {
|
|
356
|
-
@include breakpoint(md) {
|
|
357
|
-
height: rem(48px);
|
|
358
|
-
padding: $spacing-03 $spacing-05;
|
|
359
|
-
border-bottom: none;
|
|
360
|
-
// Height - vertical padding
|
|
361
|
-
line-height: calc(#{rem(48px)} - (#{$spacing-03} * 2));
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
//-----------------------------
|
|
366
|
-
// Link Hover
|
|
367
|
-
//-----------------------------
|
|
368
|
-
.#{$prefix}--tabs__nav-item:hover:not(.#{$prefix}--tabs__nav-item--selected):not(.#{$prefix}--tabs__nav-item--disabled)
|
|
369
|
-
.#{$prefix}--tabs__nav-link {
|
|
370
|
-
color: $text-primary;
|
|
371
|
-
@include breakpoint(md) {
|
|
372
|
-
border-bottom: $tab-underline-color-hover;
|
|
373
|
-
color: $text-primary;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.#{$prefix}--tabs--container
|
|
378
|
-
.#{$prefix}--tabs__nav-item:hover:not(.#{$prefix}--tabs__nav-item--selected):not(.#{$prefix}--tabs__nav-item--disabled)
|
|
379
|
-
.#{$prefix}--tabs__nav-link {
|
|
380
|
-
@include breakpoint(md) {
|
|
381
|
-
border-bottom: none;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
//-----------------------------
|
|
386
|
-
// Link Disabled
|
|
387
|
-
//-----------------------------
|
|
388
|
-
.#{$prefix}--tabs__nav-item--disabled .#{$prefix}--tabs__nav-link {
|
|
389
|
-
border-bottom: $tab-underline-disabled;
|
|
390
|
-
color: $tab-text-disabled;
|
|
391
|
-
pointer-events: none;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.#{$prefix}--tabs__nav-item--disabled:hover .#{$prefix}--tabs__nav-link {
|
|
395
|
-
border-bottom: $tab-underline-disabled;
|
|
396
|
-
cursor: no-drop;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.#{$prefix}--tabs__nav-item--disabled .#{$prefix}--tabs__nav-link:focus,
|
|
400
|
-
.#{$prefix}--tabs__nav-item--disabled a.#{$prefix}--tabs__nav-link:active {
|
|
401
|
-
border-bottom: $tab-underline-disabled;
|
|
402
|
-
outline: none;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
//-----------------------------
|
|
406
|
-
// Link Focus
|
|
407
|
-
//-----------------------------
|
|
408
|
-
.#{$prefix}--tabs__nav-item:not(.#{$prefix}--tabs__nav-item--selected):not(.#{$prefix}--tabs__nav-item--disabled):not(.#{$prefix}--tabs__nav-item--selected)
|
|
409
|
-
.#{$prefix}--tabs__nav-link:focus,
|
|
410
|
-
.#{$prefix}--tabs__nav-item:not(.#{$prefix}--tabs__nav-item--selected):not(.#{$prefix}--tabs__nav-item--disabled):not(.#{$prefix}--tabs__nav-item--selected)
|
|
411
|
-
a.#{$prefix}--tabs__nav-link:active {
|
|
412
|
-
color: $text-secondary;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
//-----------------------------
|
|
416
|
-
// Tab Content Container
|
|
417
|
-
//-----------------------------
|
|
418
|
-
.#{$prefix}--tab-content {
|
|
419
|
-
padding: $spacing-05;
|
|
420
|
-
|
|
421
|
-
&:focus {
|
|
422
|
-
@include focus-outline('outline');
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
//-----------------------------
|
|
427
|
-
// Skeleton state
|
|
428
|
-
//-----------------------------
|
|
429
|
-
.#{$prefix}--tabs.#{$prefix}--skeleton {
|
|
430
|
-
cursor: default;
|
|
431
|
-
pointer-events: none;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.#{$prefix}--skeleton.#{$prefix}--tabs--scrollable:not(.#{$prefix}--tabs--scrollable--container)
|
|
435
|
-
.#{$prefix}--tabs--scrollable__nav-item {
|
|
436
|
-
border-bottom: 2px solid $skeleton-element;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.#{$prefix}--tabs.#{$prefix}--skeleton .#{$prefix}--tabs__nav-link {
|
|
440
|
-
display: flex;
|
|
441
|
-
width: 10rem;
|
|
442
|
-
height: 100%;
|
|
443
|
-
align-items: center;
|
|
444
|
-
padding: 0 1rem;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
.#{$prefix}--tabs.#{$prefix}--skeleton .#{$prefix}--tabs__nav-link span {
|
|
448
|
-
@include skeleton;
|
|
449
|
-
|
|
450
|
-
display: block;
|
|
451
|
-
width: 100%;
|
|
452
|
-
height: rem(14px);
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
.#{$prefix}--tabs.#{$prefix}--skeleton .#{$prefix}--tabs-trigger {
|
|
456
|
-
@include skeleton;
|
|
457
|
-
|
|
458
|
-
width: rem(100px);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.#{$prefix}--tabs.#{$prefix}--skeleton .#{$prefix}--tabs-trigger svg {
|
|
462
|
-
@include visually-hidden;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
36
|
// TODO: remove namespace and suffix in next major release
|
|
466
|
-
.#{$prefix}--tabs
|
|
37
|
+
.#{$prefix}--tabs {
|
|
467
38
|
@include reset;
|
|
468
39
|
@include type-style('body-short-01');
|
|
469
40
|
|
|
@@ -473,11 +44,11 @@
|
|
|
473
44
|
min-height: rem(40px);
|
|
474
45
|
color: $text-primary;
|
|
475
46
|
|
|
476
|
-
&.#{$prefix}--tabs--
|
|
47
|
+
&.#{$prefix}--tabs--container {
|
|
477
48
|
min-height: rem(48px);
|
|
478
49
|
}
|
|
479
50
|
|
|
480
|
-
.#{$prefix}--
|
|
51
|
+
.#{$prefix}--tabs__nav {
|
|
481
52
|
display: flex;
|
|
482
53
|
overflow: auto hidden;
|
|
483
54
|
width: auto;
|
|
@@ -516,23 +87,19 @@
|
|
|
516
87
|
background-image: linear-gradient(to right, transparent, $background);
|
|
517
88
|
}
|
|
518
89
|
|
|
519
|
-
.#{$prefix}--tabs--
|
|
520
|
-
.#{$prefix}--tabs__overflow-indicator--left {
|
|
90
|
+
.#{$prefix}--tabs--light .#{$prefix}--tabs__overflow-indicator--left {
|
|
521
91
|
background-image: linear-gradient(to left, transparent, $layer);
|
|
522
92
|
}
|
|
523
93
|
|
|
524
|
-
.#{$prefix}--tabs--
|
|
525
|
-
.#{$prefix}--tabs__overflow-indicator--right {
|
|
94
|
+
.#{$prefix}--tabs--light .#{$prefix}--tabs__overflow-indicator--right {
|
|
526
95
|
background-image: linear-gradient(to right, transparent, $layer);
|
|
527
96
|
}
|
|
528
97
|
|
|
529
|
-
&.#{$prefix}--tabs--
|
|
530
|
-
.#{$prefix}--tabs__overflow-indicator--left {
|
|
98
|
+
&.#{$prefix}--tabs--container .#{$prefix}--tabs__overflow-indicator--left {
|
|
531
99
|
background-image: linear-gradient(to left, transparent, $layer-accent);
|
|
532
100
|
}
|
|
533
101
|
|
|
534
|
-
&.#{$prefix}--tabs--
|
|
535
|
-
.#{$prefix}--tabs__overflow-indicator--right {
|
|
102
|
+
&.#{$prefix}--tabs--container .#{$prefix}--tabs__overflow-indicator--right {
|
|
536
103
|
background-image: linear-gradient(to right, transparent, $layer-accent);
|
|
537
104
|
}
|
|
538
105
|
|
|
@@ -557,7 +124,7 @@
|
|
|
557
124
|
);
|
|
558
125
|
}
|
|
559
126
|
|
|
560
|
-
&.#{$prefix}--tabs--
|
|
127
|
+
&.#{$prefix}--tabs--container
|
|
561
128
|
.#{$prefix}--tabs__overflow-indicator--left {
|
|
562
129
|
background-image: linear-gradient(
|
|
563
130
|
to left,
|
|
@@ -566,7 +133,7 @@
|
|
|
566
133
|
);
|
|
567
134
|
}
|
|
568
135
|
|
|
569
|
-
&.#{$prefix}--tabs--
|
|
136
|
+
&.#{$prefix}--tabs--container
|
|
570
137
|
.#{$prefix}--tabs__overflow-indicator--right {
|
|
571
138
|
background-image: linear-gradient(
|
|
572
139
|
to right,
|
|
@@ -595,8 +162,7 @@
|
|
|
595
162
|
display: none;
|
|
596
163
|
}
|
|
597
164
|
|
|
598
|
-
&.#{$prefix}--tabs--
|
|
599
|
-
.#{$prefix}--tab--overflow-nav-button {
|
|
165
|
+
&.#{$prefix}--tabs--container .#{$prefix}--tab--overflow-nav-button {
|
|
600
166
|
width: $spacing-09;
|
|
601
167
|
margin: 0;
|
|
602
168
|
background-color: $layer-accent;
|
|
@@ -609,7 +175,7 @@
|
|
|
609
175
|
//-----------------------------
|
|
610
176
|
// Item
|
|
611
177
|
//-----------------------------
|
|
612
|
-
.#{$prefix}--
|
|
178
|
+
.#{$prefix}--tabs__nav-item {
|
|
613
179
|
@include reset;
|
|
614
180
|
|
|
615
181
|
display: flex;
|
|
@@ -619,35 +185,32 @@
|
|
|
619
185
|
motion(standard, productive);
|
|
620
186
|
}
|
|
621
187
|
|
|
622
|
-
.#{$prefix}--
|
|
623
|
-
+ .#{$prefix}--tabs--scrollable__nav-item {
|
|
188
|
+
.#{$prefix}--tabs__nav-item + .#{$prefix}--tabs__nav-item {
|
|
624
189
|
margin-left: rem(1px);
|
|
625
190
|
}
|
|
626
191
|
|
|
627
|
-
&.#{$prefix}--tabs--
|
|
628
|
-
.#{$prefix}--tabs--scrollable__nav-item {
|
|
192
|
+
&.#{$prefix}--tabs--container .#{$prefix}--tabs__nav-item {
|
|
629
193
|
background-color: $layer-accent;
|
|
630
194
|
}
|
|
631
195
|
|
|
632
|
-
&.#{$prefix}--tabs--
|
|
633
|
-
.#{$prefix}--
|
|
634
|
-
+ .#{$prefix}--
|
|
196
|
+
&.#{$prefix}--tabs--container
|
|
197
|
+
.#{$prefix}--tabs__nav-item
|
|
198
|
+
+ .#{$prefix}--tabs__nav-item {
|
|
635
199
|
margin-left: 0;
|
|
636
200
|
// Draws the border without affecting the inner-content
|
|
637
201
|
box-shadow: rem(-1px) 0 0 0 $border-strong;
|
|
638
202
|
}
|
|
639
203
|
|
|
640
|
-
&.#{$prefix}--tabs--
|
|
641
|
-
.#{$prefix}--
|
|
642
|
-
+ .#{$prefix}--
|
|
643
|
-
&.#{$prefix}--tabs--
|
|
644
|
-
.#{$prefix}--
|
|
645
|
-
+ .#{$prefix}--
|
|
204
|
+
&.#{$prefix}--tabs--container
|
|
205
|
+
.#{$prefix}--tabs__nav-item
|
|
206
|
+
+ .#{$prefix}--tabs__nav-item.#{$prefix}--tabs__nav-item--selected,
|
|
207
|
+
&.#{$prefix}--tabs--container
|
|
208
|
+
.#{$prefix}--tabs__nav-item.#{$prefix}--tabs__nav-item--selected
|
|
209
|
+
+ .#{$prefix}--tabs__nav-item {
|
|
646
210
|
box-shadow: none;
|
|
647
211
|
}
|
|
648
212
|
|
|
649
|
-
.#{$prefix}--
|
|
650
|
-
.#{$prefix}--tabs--scrollable__nav-link {
|
|
213
|
+
.#{$prefix}--tabs__nav-item .#{$prefix}--tabs__nav-link {
|
|
651
214
|
transition: color $duration-fast-01 motion(standard, productive),
|
|
652
215
|
border-bottom-color $duration-fast-01 motion(standard, productive),
|
|
653
216
|
outline $duration-fast-01 motion(standard, productive);
|
|
@@ -656,85 +219,82 @@
|
|
|
656
219
|
//-----------------------------
|
|
657
220
|
// Item Hover
|
|
658
221
|
//-----------------------------
|
|
659
|
-
&.#{$prefix}--tabs--
|
|
660
|
-
.#{$prefix}--tabs--scrollable__nav-item:hover {
|
|
222
|
+
&.#{$prefix}--tabs--container .#{$prefix}--tabs__nav-item:hover {
|
|
661
223
|
background-color: $layer-selected-hover;
|
|
662
224
|
}
|
|
663
225
|
|
|
664
226
|
//---------------------------------------------
|
|
665
227
|
// Item Disabled
|
|
666
228
|
//---------------------------------------------
|
|
667
|
-
.#{$prefix}--
|
|
668
|
-
.#{$prefix}--
|
|
229
|
+
.#{$prefix}--tabs__nav-item--disabled,
|
|
230
|
+
.#{$prefix}--tabs__nav-item--disabled:hover {
|
|
669
231
|
background-color: transparent;
|
|
670
232
|
cursor: not-allowed;
|
|
671
233
|
outline: none;
|
|
672
234
|
}
|
|
673
235
|
|
|
674
|
-
&.#{$prefix}--tabs--
|
|
675
|
-
.#{$prefix}--
|
|
676
|
-
&.#{$prefix}--tabs--
|
|
677
|
-
.#{$prefix}--
|
|
236
|
+
&.#{$prefix}--tabs--container
|
|
237
|
+
.#{$prefix}--tabs__nav-item.#{$prefix}--tabs__nav-item--disabled,
|
|
238
|
+
&.#{$prefix}--tabs--container
|
|
239
|
+
.#{$prefix}--tabs__nav-item.#{$prefix}--tabs__nav-item--disabled:hover {
|
|
678
240
|
background-color: button.$button-disabled;
|
|
679
241
|
}
|
|
680
242
|
|
|
681
243
|
//-----------------------------
|
|
682
244
|
// Item Selected
|
|
683
245
|
//-----------------------------
|
|
684
|
-
.#{$prefix}--
|
|
246
|
+
.#{$prefix}--tabs__nav-item--selected {
|
|
685
247
|
transition: color $duration-fast-01 motion(standard, productive);
|
|
686
248
|
}
|
|
687
249
|
|
|
688
|
-
.#{$prefix}--
|
|
689
|
-
|
|
690
|
-
.#{$prefix}--
|
|
691
|
-
.#{$prefix}--tabs--scrollable__nav-link:focus,
|
|
692
|
-
.#{$prefix}--tabs--scrollable__nav-item--selected
|
|
693
|
-
.#{$prefix}--tabs--scrollable__nav-link:active {
|
|
250
|
+
.#{$prefix}--tabs__nav-item--selected .#{$prefix}--tabs__nav-link,
|
|
251
|
+
.#{$prefix}--tabs__nav-item--selected .#{$prefix}--tabs__nav-link:focus,
|
|
252
|
+
.#{$prefix}--tabs__nav-item--selected .#{$prefix}--tabs__nav-link:active {
|
|
694
253
|
@include type-style('productive-heading-01');
|
|
695
254
|
|
|
696
255
|
border-bottom: 2px solid $border-interactive;
|
|
697
256
|
color: $text-primary;
|
|
698
257
|
}
|
|
699
258
|
|
|
700
|
-
&.#{$prefix}--tabs--
|
|
701
|
-
|
|
702
|
-
&.#{$prefix}--tabs--scrollable--container
|
|
703
|
-
.#{$prefix}--tabs--scrollable__nav-item--selected:hover {
|
|
259
|
+
&.#{$prefix}--tabs--container .#{$prefix}--tabs__nav-item--selected,
|
|
260
|
+
&.#{$prefix}--tabs--container .#{$prefix}--tabs__nav-item--selected:hover {
|
|
704
261
|
background-color: $layer;
|
|
705
262
|
|
|
706
|
-
.#{$prefix}--
|
|
707
|
-
.#{$prefix}--
|
|
263
|
+
.#{$prefix}--tabs__nav-link:focus,
|
|
264
|
+
.#{$prefix}--tabs__nav-link:active {
|
|
708
265
|
box-shadow: none;
|
|
709
266
|
}
|
|
710
267
|
}
|
|
711
268
|
|
|
712
|
-
&.#{$prefix}--tabs--
|
|
713
|
-
.#{$prefix}--
|
|
714
|
-
.#{$prefix}--
|
|
269
|
+
&.#{$prefix}--tabs--container
|
|
270
|
+
.#{$prefix}--tabs__nav-item--selected
|
|
271
|
+
.#{$prefix}--tabs__nav-link {
|
|
715
272
|
// Draws the border without affecting the inner-content
|
|
716
273
|
box-shadow: inset 0 2px 0 0 $border-interactive;
|
|
717
274
|
// height - vertical padding
|
|
718
275
|
line-height: calc(#{rem(48px)} - (#{$spacing-03} * 2));
|
|
719
276
|
}
|
|
720
277
|
|
|
721
|
-
&.#{$prefix}--tabs--
|
|
722
|
-
.#{$prefix}--
|
|
723
|
-
&.#{$prefix}--tabs--
|
|
724
|
-
.#{$prefix}--
|
|
278
|
+
&.#{$prefix}--tabs--light.#{$prefix}--tabs--container
|
|
279
|
+
.#{$prefix}--tabs__nav-item--selected,
|
|
280
|
+
&.#{$prefix}--tabs--light.#{$prefix}--tabs--container
|
|
281
|
+
.#{$prefix}--tabs__nav-item--selected:hover {
|
|
725
282
|
background-color: $background;
|
|
726
283
|
}
|
|
727
284
|
|
|
728
285
|
//-----------------------------
|
|
729
286
|
// Link
|
|
730
287
|
//-----------------------------
|
|
731
|
-
.#{$prefix}--
|
|
288
|
+
.#{$prefix}--tabs__nav-link {
|
|
732
289
|
@include button-reset.reset($width: false);
|
|
733
290
|
@include focus-outline('reset');
|
|
734
291
|
@include type-style('body-short-01');
|
|
735
292
|
|
|
293
|
+
@if not feature-flag-enabled('enable-v11-release') {
|
|
294
|
+
width: rem(160px);
|
|
295
|
+
}
|
|
296
|
+
|
|
736
297
|
overflow: hidden;
|
|
737
|
-
width: rem(160px);
|
|
738
298
|
padding: $spacing-04 $spacing-05 $spacing-03;
|
|
739
299
|
border-bottom: $tab-underline-color;
|
|
740
300
|
color: $text-secondary;
|
|
@@ -751,8 +311,7 @@
|
|
|
751
311
|
}
|
|
752
312
|
}
|
|
753
313
|
|
|
754
|
-
&.#{$prefix}--tabs--
|
|
755
|
-
.#{$prefix}--tabs--scrollable__nav-link {
|
|
314
|
+
&.#{$prefix}--tabs--container .#{$prefix}--tabs__nav-link {
|
|
756
315
|
height: rem(48px);
|
|
757
316
|
padding: $spacing-03 $spacing-05;
|
|
758
317
|
border-bottom: 0;
|
|
@@ -763,116 +322,117 @@
|
|
|
763
322
|
//-----------------------------
|
|
764
323
|
// Link Hover
|
|
765
324
|
//-----------------------------
|
|
766
|
-
.#{$prefix}--
|
|
767
|
-
.#{$prefix}--tabs--scrollable__nav-link {
|
|
325
|
+
.#{$prefix}--tabs__nav-item:hover .#{$prefix}--tabs__nav-link {
|
|
768
326
|
border-bottom: $tab-underline-color-hover;
|
|
769
327
|
color: $text-primary;
|
|
770
328
|
}
|
|
771
329
|
|
|
772
|
-
&.#{$prefix}--tabs--
|
|
773
|
-
.#{$prefix}--
|
|
774
|
-
.#{$prefix}--
|
|
330
|
+
&.#{$prefix}--tabs--container
|
|
331
|
+
.#{$prefix}--tabs__nav-item
|
|
332
|
+
.#{$prefix}--tabs__nav-link {
|
|
775
333
|
border-bottom: none;
|
|
776
334
|
}
|
|
777
335
|
|
|
778
336
|
//-----------------------------
|
|
779
337
|
// Link Disabled
|
|
780
338
|
//-----------------------------
|
|
781
|
-
.#{$prefix}--
|
|
782
|
-
.#{$prefix}--tabs--scrollable__nav-link {
|
|
339
|
+
.#{$prefix}--tabs__nav-item--disabled .#{$prefix}--tabs__nav-link {
|
|
783
340
|
border-bottom: $tab-underline-disabled;
|
|
784
341
|
color: $tab-text-disabled;
|
|
785
342
|
}
|
|
786
343
|
|
|
787
|
-
.#{$prefix}--
|
|
788
|
-
.#{$prefix}--tabs--scrollable__nav-link {
|
|
344
|
+
.#{$prefix}--tabs__nav-item--disabled:hover .#{$prefix}--tabs__nav-link {
|
|
789
345
|
border-bottom: $tab-underline-disabled;
|
|
790
346
|
color: $tab-text-disabled;
|
|
791
347
|
cursor: not-allowed;
|
|
792
348
|
pointer-events: none;
|
|
793
349
|
}
|
|
794
350
|
|
|
795
|
-
.#{$prefix}--
|
|
796
|
-
|
|
797
|
-
.#{$prefix}--tabs--scrollable__nav-item--disabled
|
|
798
|
-
.#{$prefix}--tabs--scrollable__nav-link:active {
|
|
351
|
+
.#{$prefix}--tabs__nav-item--disabled .#{$prefix}--tabs__nav-link:focus,
|
|
352
|
+
.#{$prefix}--tabs__nav-item--disabled .#{$prefix}--tabs__nav-link:active {
|
|
799
353
|
border-bottom: $tab-underline-disabled;
|
|
800
354
|
outline: none;
|
|
801
355
|
}
|
|
802
356
|
|
|
803
|
-
.#{$prefix}--tabs--
|
|
804
|
-
.#{$prefix}--
|
|
805
|
-
.#{$prefix}--
|
|
357
|
+
.#{$prefix}--tabs--light
|
|
358
|
+
.#{$prefix}--tabs__nav-item--disabled
|
|
359
|
+
.#{$prefix}--tabs__nav-link {
|
|
806
360
|
border-bottom-color: $border-subtle;
|
|
807
361
|
}
|
|
808
362
|
|
|
809
|
-
.#{$prefix}--tabs--
|
|
810
|
-
.#{$prefix}--
|
|
811
|
-
.#{$prefix}--
|
|
363
|
+
.#{$prefix}--tabs--light
|
|
364
|
+
.#{$prefix}--tabs__nav-item--disabled:hover
|
|
365
|
+
.#{$prefix}--tabs__nav-link {
|
|
812
366
|
border-bottom-color: $border-subtle;
|
|
813
367
|
}
|
|
814
368
|
|
|
815
|
-
.#{$prefix}--tabs--
|
|
816
|
-
.#{$prefix}--
|
|
817
|
-
.#{$prefix}--
|
|
818
|
-
.#{$prefix}--tabs--
|
|
819
|
-
.#{$prefix}--
|
|
820
|
-
.#{$prefix}--
|
|
369
|
+
.#{$prefix}--tabs--light
|
|
370
|
+
.#{$prefix}--tabs__nav-item--disabled
|
|
371
|
+
.#{$prefix}--tabs__nav-link:focus,
|
|
372
|
+
.#{$prefix}--tabs--light
|
|
373
|
+
.#{$prefix}--tabs__nav-item--disabled
|
|
374
|
+
.#{$prefix}--tabs__nav-link:active {
|
|
821
375
|
border-bottom-color: $border-subtle;
|
|
822
376
|
}
|
|
823
377
|
|
|
824
|
-
&.#{$prefix}--tabs--
|
|
825
|
-
.#{$prefix}--
|
|
826
|
-
.#{$prefix}--
|
|
378
|
+
&.#{$prefix}--tabs--container
|
|
379
|
+
.#{$prefix}--tabs__nav-item--disabled
|
|
380
|
+
.#{$prefix}--tabs__nav-link {
|
|
827
381
|
border-bottom: none;
|
|
828
382
|
color: $text-on-color-disabled;
|
|
829
383
|
}
|
|
384
|
+
}
|
|
385
|
+
//-----------------------------
|
|
386
|
+
// Tab Content Container
|
|
387
|
+
//-----------------------------
|
|
388
|
+
.#{$prefix}--tab-content {
|
|
389
|
+
padding: $spacing-05;
|
|
830
390
|
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
//-----------------------------
|
|
834
|
-
.#{$prefix}--tab-content {
|
|
835
|
-
padding: $spacing-05;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
//-----------------------------
|
|
839
|
-
// Skeleton state
|
|
840
|
-
//-----------------------------
|
|
841
|
-
.#{$prefix}--tabs.#{$prefix}--skeleton {
|
|
842
|
-
cursor: default;
|
|
843
|
-
pointer-events: none;
|
|
391
|
+
&:focus {
|
|
392
|
+
@include focus-outline('outline');
|
|
844
393
|
}
|
|
394
|
+
}
|
|
845
395
|
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
396
|
+
//-----------------------------
|
|
397
|
+
// Skeleton state
|
|
398
|
+
//-----------------------------
|
|
399
|
+
.#{$prefix}--tabs.#{$prefix}--skeleton {
|
|
400
|
+
cursor: default;
|
|
401
|
+
pointer-events: none;
|
|
402
|
+
}
|
|
849
403
|
|
|
850
|
-
|
|
851
|
-
}
|
|
404
|
+
.#{$prefix}--skeleton.#{$prefix}--tabs:not(.#{$prefix}--tabs--container)
|
|
405
|
+
.#{$prefix}--tabs__nav-link {
|
|
406
|
+
border-bottom: 2px solid $skeleton-element;
|
|
407
|
+
}
|
|
852
408
|
|
|
853
|
-
|
|
854
|
-
|
|
409
|
+
.#{$prefix}--tabs.#{$prefix}--skeleton .#{$prefix}--tabs__nav-link {
|
|
410
|
+
display: flex;
|
|
411
|
+
width: 10rem;
|
|
412
|
+
height: 100%;
|
|
413
|
+
align-items: center;
|
|
414
|
+
padding: 0 1rem;
|
|
415
|
+
}
|
|
855
416
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
}
|
|
417
|
+
.#{$prefix}--tabs.#{$prefix}--skeleton .#{$prefix}--tabs__nav-link span {
|
|
418
|
+
@include skeleton;
|
|
859
419
|
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
420
|
+
display: block;
|
|
421
|
+
width: 100%;
|
|
422
|
+
height: rem(14px);
|
|
863
423
|
}
|
|
864
424
|
|
|
865
425
|
// Windows HCM fix
|
|
866
|
-
.#{$prefix}--
|
|
426
|
+
.#{$prefix}--tabs__nav-item
|
|
867
427
|
.#{$prefix}--tabs__nav-item--selected
|
|
868
|
-
.#{$prefix}--
|
|
428
|
+
.#{$prefix}--tabs__nav-item--selected {
|
|
869
429
|
@include high-contrast-mode('focus');
|
|
870
430
|
}
|
|
871
431
|
|
|
872
432
|
// stylelint-disable-next-line no-duplicate-selectors
|
|
873
|
-
.#{$prefix}--tabs
|
|
874
|
-
.#{$prefix}--
|
|
875
|
-
.#{$prefix}--
|
|
433
|
+
.#{$prefix}--tabs
|
|
434
|
+
.#{$prefix}--tabs__nav-item--disabled
|
|
435
|
+
.#{$prefix}--tabs__nav-link {
|
|
876
436
|
@include high-contrast-mode('disabled');
|
|
877
437
|
}
|
|
878
438
|
}
|