@carbon/styles 0.15.0 → 0.16.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/docs/sass.md +24 -23
- package/package.json +5 -5
- package/scss/_config.scss +5 -0
- package/scss/components/breadcrumb/_breadcrumb.scss +4 -0
- package/scss/components/code-snippet/_code-snippet.scss +21 -21
- package/scss/components/code-snippet/_mixins.scss +2 -1
- package/scss/components/combo-box/_combo-box.scss +1 -1
- package/scss/components/data-table/_data-table.scss +21 -7
- package/scss/components/data-table/action/_data-table-action.scss +17 -19
- package/scss/components/data-table/sort/_data-table-sort.scss +1 -0
- package/scss/components/date-picker/_date-picker.scss +0 -2
- package/scss/components/date-picker/_flatpickr.scss +13 -5
- package/scss/components/dropdown/_dropdown.scss +7 -7
- package/scss/components/file-uploader/_file-uploader.scss +2 -7
- package/scss/components/form/_form.scss +2 -14
- package/scss/components/list-box/_list-box.scss +6 -7
- package/scss/components/loading/_animation.scss +8 -0
- package/scss/components/modal/_modal.scss +4 -0
- package/scss/components/number-input/_number-input.scss +0 -14
- package/scss/components/overflow-menu/_overflow-menu.scss +4 -7
- package/scss/components/pagination/_pagination.scss +4 -0
- package/scss/components/pagination-nav/_mixins.scss +5 -1
- package/scss/components/pagination-nav/_pagination-nav.scss +4 -4
- package/scss/components/progress-bar/_progress-bar.scss +1 -1
- package/scss/components/radio-button/_radio-button.scss +4 -3
- package/scss/components/search/_search.scss +4 -0
- package/scss/components/select/_select.scss +7 -9
- package/scss/components/tabs/_tabs.scss +109 -52
- package/scss/components/tile/_tile.scss +4 -0
- package/scss/components/toggle/_toggle.scss +24 -0
- package/scss/{_grid.scss → grid/_config.scss} +3 -7
- package/scss/grid/_flexbox.scss +11 -0
- package/scss/grid/_index.scss +16 -0
- package/scss/utilities/_tooltip.scss +4 -0
|
@@ -156,13 +156,13 @@ $list-box-menu-width: rem(300px);
|
|
|
156
156
|
background-color: $field;
|
|
157
157
|
|
|
158
158
|
&:hover {
|
|
159
|
-
background-color: $
|
|
159
|
+
background-color: $field-hover;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
// V11: Possibly deprecate
|
|
164
164
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu {
|
|
165
|
-
background: $
|
|
165
|
+
background: $layer;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
// V11: Possibly deprecate
|
|
@@ -237,7 +237,7 @@ $list-box-menu-width: rem(300px);
|
|
|
237
237
|
background-color: transparent;
|
|
238
238
|
|
|
239
239
|
&:hover {
|
|
240
|
-
background-color: $
|
|
240
|
+
background-color: $layer-hover;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
@@ -477,7 +477,7 @@ $list-box-menu-width: rem(300px);
|
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
.#{$prefix}--list-box--disabled .#{$prefix}--list-box__selection--multi {
|
|
480
|
-
@include tag-theme($text-disabled, $
|
|
480
|
+
@include tag-theme($text-disabled, $layer);
|
|
481
481
|
|
|
482
482
|
> svg {
|
|
483
483
|
fill: $icon-disabled;
|
|
@@ -701,7 +701,7 @@ $list-box-menu-width: rem(300px);
|
|
|
701
701
|
|
|
702
702
|
.#{$prefix}--list-box__menu-item--highlighted {
|
|
703
703
|
border-color: transparent;
|
|
704
|
-
background-color: $layer-
|
|
704
|
+
background-color: $layer-selected;
|
|
705
705
|
color: $text-primary;
|
|
706
706
|
}
|
|
707
707
|
|
|
@@ -730,8 +730,7 @@ $list-box-menu-width: rem(300px);
|
|
|
730
730
|
background-color: $layer-selected;
|
|
731
731
|
}
|
|
732
732
|
|
|
733
|
-
.#{$prefix}--list-box__menu-item--active:hover
|
|
734
|
-
.#{$prefix}--list-box__menu-item--active.#{$prefix}--list-box__menu-item--highlighted {
|
|
733
|
+
.#{$prefix}--list-box__menu-item--active:hover {
|
|
735
734
|
border-bottom-color: $layer-selected-hover;
|
|
736
735
|
background-color: $layer-selected-hover;
|
|
737
736
|
}
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
animation-duration: 10ms;
|
|
21
21
|
animation-name: init-stroke;
|
|
22
22
|
animation-timing-function: motion.$standard-easing;
|
|
23
|
+
|
|
24
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
25
|
+
animation: none;
|
|
26
|
+
}
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|
|
@@ -35,5 +39,9 @@
|
|
|
35
39
|
animation-fill-mode: forwards;
|
|
36
40
|
animation-name: stroke-end;
|
|
37
41
|
animation-timing-function: motion.$ease-out;
|
|
42
|
+
|
|
43
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
44
|
+
animation: none;
|
|
45
|
+
}
|
|
38
46
|
}
|
|
39
47
|
}
|
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
transition: opacity $duration-moderate-02 motion(entrance, expressive),
|
|
46
46
|
visibility 0ms linear;
|
|
47
47
|
visibility: inherit;
|
|
48
|
+
|
|
49
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
50
|
+
transition: none;
|
|
51
|
+
}
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
// V11: Question for design: do we have an updated tokens for fields that exist on `layer`?
|
|
@@ -79,8 +79,6 @@
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
// TODO V11: Remove xl selector
|
|
83
|
-
.#{$prefix}--number--xl.#{$prefix}--number input[type='number'],
|
|
84
82
|
.#{$prefix}--number--lg.#{$prefix}--number input[type='number'] {
|
|
85
83
|
padding-right: rem(144px);
|
|
86
84
|
}
|
|
@@ -307,8 +305,6 @@
|
|
|
307
305
|
fill: $support-error;
|
|
308
306
|
}
|
|
309
307
|
|
|
310
|
-
// TODO V11: Remove xl selector
|
|
311
|
-
.#{$prefix}--number--xl .#{$prefix}--number__invalid,
|
|
312
308
|
.#{$prefix}--number--lg .#{$prefix}--number__invalid {
|
|
313
309
|
right: rem(112px);
|
|
314
310
|
}
|
|
@@ -322,10 +318,6 @@
|
|
|
322
318
|
right: rem(80px);
|
|
323
319
|
}
|
|
324
320
|
|
|
325
|
-
// TODO V11: Remove xl selector
|
|
326
|
-
.#{$prefix}--number--xl
|
|
327
|
-
.#{$prefix}--number__invalid
|
|
328
|
-
+ .#{$prefix}--number__rule-divider,
|
|
329
321
|
.#{$prefix}--number--lg
|
|
330
322
|
.#{$prefix}--number__invalid
|
|
331
323
|
+ .#{$prefix}--number__rule-divider {
|
|
@@ -391,20 +383,14 @@
|
|
|
391
383
|
}
|
|
392
384
|
|
|
393
385
|
// Size Variant styles
|
|
394
|
-
// TODO V11: Remove xl selector
|
|
395
|
-
.#{$prefix}--number--xl input[type='number'],
|
|
396
386
|
.#{$prefix}--number--lg input[type='number'] {
|
|
397
387
|
height: rem(48px);
|
|
398
388
|
}
|
|
399
389
|
|
|
400
|
-
// TODO V11: Remove xl selector
|
|
401
|
-
.#{$prefix}--number--xl .#{$prefix}--number__controls,
|
|
402
390
|
.#{$prefix}--number--lg .#{$prefix}--number__controls {
|
|
403
391
|
width: rem(96px);
|
|
404
392
|
}
|
|
405
393
|
|
|
406
|
-
// TODO V11: Remove xl selector
|
|
407
|
-
.#{$prefix}--number--xl .#{$prefix}--number__control-btn,
|
|
408
394
|
.#{$prefix}--number--lg .#{$prefix}--number__control-btn {
|
|
409
395
|
width: rem(48px);
|
|
410
396
|
|
|
@@ -52,8 +52,6 @@
|
|
|
52
52
|
height: rem(32px);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
// TODO V11: Remove xl selector
|
|
56
|
-
.#{$prefix}--overflow-menu--xl,
|
|
57
55
|
.#{$prefix}--overflow-menu--lg {
|
|
58
56
|
width: rem(48px);
|
|
59
57
|
height: rem(48px);
|
|
@@ -111,6 +109,10 @@
|
|
|
111
109
|
content: '';
|
|
112
110
|
transition: background-color $duration-fast-02
|
|
113
111
|
motion(entrance, productive);
|
|
112
|
+
|
|
113
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
114
|
+
transition: none;
|
|
115
|
+
}
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
|
|
@@ -170,8 +172,6 @@
|
|
|
170
172
|
}
|
|
171
173
|
}
|
|
172
174
|
|
|
173
|
-
// TODO V11: Remove xl selector
|
|
174
|
-
.#{$prefix}--overflow-menu-options--xl.#{$prefix}--overflow-menu-options,
|
|
175
175
|
.#{$prefix}--overflow-menu-options--lg.#{$prefix}--overflow-menu-options {
|
|
176
176
|
&[data-floating-menu-direction='bottom']::after,
|
|
177
177
|
&[data-floating-menu-direction='top']::after {
|
|
@@ -221,9 +221,6 @@
|
|
|
221
221
|
height: rem(32px);
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
// TODO V11: Remove xl selector
|
|
225
|
-
.#{$prefix}--overflow-menu-options--xl
|
|
226
|
-
.#{$prefix}--overflow-menu-options__option,
|
|
227
224
|
.#{$prefix}--overflow-menu-options--lg
|
|
228
225
|
.#{$prefix}--overflow-menu-options__option {
|
|
229
226
|
height: rem(48px);
|
|
@@ -22,10 +22,14 @@
|
|
|
22
22
|
display: block;
|
|
23
23
|
width: 0;
|
|
24
24
|
height: $spacing-02;
|
|
25
|
-
background-color: $
|
|
25
|
+
background-color: $border-interactive;
|
|
26
26
|
content: '';
|
|
27
27
|
opacity: 0;
|
|
28
28
|
transition: width $duration-fast-02 motion(standard, productive);
|
|
29
|
+
|
|
30
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
31
|
+
transition: none;
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
/// @param {Number} $select-icon-top-position [$spacing-05]
|
|
33
33
|
/// @param {Number} $select-icon-left-position [$spacing-05]
|
|
34
34
|
@mixin pagination-nav(
|
|
35
|
-
$color: $text-
|
|
36
|
-
$text-color-active: $text-
|
|
35
|
+
$color: $text-primary,
|
|
36
|
+
$text-color-active: $text-primary,
|
|
37
37
|
$background-color-hover: $background-hover,
|
|
38
38
|
$background-color-active: initial,
|
|
39
39
|
$font-weight: 400,
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
min-width: $button-min-width;
|
|
79
79
|
padding: $button-padding;
|
|
80
80
|
border-radius: 0;
|
|
81
|
-
color: $text-
|
|
81
|
+
color: $text-primary;
|
|
82
82
|
font-weight: $font-weight;
|
|
83
83
|
line-height: 1;
|
|
84
84
|
outline: 0;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
&:hover {
|
|
92
92
|
background-color: $background-color-hover;
|
|
93
|
-
color: $text-
|
|
93
|
+
color: $text-primary;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&:focus {
|
|
@@ -123,7 +123,7 @@ $radio-border-width: 1px !default;
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.#{$prefix}--radio-button:disabled + .#{$prefix}--radio-button__label {
|
|
126
|
-
color: $
|
|
126
|
+
color: $text-disabled;
|
|
127
127
|
cursor: not-allowed;
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -133,10 +133,11 @@ $radio-border-width: 1px !default;
|
|
|
133
133
|
.#{$prefix}--radio-button:disabled:checked
|
|
134
134
|
+ .#{$prefix}--radio-button__label
|
|
135
135
|
.#{$prefix}--radio-button__appearance {
|
|
136
|
-
|
|
136
|
+
// Disabled radio button, checkbox fix #10913
|
|
137
|
+
border-color: $icon-disabled;
|
|
137
138
|
|
|
138
139
|
&::before {
|
|
139
|
-
background-color: $
|
|
140
|
+
background-color: $text-disabled;
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
transition: outline $duration-fast-01 motion(standard, productive);
|
|
63
63
|
|
|
64
64
|
&:hover {
|
|
65
|
-
background-color: $
|
|
65
|
+
background-color: $field-hover;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
// Hide default select arrow in IE10+
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
|
|
90
90
|
&:disabled,
|
|
91
91
|
&:hover:disabled {
|
|
92
|
-
border-bottom-color:
|
|
92
|
+
border-bottom-color: transparent;
|
|
93
93
|
background-color: $field;
|
|
94
94
|
color: $text-disabled;
|
|
95
95
|
cursor: not-allowed;
|
|
@@ -101,8 +101,6 @@
|
|
|
101
101
|
max-height: rem(32px);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
// TODO V11: Remove xl selector
|
|
105
|
-
.#{$prefix}--select-input--xl,
|
|
106
104
|
.#{$prefix}--select-input--lg {
|
|
107
105
|
height: rem(48px);
|
|
108
106
|
max-height: rem(48px);
|
|
@@ -115,7 +113,7 @@
|
|
|
115
113
|
|
|
116
114
|
.#{$prefix}--select-input__wrapper[data-invalid] .#{$prefix}--select-input,
|
|
117
115
|
.#{$prefix}--select--warning .#{$prefix}--select-input {
|
|
118
|
-
padding-right:
|
|
116
|
+
padding-right: $spacing-10;
|
|
119
117
|
}
|
|
120
118
|
|
|
121
119
|
.#{$prefix}--select-input:disabled ~ .#{$prefix}--select__arrow {
|
|
@@ -123,15 +121,15 @@
|
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
.#{$prefix}--select--light .#{$prefix}--select-input {
|
|
126
|
-
background-color: $field
|
|
124
|
+
background-color: $field;
|
|
127
125
|
|
|
128
126
|
&:hover {
|
|
129
|
-
background-color: $
|
|
127
|
+
background-color: $field-hover;
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
&:disabled,
|
|
133
131
|
&:hover:disabled {
|
|
134
|
-
background-color: $field
|
|
132
|
+
background-color: $field;
|
|
135
133
|
color: $text-disabled;
|
|
136
134
|
cursor: not-allowed;
|
|
137
135
|
}
|
|
@@ -178,7 +176,7 @@
|
|
|
178
176
|
optgroup.#{$prefix}--select-optgroup,
|
|
179
177
|
.#{$prefix}--select-option {
|
|
180
178
|
// For the options to show in IE11
|
|
181
|
-
background-color: $
|
|
179
|
+
background-color: $layer-hover;
|
|
182
180
|
color: $text-primary;
|
|
183
181
|
|
|
184
182
|
&:disabled {
|
|
@@ -40,69 +40,153 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
40
40
|
@include reset;
|
|
41
41
|
@include type-style('body-compact-01');
|
|
42
42
|
|
|
43
|
+
position: relative;
|
|
43
44
|
display: flex;
|
|
44
45
|
width: 100%;
|
|
45
46
|
height: auto;
|
|
46
47
|
min-height: rem(40px);
|
|
48
|
+
max-height: 4rem;
|
|
47
49
|
color: $text-primary;
|
|
48
50
|
|
|
49
51
|
&.#{$prefix}--tabs--contained {
|
|
50
52
|
min-height: rem(48px);
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
.#{$prefix}--
|
|
55
|
+
.#{$prefix}--tab--list {
|
|
54
56
|
display: flex;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
flex-direction: row;
|
|
59
|
-
padding: 0;
|
|
60
|
-
margin: 0;
|
|
61
|
-
list-style: none;
|
|
62
|
-
outline: 0;
|
|
63
|
-
// hide scroll bars
|
|
57
|
+
width: 100%;
|
|
58
|
+
overflow-x: auto;
|
|
59
|
+
scroll-behavior: smooth;
|
|
64
60
|
scrollbar-width: none;
|
|
65
|
-
|
|
61
|
+
will-change: scroll-position;
|
|
66
62
|
|
|
67
63
|
&::-webkit-scrollbar {
|
|
68
64
|
display: none;
|
|
69
65
|
}
|
|
70
66
|
}
|
|
71
67
|
|
|
68
|
+
.#{$prefix}--tabs__nav {
|
|
69
|
+
display: flex;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
72
|
//-----------------------------
|
|
73
73
|
// Overflow Nav Buttons
|
|
74
74
|
//-----------------------------
|
|
75
|
-
.#{$prefix}--
|
|
76
|
-
|
|
75
|
+
.#{$prefix}--tab--overflow-nav-button {
|
|
76
|
+
@include button-reset.reset;
|
|
77
|
+
|
|
78
|
+
display: flex;
|
|
79
|
+
width: $spacing-08;
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
background-color: $background;
|
|
84
|
+
|
|
85
|
+
&:focus {
|
|
86
|
+
@include focus-outline('outline');
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.#{$prefix}--tab--overflow-nav-button--hidden {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.#{$prefix}--tabs--contained .#{$prefix}--tab--overflow-nav-button {
|
|
95
|
+
width: $spacing-09;
|
|
96
|
+
margin: 0;
|
|
97
|
+
background-color: $layer-accent;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.#{$prefix}--tab--overflow-nav-button svg {
|
|
101
|
+
fill: $icon-primary;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.#{$prefix}--tab--overflow-nav-button--next {
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
bottom: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.#{$prefix}--tab--overflow-nav-button--next::before {
|
|
112
|
+
position: absolute;
|
|
77
113
|
z-index: 1;
|
|
114
|
+
left: -$spacing-03;
|
|
78
115
|
width: $spacing-03;
|
|
79
|
-
|
|
116
|
+
height: 100%;
|
|
117
|
+
background: linear-gradient(
|
|
118
|
+
to right,
|
|
119
|
+
rgba(255, 255, 255, 0),
|
|
120
|
+
$background
|
|
121
|
+
);
|
|
122
|
+
content: '';
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.#{$prefix}--tabs--contained
|
|
126
|
+
.#{$prefix}--tab--overflow-nav-button--next::before {
|
|
127
|
+
background-image: linear-gradient(
|
|
128
|
+
to right,
|
|
129
|
+
rgba(255, 255, 255, 0),
|
|
130
|
+
$layer-accent
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.#{$prefix}--tab--overflow-nav-button--previous {
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: 0;
|
|
137
|
+
bottom: 0;
|
|
138
|
+
left: 0;
|
|
80
139
|
}
|
|
81
140
|
|
|
82
|
-
.#{$prefix}--
|
|
83
|
-
|
|
84
|
-
|
|
141
|
+
.#{$prefix}--tab--overflow-nav-button--previous::before {
|
|
142
|
+
position: absolute;
|
|
143
|
+
z-index: 1;
|
|
144
|
+
right: -$spacing-03;
|
|
145
|
+
width: $spacing-03;
|
|
146
|
+
height: 100%;
|
|
147
|
+
background: linear-gradient(to left, rgba(255, 255, 255, 0), $background);
|
|
148
|
+
content: '';
|
|
85
149
|
}
|
|
86
150
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
background-image: linear-gradient(
|
|
151
|
+
&.#{$prefix}--tabs--contained
|
|
152
|
+
.#{$prefix}--tab--overflow-nav-button--previous::before {
|
|
153
|
+
background-image: linear-gradient(
|
|
154
|
+
to left,
|
|
155
|
+
rgba(255, 255, 255, 0),
|
|
156
|
+
$layer-accent
|
|
157
|
+
);
|
|
90
158
|
}
|
|
91
159
|
|
|
92
160
|
.#{$prefix}--tabs--light .#{$prefix}--tabs__overflow-indicator--left {
|
|
93
|
-
background-image: linear-gradient(
|
|
161
|
+
background-image: linear-gradient(
|
|
162
|
+
to left,
|
|
163
|
+
rgba(255, 255, 255, 0),
|
|
164
|
+
$layer
|
|
165
|
+
);
|
|
94
166
|
}
|
|
95
167
|
|
|
96
168
|
.#{$prefix}--tabs--light .#{$prefix}--tabs__overflow-indicator--right {
|
|
97
|
-
background-image: linear-gradient(
|
|
169
|
+
background-image: linear-gradient(
|
|
170
|
+
to right,
|
|
171
|
+
rgba(255, 255, 255, 0),
|
|
172
|
+
$layer
|
|
173
|
+
);
|
|
98
174
|
}
|
|
99
175
|
|
|
100
176
|
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__overflow-indicator--left {
|
|
101
|
-
background-image: linear-gradient(
|
|
177
|
+
background-image: linear-gradient(
|
|
178
|
+
to left,
|
|
179
|
+
rgba(255, 255, 255, 0),
|
|
180
|
+
$layer-accent
|
|
181
|
+
);
|
|
102
182
|
}
|
|
103
183
|
|
|
104
184
|
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__overflow-indicator--right {
|
|
105
|
-
background-image: linear-gradient(
|
|
185
|
+
background-image: linear-gradient(
|
|
186
|
+
to right,
|
|
187
|
+
rgba(255, 255, 255, 0),
|
|
188
|
+
$layer-accent
|
|
189
|
+
);
|
|
106
190
|
}
|
|
107
191
|
|
|
108
192
|
// Safari-only media query
|
|
@@ -146,34 +230,6 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
146
230
|
}
|
|
147
231
|
}
|
|
148
232
|
|
|
149
|
-
.#{$prefix}--tab--overflow-nav-button {
|
|
150
|
-
@include button-reset.reset;
|
|
151
|
-
|
|
152
|
-
display: flex;
|
|
153
|
-
width: $spacing-08;
|
|
154
|
-
flex-shrink: 0;
|
|
155
|
-
align-items: center;
|
|
156
|
-
justify-content: center;
|
|
157
|
-
|
|
158
|
-
&:focus {
|
|
159
|
-
@include focus-outline('outline');
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.#{$prefix}--tab--overflow-nav-button--hidden {
|
|
164
|
-
display: none;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&.#{$prefix}--tabs--contained .#{$prefix}--tab--overflow-nav-button {
|
|
168
|
-
width: $spacing-09;
|
|
169
|
-
margin: 0;
|
|
170
|
-
background-color: $layer-accent;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.#{$prefix}--tab--overflow-nav-button svg {
|
|
174
|
-
fill: $icon-primary;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
233
|
//-----------------------------
|
|
178
234
|
// Item
|
|
179
235
|
//-----------------------------
|
|
@@ -181,6 +237,7 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
181
237
|
@include reset;
|
|
182
238
|
|
|
183
239
|
display: flex;
|
|
240
|
+
flex: 1 0 auto;
|
|
184
241
|
padding: 0;
|
|
185
242
|
cursor: pointer;
|
|
186
243
|
transition: background-color $duration-fast-01
|
|
@@ -144,6 +144,10 @@
|
|
|
144
144
|
transform-origin: center;
|
|
145
145
|
transition: $duration-fast-02 motion(standard, productive);
|
|
146
146
|
|
|
147
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
148
|
+
transition: none;
|
|
149
|
+
}
|
|
150
|
+
|
|
147
151
|
// Windows, Firefox HCM Fix
|
|
148
152
|
@media screen and (-ms-high-contrast: active),
|
|
149
153
|
screen and (prefers-contrast) {
|
|
@@ -64,6 +64,10 @@
|
|
|
64
64
|
border-radius: 50%;
|
|
65
65
|
content: '';
|
|
66
66
|
transition: transform $duration-fast-01 motion(exit, productive);
|
|
67
|
+
|
|
68
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
69
|
+
transition: none;
|
|
70
|
+
}
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
73
|
|
|
@@ -199,6 +203,10 @@
|
|
|
199
203
|
transition: box-shadow $duration-fast-01 motion(exit, productive),
|
|
200
204
|
background-color $duration-fast-01 motion(exit, productive);
|
|
201
205
|
will-change: box-shadow;
|
|
206
|
+
|
|
207
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
208
|
+
transition: none;
|
|
209
|
+
}
|
|
202
210
|
}
|
|
203
211
|
|
|
204
212
|
// Toggle circle
|
|
@@ -215,6 +223,10 @@
|
|
|
215
223
|
content: '';
|
|
216
224
|
cursor: pointer;
|
|
217
225
|
transition: transform $duration-fast-01 motion(exit, productive);
|
|
226
|
+
|
|
227
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
228
|
+
transition: none;
|
|
229
|
+
}
|
|
218
230
|
}
|
|
219
231
|
}
|
|
220
232
|
|
|
@@ -313,6 +325,10 @@
|
|
|
313
325
|
&::after {
|
|
314
326
|
cursor: not-allowed;
|
|
315
327
|
transition: $duration-fast-01 motion(exit, productive);
|
|
328
|
+
|
|
329
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
330
|
+
transition: none;
|
|
331
|
+
}
|
|
316
332
|
}
|
|
317
333
|
}
|
|
318
334
|
|
|
@@ -432,6 +448,10 @@
|
|
|
432
448
|
transition: box-shadow $duration-fast-01 motion(exit, productive),
|
|
433
449
|
background-color $duration-fast-01 motion(exit, productive);
|
|
434
450
|
will-change: box-shadow;
|
|
451
|
+
|
|
452
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
453
|
+
transition: none;
|
|
454
|
+
}
|
|
435
455
|
}
|
|
436
456
|
|
|
437
457
|
// Toggle circle
|
|
@@ -531,6 +551,10 @@
|
|
|
531
551
|
&::after {
|
|
532
552
|
cursor: not-allowed;
|
|
533
553
|
transition: $duration-fast-01 motion(exit, productive);
|
|
554
|
+
|
|
555
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
556
|
+
transition: none;
|
|
557
|
+
}
|
|
534
558
|
}
|
|
535
559
|
}
|
|
536
560
|
|
|
@@ -5,18 +5,14 @@
|
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
6
6
|
//
|
|
7
7
|
|
|
8
|
-
@use 'config';
|
|
9
|
-
|
|
8
|
+
@use '../config';
|
|
10
9
|
@forward '@carbon/grid'
|
|
11
10
|
show css-grid,
|
|
12
|
-
subgrid,
|
|
13
11
|
flex-grid,
|
|
14
12
|
$grid-gutter,
|
|
15
13
|
$grid-gutter-condensed,
|
|
16
14
|
$grid-breakpoints
|
|
17
15
|
with (
|
|
18
|
-
$prefix: config.$prefix,
|
|
19
|
-
$flex-grid-columns: config.$flex-grid-columns
|
|
16
|
+
$prefix: config.$prefix !default,
|
|
17
|
+
$flex-grid-columns: config.$flex-grid-columns !default
|
|
20
18
|
);
|
|
21
|
-
|
|
22
|
-
@use '@carbon/grid';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2018, 2018
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward 'config';
|
|
9
|
+
@use '@carbon/grid';
|
|
10
|
+
|
|
11
|
+
@include grid.flex-grid();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2018, 2018
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward 'config';
|
|
9
|
+
@use '@carbon/grid';
|
|
10
|
+
@use '../config';
|
|
11
|
+
|
|
12
|
+
@if config.$use-flexbox-grid == true {
|
|
13
|
+
@include grid.flex-grid();
|
|
14
|
+
} @else {
|
|
15
|
+
@include grid.css-grid();
|
|
16
|
+
}
|