@carbon/elements 10.50.0-rc.0 → 10.52.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 +10 -10
- package/scss/grid/modules/_config.scss +6 -0
- package/scss/grid/modules/_css-grid.scss +52 -123
- package/scss/grid/modules/_flex-grid.scss +374 -0
- package/scss/themes/generated/_mixins.scss +0 -38
- package/scss/themes/generated/_themes.scss +0 -24
- package/scss/themes/generated/_tokens.scss +0 -20
- package/scss/themes/modules/generated/_themes.scss +18 -18
- package/scss/themes/modules/generated/_tokens.scss +8 -8
- package/scss/type/modules/_styles.scss +2 -1
- package/src/__tests__/__snapshots__/PublicAPI-test.js.snap +0 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/elements",
|
|
3
3
|
"description": "A collection of design elements in code for the IBM Design Language",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.52.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"clean": "rimraf es lib umd && node tasks/clean.js"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@carbon/colors": "^10.
|
|
39
|
-
"@carbon/grid": "^10.
|
|
40
|
-
"@carbon/icons": "^10.
|
|
38
|
+
"@carbon/colors": "^10.36.0",
|
|
39
|
+
"@carbon/grid": "^10.41.0",
|
|
40
|
+
"@carbon/icons": "^10.46.0",
|
|
41
41
|
"@carbon/import-once": "^10.6.0",
|
|
42
|
-
"@carbon/layout": "^10.
|
|
43
|
-
"@carbon/motion": "^10.
|
|
44
|
-
"@carbon/themes": "^10.
|
|
45
|
-
"@carbon/type": "^10.
|
|
42
|
+
"@carbon/layout": "^10.36.0",
|
|
43
|
+
"@carbon/motion": "^10.28.0",
|
|
44
|
+
"@carbon/themes": "^10.51.0",
|
|
45
|
+
"@carbon/type": "^10.41.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@carbon/cli": "^10.
|
|
48
|
+
"@carbon/cli": "^10.33.0",
|
|
49
49
|
"fs-extra": "^10.0.0",
|
|
50
50
|
"klaw-sync": "^6.0.0",
|
|
51
51
|
"replace-in-file": "^3.4.2",
|
|
52
52
|
"rimraf": "^3.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "6a49764a3df2cc3e3b8fce6575f4853d1400e183"
|
|
55
55
|
}
|
|
@@ -77,38 +77,6 @@
|
|
|
77
77
|
display: grid;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
// -----------------------------------------------------------------------------
|
|
81
|
-
// Narrow
|
|
82
|
-
// -----------------------------------------------------------------------------
|
|
83
|
-
.#{$prefix}--css-grid--narrow {
|
|
84
|
-
--cds-grid-margin: 1rem;
|
|
85
|
-
|
|
86
|
-
padding-right: var(--cds-grid-margin);
|
|
87
|
-
padding-left: var(--cds-grid-margin);
|
|
88
|
-
|
|
89
|
-
@include breakpoint(md) {
|
|
90
|
-
padding-right: calc(var(--cds-grid-margin) + var(--cds-grid-gutter) / 2);
|
|
91
|
-
padding-left: calc(var(--cds-grid-margin) + var(--cds-grid-gutter) / 2);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.#{$prefix}--css-grid--narrow > [class*='col'] {
|
|
96
|
-
margin-left: calc(var(--cds-grid-gutter) / 2 * -1);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Narrow subgrid inside wide
|
|
100
|
-
.#{$prefix}--css-grid:not(.#{$prefix}--css-grid--condensed)
|
|
101
|
-
.#{$prefix}--subgrid.#{$prefix}--css-grid--narrow {
|
|
102
|
-
padding: 0;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Narrow subgrid column inside wide
|
|
106
|
-
.#{$prefix}--css-grid
|
|
107
|
-
.#{$prefix}--subgrid.#{$prefix}--css-grid--narrow
|
|
108
|
-
> [class*='col'] {
|
|
109
|
-
margin-left: calc(var(--cds-grid-gutter) / 2 * -1);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
80
|
// -----------------------------------------------------------------------------
|
|
113
81
|
// Condensed
|
|
114
82
|
// -----------------------------------------------------------------------------
|
|
@@ -120,8 +88,7 @@
|
|
|
120
88
|
}
|
|
121
89
|
|
|
122
90
|
// condensed subgrid inside wide
|
|
123
|
-
.#{$prefix}--css-grid
|
|
124
|
-
.bx--subgrid.#{$prefix}--css-grid--condensed {
|
|
91
|
+
.#{$prefix}--css-grid .bx--subgrid.#{$prefix}--css-grid--condensed {
|
|
125
92
|
margin-right: calc((var(--cds-grid-gutter-wide) / 2) * -1);
|
|
126
93
|
margin-left: calc((var(--cds-grid-gutter-wide) / 2) * -1);
|
|
127
94
|
}
|
|
@@ -174,26 +141,6 @@
|
|
|
174
141
|
grid-column: 1 / -1;
|
|
175
142
|
}
|
|
176
143
|
|
|
177
|
-
@each $name, $value in $grid-breakpoints {
|
|
178
|
-
$columns: map.get($value, columns);
|
|
179
|
-
|
|
180
|
-
@include breakpoint($name) {
|
|
181
|
-
@for $i from 0 through $columns {
|
|
182
|
-
.#{$prefix}--#{$name}\:col-span-#{$i} {
|
|
183
|
-
@include -column-span($i);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.#{$prefix}--#{$name}\:col-span-auto {
|
|
188
|
-
grid-column: auto;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.#{$prefix}--#{$name}\:col-span-100 {
|
|
192
|
-
grid-column: 1 / -1;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
144
|
.#{$prefix}--col-span-25 {
|
|
198
145
|
--cds-grid-columns: 1;
|
|
199
146
|
|
|
@@ -248,13 +195,59 @@
|
|
|
248
195
|
}
|
|
249
196
|
}
|
|
250
197
|
|
|
198
|
+
@each $name, $value in $grid-breakpoints {
|
|
199
|
+
$columns: map.get($value, columns);
|
|
200
|
+
|
|
201
|
+
@include breakpoint($name) {
|
|
202
|
+
@for $i from 0 through $columns {
|
|
203
|
+
.#{$prefix}--#{$name}\:col-span-#{$i} {
|
|
204
|
+
@include -column-span($i);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.#{$prefix}--#{$name}\:col-span-auto {
|
|
209
|
+
grid-column: auto;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.#{$prefix}--#{$name}\:col-span-100 {
|
|
213
|
+
grid-column: 1 / -1;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
$quarterGridColumns: math.div($columns, 4);
|
|
217
|
+
|
|
218
|
+
.#{$prefix}--#{$name}\:col-span-75 {
|
|
219
|
+
$calc: $quarterGridColumns * 3;
|
|
220
|
+
--cds-grid-columns: #{$calc};
|
|
221
|
+
|
|
222
|
+
grid-column: span $calc / span $calc;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.#{$prefix}--#{$name}\:col-span-50 {
|
|
226
|
+
$calc: $quarterGridColumns * 2;
|
|
227
|
+
--cds-grid-columns: #{$calc};
|
|
228
|
+
|
|
229
|
+
grid-column: span $calc / span $calc;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.#{$prefix}--#{$name}\:col-span-25 {
|
|
233
|
+
--cds-grid-columns: #{$quarterGridColumns};
|
|
234
|
+
|
|
235
|
+
grid-column: span $quarterGridColumns / span $quarterGridColumns;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
251
240
|
// -----------------------------------------------------------------------------
|
|
252
241
|
// Column offset
|
|
253
242
|
// -----------------------------------------------------------------------------
|
|
254
|
-
@for $i from 1 through
|
|
243
|
+
@for $i from 1 through 17 {
|
|
255
244
|
.#{$prefix}--col-start-#{$i} {
|
|
256
245
|
grid-column-start: $i;
|
|
257
246
|
}
|
|
247
|
+
|
|
248
|
+
.#{$prefix}--col-end-#{$i} {
|
|
249
|
+
grid-column-start: $i;
|
|
250
|
+
}
|
|
258
251
|
}
|
|
259
252
|
|
|
260
253
|
.#{$prefix}--col-start-auto {
|
|
@@ -276,6 +269,10 @@
|
|
|
276
269
|
.#{$prefix}--#{$name}\:col-start-#{$i} {
|
|
277
270
|
grid-column-start: $i;
|
|
278
271
|
}
|
|
272
|
+
|
|
273
|
+
.#{$prefix}--#{$name}\:col-end-#{$i} {
|
|
274
|
+
grid-column-end: $i;
|
|
275
|
+
}
|
|
279
276
|
}
|
|
280
277
|
|
|
281
278
|
.#{$prefix}--#{$name}\:col-start-auto {
|
|
@@ -348,71 +345,3 @@
|
|
|
348
345
|
.#{$prefix}--align-items-center {
|
|
349
346
|
align-items: center;
|
|
350
347
|
}
|
|
351
|
-
|
|
352
|
-
// -----------------------------------------------------------------------------
|
|
353
|
-
// Aspect ratio -- TODO: in v11 should this move to a new file to live alongside the AspectRatio component?
|
|
354
|
-
// -----------------------------------------------------------------------------
|
|
355
|
-
|
|
356
|
-
/// The aspect ratios that are used to generate corresponding aspect ratio
|
|
357
|
-
/// classes in code
|
|
358
|
-
/// @type List
|
|
359
|
-
/// @access public
|
|
360
|
-
/// @group @carbon/grid
|
|
361
|
-
$carbon--aspect-ratios: (
|
|
362
|
-
(16, 9),
|
|
363
|
-
(9, 16),
|
|
364
|
-
(2, 1),
|
|
365
|
-
(1, 2),
|
|
366
|
-
(4, 3),
|
|
367
|
-
(3, 4),
|
|
368
|
-
(3, 2),
|
|
369
|
-
(2, 3),
|
|
370
|
-
(1, 1)
|
|
371
|
-
);
|
|
372
|
-
|
|
373
|
-
/// Generates the CSS classname utilities for the aspect ratios
|
|
374
|
-
///
|
|
375
|
-
/// CSS Tricks article on aspect ratios and all the different ways it can be done.
|
|
376
|
-
/// https://css-tricks.com/aspect-ratio-boxes/#article-header-id-6
|
|
377
|
-
///
|
|
378
|
-
/// That article references an earlier article on the topic.
|
|
379
|
-
/// https://keithjgrant.com/posts/2017/03/aspect-ratios/
|
|
380
|
-
///
|
|
381
|
-
/// @param {Number} $width width from an aspect ratio
|
|
382
|
-
/// @param {Number} $height height from an aspect ratio
|
|
383
|
-
/// @access private
|
|
384
|
-
/// @group @carbon/grid
|
|
385
|
-
@mixin carbon--aspect-ratio($aspect-ratios: $carbon--aspect-ratios) {
|
|
386
|
-
.#{$prefix}--aspect-ratio {
|
|
387
|
-
position: relative;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.#{$prefix}--aspect-ratio::before {
|
|
391
|
-
width: 1px;
|
|
392
|
-
height: 0;
|
|
393
|
-
margin-left: -1px;
|
|
394
|
-
content: '';
|
|
395
|
-
float: left;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
.#{$prefix}--aspect-ratio::after {
|
|
399
|
-
display: table;
|
|
400
|
-
clear: both;
|
|
401
|
-
content: '';
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
@each $aspect-ratio in $aspect-ratios {
|
|
405
|
-
$width: nth($aspect-ratio, 1);
|
|
406
|
-
$height: nth($aspect-ratio, 2);
|
|
407
|
-
|
|
408
|
-
.#{$prefix}--aspect-ratio--#{$width}x#{$height}::before {
|
|
409
|
-
@if meta.function-exists('div', 'math') {
|
|
410
|
-
padding-top: percentage(math.div($height, $width));
|
|
411
|
-
} @else {
|
|
412
|
-
padding-top: percentage(($height / $width));
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
@include carbon--aspect-ratio();
|
|
@@ -0,0 +1,374 @@
|
|
|
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
|
+
// Helpers for defining columns, rows, and containers are heavily inspired by,
|
|
9
|
+
// and often derived from, bootstrap:
|
|
10
|
+
// https://github.com/twbs/bootstrap/blob/v4-dev/scss/mixins/_grid.scss
|
|
11
|
+
|
|
12
|
+
@use 'sass:meta';
|
|
13
|
+
@use 'sass:math';
|
|
14
|
+
@use 'sass:map';
|
|
15
|
+
|
|
16
|
+
@use 'config' as *;
|
|
17
|
+
@use 'breakpoint' as *;
|
|
18
|
+
|
|
19
|
+
// -----------------------------------------------------------------------------
|
|
20
|
+
// Columns
|
|
21
|
+
// -----------------------------------------------------------------------------
|
|
22
|
+
|
|
23
|
+
/// Used to initialize the default properties for a column class, most notably
|
|
24
|
+
/// for setting width and default gutters when a column's breakpoint has not been
|
|
25
|
+
/// hit yet.
|
|
26
|
+
/// @param {Number} $gutter [$grid-gutter] - The gutter for the grid system
|
|
27
|
+
/// @param {Number} $collapsed-gutter [$grid-gutter--condensed] - The condensed mode gutter
|
|
28
|
+
/// @access private
|
|
29
|
+
/// @group @carbon/grid
|
|
30
|
+
@mixin -make-col-ready(
|
|
31
|
+
$gutter: $grid-gutter,
|
|
32
|
+
$condensed-gutter: $grid-gutter--condensed
|
|
33
|
+
) {
|
|
34
|
+
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
|
35
|
+
// always setting `width: 100%;`. This works because we use `flex` values
|
|
36
|
+
// later on to override this initial width.
|
|
37
|
+
width: 100%;
|
|
38
|
+
padding-right: $gutter * 0.5;
|
|
39
|
+
padding-left: $gutter * 0.5;
|
|
40
|
+
|
|
41
|
+
// For our condensed use-case, our gutters collapse to 2px solid, 1px on each
|
|
42
|
+
// side.
|
|
43
|
+
.#{$prefix}--row--condensed &,
|
|
44
|
+
.#{$prefix}--grid--condensed & {
|
|
45
|
+
padding-right: $condensed-gutter * 0.5;
|
|
46
|
+
padding-left: $condensed-gutter * 0.5;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// For our narrow use-case, our container hangs 16px into the gutter
|
|
50
|
+
.#{$prefix}--row--narrow &,
|
|
51
|
+
.#{$prefix}--grid--narrow & {
|
|
52
|
+
padding-right: $gutter * 0.5;
|
|
53
|
+
padding-left: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/// Define the width of the column for a given span and column count.
|
|
58
|
+
/// A width of 0 will hide the column entirely.
|
|
59
|
+
/// @param {Number} $span - The number of columns covered
|
|
60
|
+
/// @param {Number} $columns - The total number of columns available
|
|
61
|
+
/// @access private
|
|
62
|
+
/// @group @carbon/grid
|
|
63
|
+
@mixin -make-col($span, $columns) {
|
|
64
|
+
@if $span == 0 {
|
|
65
|
+
display: none;
|
|
66
|
+
} @else {
|
|
67
|
+
// Explicitly include `display: block` to override
|
|
68
|
+
display: block;
|
|
69
|
+
// Add a `max-width` to ensure content within each column does not blow out
|
|
70
|
+
// the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
|
|
71
|
+
// do not appear to require this.
|
|
72
|
+
@if meta.function-exists('div', 'math') {
|
|
73
|
+
max-width: percentage(math.div($span, $columns));
|
|
74
|
+
flex: 0 0 percentage(math.div($span, $columns));
|
|
75
|
+
} @else {
|
|
76
|
+
max-width: percentage(($span / $columns));
|
|
77
|
+
flex: 0 0 percentage(($span / $columns));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/// Create a column offset for a given span and column count.
|
|
83
|
+
/// @param {Number} $span - The number of columns the offset should cover
|
|
84
|
+
/// @param {Number} $columns - The total number of columns available
|
|
85
|
+
/// @access private
|
|
86
|
+
/// @group @carbon/grid
|
|
87
|
+
@mixin -make-col-offset($span, $columns) {
|
|
88
|
+
$offset: 0;
|
|
89
|
+
@if meta.function-exists('div', 'math') {
|
|
90
|
+
$offset: math.div($span, $columns);
|
|
91
|
+
} @else {
|
|
92
|
+
$offset: ($span / $columns);
|
|
93
|
+
}
|
|
94
|
+
@if $offset == 0 {
|
|
95
|
+
margin-left: 0;
|
|
96
|
+
} @else {
|
|
97
|
+
margin-left: percentage($offset);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/// Output the CSS required for all the columns in a given grid system.
|
|
102
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints in the grid system
|
|
103
|
+
/// @param {Number} $gutter [$grid-gutter] - The gutter for the grid system
|
|
104
|
+
/// @access private
|
|
105
|
+
/// @group @carbon/grid
|
|
106
|
+
@mixin -make-grid-columns(
|
|
107
|
+
$breakpoints: $grid-breakpoints,
|
|
108
|
+
$gutter: $grid-gutter
|
|
109
|
+
) {
|
|
110
|
+
.#{$prefix}--col {
|
|
111
|
+
@include -make-col-ready($gutter);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
115
|
+
$infix: breakpoint-infix($breakpoint);
|
|
116
|
+
$columns: map-get(map-get($breakpoints, $breakpoint), columns);
|
|
117
|
+
|
|
118
|
+
// Allow columns to stretch full width below their breakpoints
|
|
119
|
+
@for $i from 0 through $columns {
|
|
120
|
+
.#{$prefix}--col#{$infix}-#{$i} {
|
|
121
|
+
@include -make-col-ready($gutter);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.#{$prefix}--col#{$infix},
|
|
126
|
+
.#{$prefix}--col#{$infix}--auto {
|
|
127
|
+
@include -make-col-ready($gutter);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@include breakpoint($breakpoint, $breakpoints) {
|
|
131
|
+
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
|
|
132
|
+
.#{$prefix}--col,
|
|
133
|
+
.#{$prefix}--col#{$infix} {
|
|
134
|
+
max-width: 100%;
|
|
135
|
+
flex-basis: 0;
|
|
136
|
+
flex-grow: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.#{$prefix}--col--auto,
|
|
140
|
+
.#{$prefix}--col#{$infix}--auto {
|
|
141
|
+
width: auto;
|
|
142
|
+
// Reset earlier grid tiers
|
|
143
|
+
max-width: 100%;
|
|
144
|
+
flex: 1 0 0%;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@for $i from 0 through $columns {
|
|
148
|
+
.#{$prefix}--col#{$infix}-#{$i} {
|
|
149
|
+
@include -make-col($i, $columns);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@for $i from 0 through ($columns - 1) {
|
|
154
|
+
@if not($infix == '') {
|
|
155
|
+
.#{$prefix}--offset#{$infix}-#{$i} {
|
|
156
|
+
@include -make-col-offset($i, $columns);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// -----------------------------------------------------------------------------
|
|
165
|
+
// Rows
|
|
166
|
+
// -----------------------------------------------------------------------------
|
|
167
|
+
|
|
168
|
+
/// Define the properties for a selector assigned to a row in the grid system.
|
|
169
|
+
/// @param {Number} $gutter [$grid-gutter] - The gutter in the grid system
|
|
170
|
+
/// @access private
|
|
171
|
+
/// @group @carbon/grid
|
|
172
|
+
@mixin -make-row($gutter: $grid-gutter) {
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-wrap: wrap;
|
|
175
|
+
margin-right: -1 * $gutter * 0.5;
|
|
176
|
+
margin-left: -1 * $gutter * 0.5;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// -----------------------------------------------------------------------------
|
|
180
|
+
// No gutter
|
|
181
|
+
// -----------------------------------------------------------------------------
|
|
182
|
+
|
|
183
|
+
/// Add `no-gutter` and `no-gutter--{start,end}` classes to the output CSS. These
|
|
184
|
+
/// classes are useful for dropping the gutter in fluid situations.
|
|
185
|
+
/// @access private
|
|
186
|
+
/// @group @carbon/grid
|
|
187
|
+
@mixin -no-gutter {
|
|
188
|
+
.#{$prefix}--no-gutter,
|
|
189
|
+
.#{$prefix}--row.#{$prefix}--no-gutter [class*='#{$prefix}--col'] {
|
|
190
|
+
padding-right: 0;
|
|
191
|
+
padding-left: 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.#{$prefix}--no-gutter--start,
|
|
195
|
+
.#{$prefix}--row.#{$prefix}--no-gutter--start [class*='#{$prefix}--col'] {
|
|
196
|
+
padding-left: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.#{$prefix}--no-gutter--end,
|
|
200
|
+
.#{$prefix}--row.#{$prefix}--no-gutter--end [class*='#{$prefix}--col'] {
|
|
201
|
+
padding-right: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// Deprecated ☠️
|
|
205
|
+
.#{$prefix}--no-gutter--left,
|
|
206
|
+
.#{$prefix}--row.#{$prefix}--no-gutter--left [class*='#{$prefix}--col'] {
|
|
207
|
+
padding-left: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.#{$prefix}--no-gutter--right,
|
|
211
|
+
.#{$prefix}--row.#{$prefix}--no-gutter--right [class*='#{$prefix}--col'] {
|
|
212
|
+
padding-right: 0;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// -----------------------------------------------------------------------------
|
|
217
|
+
// Hang
|
|
218
|
+
// -----------------------------------------------------------------------------
|
|
219
|
+
|
|
220
|
+
/// Add `hang--start` and `hang--end` classes for a given gutter. These classes are
|
|
221
|
+
/// used alongside `no-gutter--start` and `no-gutter--end` to "hang" type.
|
|
222
|
+
/// @param {Number} $gutter [$grid-gutter] - The gutter in the grid system
|
|
223
|
+
/// @access private
|
|
224
|
+
/// @group @carbon/grid
|
|
225
|
+
@mixin -hang($gutter: $grid-gutter) {
|
|
226
|
+
.#{$prefix}--hang--start {
|
|
227
|
+
padding-left: $gutter * 0.5;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.#{$prefix}--hang--end {
|
|
231
|
+
padding-right: $gutter * 0.5;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Deprecated ☠️
|
|
235
|
+
.#{$prefix}--hang--left {
|
|
236
|
+
padding-left: $gutter * 0.5;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.#{$prefix}--hang--right {
|
|
240
|
+
padding-right: $gutter * 0.5;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// -----------------------------------------------------------------------------
|
|
245
|
+
// Grid
|
|
246
|
+
// -----------------------------------------------------------------------------
|
|
247
|
+
|
|
248
|
+
/// Create the container for a grid. Will cause full-bleed for the grid unless
|
|
249
|
+
/// max-width properties are added with `make-container-max-widths`
|
|
250
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
251
|
+
/// @access private
|
|
252
|
+
/// @group @carbon/grid
|
|
253
|
+
@mixin -make-container($breakpoints: $grid-breakpoints) {
|
|
254
|
+
margin-right: auto;
|
|
255
|
+
margin-left: auto;
|
|
256
|
+
|
|
257
|
+
@include -set-largest-breakpoint();
|
|
258
|
+
|
|
259
|
+
@each $name, $value in $breakpoints {
|
|
260
|
+
$prev-breakpoint: map-get($breakpoints, breakpoint-prev($name));
|
|
261
|
+
$margin: map-get($value, margin);
|
|
262
|
+
|
|
263
|
+
@if $prev-breakpoint {
|
|
264
|
+
$prev-margin: map-get($prev-breakpoint, margin);
|
|
265
|
+
@if $prev-margin != $margin {
|
|
266
|
+
@include breakpoint($name) {
|
|
267
|
+
padding-right: #{($grid-gutter * 0.5) + $margin};
|
|
268
|
+
padding-left: #{($grid-gutter * 0.5) + $margin};
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
} @else {
|
|
272
|
+
@include breakpoint($name) {
|
|
273
|
+
padding-right: #{($grid-gutter * 0.5) + $margin};
|
|
274
|
+
padding-left: #{($grid-gutter * 0.5) + $margin};
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/// Get the last breakpoint width and set max-width to its value
|
|
281
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
282
|
+
/// @access private
|
|
283
|
+
/// @group @carbon/grid
|
|
284
|
+
@mixin -set-largest-breakpoint($breakpoints: $grid-breakpoints) {
|
|
285
|
+
$largest-breakpoint: last-map-item($breakpoints);
|
|
286
|
+
|
|
287
|
+
max-width: map-get($largest-breakpoint, 'width');
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/// Add in the max-widths for each breakpoint to the container
|
|
291
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
292
|
+
/// @access private
|
|
293
|
+
/// @group @carbon/grid
|
|
294
|
+
@mixin -make-container-max-widths($breakpoints: $grid-breakpoints) {
|
|
295
|
+
@each $name, $value in $breakpoints {
|
|
296
|
+
@include breakpoint($name) {
|
|
297
|
+
max-width: map-get($value, width);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/// Generate the CSS for a grid for the given breakpoints and gutters
|
|
303
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - The default breakpoints
|
|
304
|
+
/// @param {Number} $grid-gutter [$grid-gutter] - The default gutters
|
|
305
|
+
/// @param {Number} $condensed-gutter [$grid-gutter--condensed] - The condensed mode gutter
|
|
306
|
+
/// @access public
|
|
307
|
+
/// @group @carbon/grid
|
|
308
|
+
@mixin flex-grid(
|
|
309
|
+
$breakpoints: $grid-breakpoints,
|
|
310
|
+
$grid-gutter: $grid-gutter,
|
|
311
|
+
$condensed-gutter: $grid-gutter--condensed
|
|
312
|
+
) {
|
|
313
|
+
.#{$prefix}--grid {
|
|
314
|
+
@include -make-container($breakpoints);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@include largest-breakpoint($breakpoints) {
|
|
318
|
+
.#{$prefix}--grid--full-width {
|
|
319
|
+
max-width: 100%;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.#{$prefix}--row {
|
|
324
|
+
@include -make-row();
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.#{$prefix}--row-padding [class*='#{$prefix}--col'],
|
|
328
|
+
.#{$prefix}--col-padding {
|
|
329
|
+
padding-top: $grid-gutter * 0.5;
|
|
330
|
+
padding-bottom: $grid-gutter * 0.5;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.#{$prefix}--grid--condensed [class*='#{$prefix}--col'] {
|
|
334
|
+
padding-top: $condensed-gutter * 0.5;
|
|
335
|
+
padding-bottom: $condensed-gutter * 0.5;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@include -make-grid-columns($breakpoints, $grid-gutter);
|
|
339
|
+
@include -no-gutter();
|
|
340
|
+
@include -hang($grid-gutter);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@if $flex-grid-columns == 12 {
|
|
344
|
+
$flex-12-column-grid: map-merge(
|
|
345
|
+
$grid-breakpoints,
|
|
346
|
+
(
|
|
347
|
+
lg:
|
|
348
|
+
map-merge(
|
|
349
|
+
map-get($grid-breakpoints, lg),
|
|
350
|
+
(
|
|
351
|
+
columns: 12,
|
|
352
|
+
)
|
|
353
|
+
),
|
|
354
|
+
xlg:
|
|
355
|
+
map-merge(
|
|
356
|
+
map-get($grid-breakpoints, xlg),
|
|
357
|
+
(
|
|
358
|
+
columns: 12,
|
|
359
|
+
)
|
|
360
|
+
),
|
|
361
|
+
max:
|
|
362
|
+
map-merge(
|
|
363
|
+
map-get($grid-breakpoints, max),
|
|
364
|
+
(
|
|
365
|
+
columns: 12,
|
|
366
|
+
)
|
|
367
|
+
),
|
|
368
|
+
)
|
|
369
|
+
);
|
|
370
|
+
|
|
371
|
+
@include flex-grid($breakpoints: $flex-12-column-grid);
|
|
372
|
+
} @else {
|
|
373
|
+
@include flex-grid();
|
|
374
|
+
}
|
|
@@ -176,8 +176,6 @@
|
|
|
176
176
|
$layer-selected-hover: map-get($theme, 'layer-selected-hover') !global;
|
|
177
177
|
$layer-selected-inverse: map-get($theme, 'layer-selected-inverse') !global;
|
|
178
178
|
$border-subtle-selected: map-get($theme, 'border-subtle-selected') !global;
|
|
179
|
-
$layer-disabled: map-get($theme, 'layer-disabled') !global;
|
|
180
|
-
$field-disabled: map-get($theme, 'field-disabled') !global;
|
|
181
179
|
$border-disabled: map-get($theme, 'border-disabled') !global;
|
|
182
180
|
$text-disabled: map-get($theme, 'text-disabled') !global;
|
|
183
181
|
$button-disabled: map-get($theme, 'button-disabled') !global;
|
|
@@ -358,8 +356,6 @@
|
|
|
358
356
|
$layer-selected-hover: $hover-selected-ui !global;
|
|
359
357
|
$layer-selected-inverse: $ui-05 !global;
|
|
360
358
|
$border-subtle-selected: $active-ui !global;
|
|
361
|
-
$layer-disabled: $disabled-01 !global;
|
|
362
|
-
$field-disabled: $disabled-01 !global;
|
|
363
359
|
$border-disabled: $disabled-01 !global;
|
|
364
360
|
$text-disabled: $disabled-02 !global;
|
|
365
361
|
$button-disabled: $disabled-02 !global;
|
|
@@ -901,14 +897,6 @@
|
|
|
901
897
|
--#{$custom-property-prefix}-border-subtle-selected,
|
|
902
898
|
map-get($theme, 'border-subtle-selected')
|
|
903
899
|
) !global;
|
|
904
|
-
$layer-disabled: var(
|
|
905
|
-
--#{$custom-property-prefix}-layer-disabled,
|
|
906
|
-
map-get($theme, 'layer-disabled')
|
|
907
|
-
) !global;
|
|
908
|
-
$field-disabled: var(
|
|
909
|
-
--#{$custom-property-prefix}-field-disabled,
|
|
910
|
-
map-get($theme, 'field-disabled')
|
|
911
|
-
) !global;
|
|
912
900
|
$border-disabled: var(
|
|
913
901
|
--#{$custom-property-prefix}-border-disabled,
|
|
914
902
|
map-get($theme, 'border-disabled')
|
|
@@ -2489,32 +2477,6 @@
|
|
|
2489
2477
|
);
|
|
2490
2478
|
}
|
|
2491
2479
|
|
|
2492
|
-
@if should-emit(
|
|
2493
|
-
$theme,
|
|
2494
|
-
$parent-carbon-theme,
|
|
2495
|
-
'layer-disabled',
|
|
2496
|
-
$emit-difference
|
|
2497
|
-
)
|
|
2498
|
-
{
|
|
2499
|
-
@include custom-property(
|
|
2500
|
-
'layer-disabled',
|
|
2501
|
-
map-get($theme, 'layer-disabled')
|
|
2502
|
-
);
|
|
2503
|
-
}
|
|
2504
|
-
|
|
2505
|
-
@if should-emit(
|
|
2506
|
-
$theme,
|
|
2507
|
-
$parent-carbon-theme,
|
|
2508
|
-
'field-disabled',
|
|
2509
|
-
$emit-difference
|
|
2510
|
-
)
|
|
2511
|
-
{
|
|
2512
|
-
@include custom-property(
|
|
2513
|
-
'field-disabled',
|
|
2514
|
-
map-get($theme, 'field-disabled')
|
|
2515
|
-
);
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
2480
|
@if should-emit(
|
|
2519
2481
|
$theme,
|
|
2520
2482
|
$parent-carbon-theme,
|
|
@@ -139,8 +139,6 @@ $carbon--theme--white: (
|
|
|
139
139
|
layer-selected-hover: #cacaca,
|
|
140
140
|
layer-selected-inverse: #161616,
|
|
141
141
|
border-subtle-selected: #c6c6c6,
|
|
142
|
-
layer-disabled: #f4f4f4,
|
|
143
|
-
field-disabled: #f4f4f4,
|
|
144
142
|
border-disabled: #f4f4f4,
|
|
145
143
|
text-disabled: #c6c6c6,
|
|
146
144
|
button-disabled: #c6c6c6,
|
|
@@ -957,8 +955,6 @@ $carbon--theme--g10: map-merge(
|
|
|
957
955
|
background: #f4f4f4,
|
|
958
956
|
layer: #ffffff,
|
|
959
957
|
field: #ffffff,
|
|
960
|
-
layer-disabled: #ffffff,
|
|
961
|
-
field-disabled: #ffffff,
|
|
962
958
|
border-disabled: #ffffff,
|
|
963
959
|
)
|
|
964
960
|
) !default;
|
|
@@ -1029,8 +1025,6 @@ $carbon--theme--g80: map-merge(
|
|
|
1029
1025
|
layer-selected-hover: #616161,
|
|
1030
1026
|
layer-selected-inverse: #f4f4f4,
|
|
1031
1027
|
border-subtle-selected: #8d8d8d,
|
|
1032
|
-
layer-disabled: #525252,
|
|
1033
|
-
field-disabled: #525252,
|
|
1034
1028
|
border-disabled: #525252,
|
|
1035
1029
|
text-disabled: #8d8d8d,
|
|
1036
1030
|
button-disabled: #8d8d8d,
|
|
@@ -1215,8 +1209,6 @@ $carbon--theme--g90: map-merge(
|
|
|
1215
1209
|
layer-selected-hover: #656565,
|
|
1216
1210
|
layer-selected-inverse: #f4f4f4,
|
|
1217
1211
|
border-subtle-selected: #6f6f6f,
|
|
1218
|
-
layer-disabled: #393939,
|
|
1219
|
-
field-disabled: #393939,
|
|
1220
1212
|
border-disabled: #393939,
|
|
1221
1213
|
text-disabled: #6f6f6f,
|
|
1222
1214
|
button-disabled: #6f6f6f,
|
|
@@ -1350,8 +1342,6 @@ $carbon--theme--g100: map-merge(
|
|
|
1350
1342
|
layer-selected-hover: #4c4c4c,
|
|
1351
1343
|
layer-selected-inverse: #f4f4f4,
|
|
1352
1344
|
border-subtle-selected: #525252,
|
|
1353
|
-
layer-disabled: #262626,
|
|
1354
|
-
field-disabled: #262626,
|
|
1355
1345
|
border-disabled: #262626,
|
|
1356
1346
|
text-disabled: #525252,
|
|
1357
1347
|
button-disabled: #525252,
|
|
@@ -1487,8 +1477,6 @@ $carbon--theme--v9: map-merge(
|
|
|
1487
1477
|
layer-selected-hover: #dfeafa,
|
|
1488
1478
|
layer-selected-inverse: #5a6872,
|
|
1489
1479
|
border-subtle-selected: #dfeafa,
|
|
1490
|
-
layer-disabled: #fafbfd,
|
|
1491
|
-
field-disabled: #fafbfd,
|
|
1492
1480
|
border-disabled: #fafbfd,
|
|
1493
1481
|
text-disabled: #dfe3e6,
|
|
1494
1482
|
button-disabled: #dfe3e6,
|
|
@@ -2304,18 +2292,6 @@ $carbon--theme: (
|
|
|
2304
2292
|
$border-subtle-selected,
|
|
2305
2293
|
map-get($carbon--theme--white, 'border-subtle-selected')
|
|
2306
2294
|
),
|
|
2307
|
-
layer-disabled:
|
|
2308
|
-
if(
|
|
2309
|
-
global-variable-exists('layer-disabled'),
|
|
2310
|
-
$layer-disabled,
|
|
2311
|
-
map-get($carbon--theme--white, 'layer-disabled')
|
|
2312
|
-
),
|
|
2313
|
-
field-disabled:
|
|
2314
|
-
if(
|
|
2315
|
-
global-variable-exists('field-disabled'),
|
|
2316
|
-
$field-disabled,
|
|
2317
|
-
map-get($carbon--theme--white, 'field-disabled')
|
|
2318
|
-
),
|
|
2319
2295
|
border-disabled:
|
|
2320
2296
|
if(
|
|
2321
2297
|
global-variable-exists('border-disabled'),
|
|
@@ -1380,26 +1380,6 @@ $border-subtle-selected: if(
|
|
|
1380
1380
|
#c6c6c6
|
|
1381
1381
|
) !default;
|
|
1382
1382
|
|
|
1383
|
-
/// @type {undefined}
|
|
1384
|
-
/// @access public
|
|
1385
|
-
/// @group @carbon/themes
|
|
1386
|
-
$layer-disabled: if(
|
|
1387
|
-
global-variable-exists('carbon--theme') and
|
|
1388
|
-
map-has-key($carbon--theme, 'layer-disabled'),
|
|
1389
|
-
map-get($carbon--theme, 'layer-disabled'),
|
|
1390
|
-
#f4f4f4
|
|
1391
|
-
) !default;
|
|
1392
|
-
|
|
1393
|
-
/// @type {undefined}
|
|
1394
|
-
/// @access public
|
|
1395
|
-
/// @group @carbon/themes
|
|
1396
|
-
$field-disabled: if(
|
|
1397
|
-
global-variable-exists('carbon--theme') and
|
|
1398
|
-
map-has-key($carbon--theme, 'field-disabled'),
|
|
1399
|
-
map-get($carbon--theme, 'field-disabled'),
|
|
1400
|
-
#f4f4f4
|
|
1401
|
-
) !default;
|
|
1402
|
-
|
|
1403
1383
|
/// @type {undefined}
|
|
1404
1384
|
/// @access public
|
|
1405
1385
|
/// @group @carbon/themes
|
|
@@ -36,7 +36,6 @@ $white: (
|
|
|
36
36
|
field-01: #f4f4f4,
|
|
37
37
|
field-02: #ffffff,
|
|
38
38
|
field-03: #f4f4f4,
|
|
39
|
-
field-disabled: #f4f4f4,
|
|
40
39
|
field-hover-01: #e8e8e8,
|
|
41
40
|
field-hover-02: #e8e8e8,
|
|
42
41
|
field-hover-03: #e8e8e8,
|
|
@@ -44,7 +43,7 @@ $white: (
|
|
|
44
43
|
focus-inset: #ffffff,
|
|
45
44
|
focus-inverse: #ffffff,
|
|
46
45
|
highlight: #d0e2ff,
|
|
47
|
-
icon-disabled:
|
|
46
|
+
icon-disabled: rgba(22, 22, 22, 0.25),
|
|
48
47
|
icon-inverse: #ffffff,
|
|
49
48
|
icon-on-color: #ffffff,
|
|
50
49
|
icon-on-color-disabled: #8d8d8d,
|
|
@@ -66,7 +65,6 @@ $white: (
|
|
|
66
65
|
layer-active-01: #c6c6c6,
|
|
67
66
|
layer-active-02: #c6c6c6,
|
|
68
67
|
layer-active-03: #c6c6c6,
|
|
69
|
-
layer-disabled: #f4f4f4,
|
|
70
68
|
layer-hover-01: #e8e8e8,
|
|
71
69
|
layer-hover-02: #e8e8e8,
|
|
72
70
|
layer-hover-03: #e8e8e8,
|
|
@@ -79,6 +77,8 @@ $white: (
|
|
|
79
77
|
layer-selected-hover-03: #d1d1d1,
|
|
80
78
|
layer-selected-inverse: #161616,
|
|
81
79
|
link-inverse: #78a9ff,
|
|
80
|
+
link-inverse-active: #f4f4f4,
|
|
81
|
+
link-inverse-hover: #a6c8ff,
|
|
82
82
|
link-primary: #0f62fe,
|
|
83
83
|
link-primary-hover: #0043ce,
|
|
84
84
|
link-secondary: #0043ce,
|
|
@@ -141,7 +141,6 @@ $g10: (
|
|
|
141
141
|
field-01: #ffffff,
|
|
142
142
|
field-02: #f4f4f4,
|
|
143
143
|
field-03: #ffffff,
|
|
144
|
-
field-disabled: #ffffff,
|
|
145
144
|
field-hover-01: #e8e8e8,
|
|
146
145
|
field-hover-02: #e8e8e8,
|
|
147
146
|
field-hover-03: #e8e8e8,
|
|
@@ -149,7 +148,7 @@ $g10: (
|
|
|
149
148
|
focus-inset: #ffffff,
|
|
150
149
|
focus-inverse: #ffffff,
|
|
151
150
|
highlight: #d0e2ff,
|
|
152
|
-
icon-disabled:
|
|
151
|
+
icon-disabled: rgba(22, 22, 22, 0.25),
|
|
153
152
|
icon-inverse: #ffffff,
|
|
154
153
|
icon-on-color: #ffffff,
|
|
155
154
|
icon-on-color-disabled: #8d8d8d,
|
|
@@ -171,7 +170,6 @@ $g10: (
|
|
|
171
170
|
layer-active-01: #c6c6c6,
|
|
172
171
|
layer-active-02: #c6c6c6,
|
|
173
172
|
layer-active-03: #c6c6c6,
|
|
174
|
-
layer-disabled: #ffffff,
|
|
175
173
|
layer-hover-01: #e8e8e8,
|
|
176
174
|
layer-hover-02: #e8e8e8,
|
|
177
175
|
layer-hover-03: #e8e8e8,
|
|
@@ -184,6 +182,8 @@ $g10: (
|
|
|
184
182
|
layer-selected-hover-03: #d1d1d1,
|
|
185
183
|
layer-selected-inverse: #161616,
|
|
186
184
|
link-inverse: #78a9ff,
|
|
185
|
+
link-inverse-active: #f4f4f4,
|
|
186
|
+
link-inverse-hover: #a6c8ff,
|
|
187
187
|
link-primary: #0f62fe,
|
|
188
188
|
link-primary-hover: #0043ce,
|
|
189
189
|
link-secondary: #0043ce,
|
|
@@ -246,7 +246,6 @@ $g90: (
|
|
|
246
246
|
field-01: #393939,
|
|
247
247
|
field-02: #525252,
|
|
248
248
|
field-03: #6f6f6f,
|
|
249
|
-
field-disabled: #393939,
|
|
250
249
|
field-hover-01: #474747,
|
|
251
250
|
field-hover-02: #636363,
|
|
252
251
|
field-hover-03: #5e5e5e,
|
|
@@ -254,7 +253,7 @@ $g90: (
|
|
|
254
253
|
focus-inset: #161616,
|
|
255
254
|
focus-inverse: #0f62fe,
|
|
256
255
|
highlight: #0043ce,
|
|
257
|
-
icon-disabled:
|
|
256
|
+
icon-disabled: rgba(244, 244, 244, 0.25),
|
|
258
257
|
icon-inverse: #161616,
|
|
259
258
|
icon-on-color: #ffffff,
|
|
260
259
|
icon-on-color-disabled: rgba(255, 255, 255, 0.25),
|
|
@@ -271,12 +270,11 @@ $g90: (
|
|
|
271
270
|
layer-accent-active-02: #393939,
|
|
272
271
|
layer-accent-active-03: #525252,
|
|
273
272
|
layer-accent-hover-01: #636363,
|
|
274
|
-
layer-accent-hover-02: #
|
|
273
|
+
layer-accent-hover-02: #5e5e5e,
|
|
275
274
|
layer-accent-hover-03: #7a7a7a,
|
|
276
275
|
layer-active-01: #6f6f6f,
|
|
277
276
|
layer-active-02: #8d8d8d,
|
|
278
277
|
layer-active-03: #393939,
|
|
279
|
-
layer-disabled: #393939,
|
|
280
278
|
layer-hover-01: #474747,
|
|
281
279
|
layer-hover-02: #636363,
|
|
282
280
|
layer-hover-03: #5e5e5e,
|
|
@@ -289,6 +287,8 @@ $g90: (
|
|
|
289
287
|
layer-selected-hover-03: #7a7a7a,
|
|
290
288
|
layer-selected-inverse: #f4f4f4,
|
|
291
289
|
link-inverse: #0f62fe,
|
|
290
|
+
link-inverse-active: #161616,
|
|
291
|
+
link-inverse-hover: #0043ce,
|
|
292
292
|
link-primary: #78a9ff,
|
|
293
293
|
link-primary-hover: #a6c8ff,
|
|
294
294
|
link-secondary: #a6c8ff,
|
|
@@ -303,7 +303,7 @@ $g90: (
|
|
|
303
303
|
support-error: #ff8389,
|
|
304
304
|
support-error-inverse: #da1e28,
|
|
305
305
|
support-info: #4589ff,
|
|
306
|
-
support-info-inverse: #
|
|
306
|
+
support-info-inverse: #0043ce,
|
|
307
307
|
support-success: #42be65,
|
|
308
308
|
support-success-inverse: #24a148,
|
|
309
309
|
support-warning: #f1c21b,
|
|
@@ -351,15 +351,14 @@ $g100: (
|
|
|
351
351
|
field-01: #262626,
|
|
352
352
|
field-02: #393939,
|
|
353
353
|
field-03: #525252,
|
|
354
|
-
field-disabled: #393939,
|
|
355
354
|
field-hover-01: #333333,
|
|
356
355
|
field-hover-02: #474747,
|
|
357
356
|
field-hover-03: #636363,
|
|
358
357
|
focus: #ffffff,
|
|
359
358
|
focus-inset: #161616,
|
|
360
359
|
focus-inverse: #0f62fe,
|
|
361
|
-
highlight: #
|
|
362
|
-
icon-disabled:
|
|
360
|
+
highlight: #002d9c,
|
|
361
|
+
icon-disabled: rgba(244, 244, 244, 0.25),
|
|
363
362
|
icon-inverse: #161616,
|
|
364
363
|
icon-on-color: #ffffff,
|
|
365
364
|
icon-on-color-disabled: rgba(255, 255, 255, 0.25),
|
|
@@ -381,7 +380,6 @@ $g100: (
|
|
|
381
380
|
layer-active-01: #525252,
|
|
382
381
|
layer-active-02: #6f6f6f,
|
|
383
382
|
layer-active-03: #8d8d8d,
|
|
384
|
-
layer-disabled: #262626,
|
|
385
383
|
layer-hover-01: #333333,
|
|
386
384
|
layer-hover-02: #474747,
|
|
387
385
|
layer-hover-03: #636363,
|
|
@@ -394,6 +392,8 @@ $g100: (
|
|
|
394
392
|
layer-selected-hover-03: #5e5e5e,
|
|
395
393
|
layer-selected-inverse: #f4f4f4,
|
|
396
394
|
link-inverse: #0f62fe,
|
|
395
|
+
link-inverse-active: #161616,
|
|
396
|
+
link-inverse-hover: #0043ce,
|
|
397
397
|
link-primary: #78a9ff,
|
|
398
398
|
link-primary-hover: #a6c8ff,
|
|
399
399
|
link-secondary: #a6c8ff,
|
|
@@ -408,13 +408,13 @@ $g100: (
|
|
|
408
408
|
support-error: #fa4d56,
|
|
409
409
|
support-error-inverse: #da1e28,
|
|
410
410
|
support-info: #4589ff,
|
|
411
|
-
support-info-inverse: #
|
|
411
|
+
support-info-inverse: #0043ce,
|
|
412
412
|
support-success: #42be65,
|
|
413
413
|
support-success-inverse: #24a148,
|
|
414
414
|
support-warning: #f1c21b,
|
|
415
415
|
support-warning-inverse: #f1c21b,
|
|
416
416
|
text-disabled: rgba(244, 244, 244, 0.25),
|
|
417
|
-
text-error: #
|
|
417
|
+
text-error: #ff8389,
|
|
418
418
|
text-helper: #a8a8a8,
|
|
419
419
|
text-inverse: #161616,
|
|
420
420
|
text-on-color: #ffffff,
|
|
@@ -422,7 +422,7 @@ $g100: (
|
|
|
422
422
|
text-placeholder: rgba(244, 244, 244, 0.4),
|
|
423
423
|
text-primary: #f4f4f4,
|
|
424
424
|
text-secondary: #c6c6c6,
|
|
425
|
-
toggle-off: #
|
|
425
|
+
toggle-off: #6f6f6f,
|
|
426
426
|
) !default;
|
|
427
427
|
$g100: utilities.merge(
|
|
428
428
|
$g100,
|
|
@@ -88,9 +88,6 @@ $layer-selected-03: _get('layer-selected-03') !default;
|
|
|
88
88
|
/// The CSS Custom Property for the `layer-selected-hover-03` token
|
|
89
89
|
$layer-selected-hover-03: _get('layer-selected-hover-03') !default;
|
|
90
90
|
|
|
91
|
-
/// The CSS Custom Property for the `layer-disabled` token
|
|
92
|
-
$layer-disabled: _get('layer-disabled') !default;
|
|
93
|
-
|
|
94
91
|
/// The CSS Custom Property for the `layer-selected-inverse` token
|
|
95
92
|
$layer-selected-inverse: _get('layer-selected-inverse') !default;
|
|
96
93
|
|
|
@@ -142,9 +139,6 @@ $field-03: _get('field-03') !default;
|
|
|
142
139
|
/// The CSS Custom Property for the `field-hover-03` token
|
|
143
140
|
$field-hover-03: _get('field-hover-03') !default;
|
|
144
141
|
|
|
145
|
-
/// The CSS Custom Property for the `field-disabled` token
|
|
146
|
-
$field-disabled: _get('field-disabled') !default;
|
|
147
|
-
|
|
148
142
|
/// The CSS Custom Property for the `interactive` token
|
|
149
143
|
$interactive: _get('interactive') !default;
|
|
150
144
|
|
|
@@ -223,11 +217,17 @@ $link-primary-hover: _get('link-primary-hover') !default;
|
|
|
223
217
|
/// The CSS Custom Property for the `link-secondary` token
|
|
224
218
|
$link-secondary: _get('link-secondary') !default;
|
|
225
219
|
|
|
220
|
+
/// The CSS Custom Property for the `link-visited` token
|
|
221
|
+
$link-visited: _get('link-visited') !default;
|
|
222
|
+
|
|
226
223
|
/// The CSS Custom Property for the `link-inverse` token
|
|
227
224
|
$link-inverse: _get('link-inverse') !default;
|
|
228
225
|
|
|
229
|
-
/// The CSS Custom Property for the `link-
|
|
230
|
-
$link-
|
|
226
|
+
/// The CSS Custom Property for the `link-inverse-active` token
|
|
227
|
+
$link-inverse-active: _get('link-inverse-active') !default;
|
|
228
|
+
|
|
229
|
+
/// The CSS Custom Property for the `link-inverse-hover` token
|
|
230
|
+
$link-inverse-hover: _get('link-inverse-hover') !default;
|
|
231
231
|
|
|
232
232
|
/// The CSS Custom Property for the `icon-primary` token
|
|
233
233
|
$icon-primary: _get('icon-primary') !default;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
// stylelint-disable number-max-precision
|
|
9
9
|
|
|
10
10
|
@use 'sass:map';
|
|
11
|
+
@use 'sass:math';
|
|
11
12
|
@use '@carbon/layout';
|
|
12
13
|
@use 'font-family';
|
|
13
14
|
@use 'scale';
|
|
@@ -696,7 +697,7 @@ $tokens: (
|
|
|
696
697
|
/// @access public
|
|
697
698
|
/// @group @carbon/type
|
|
698
699
|
@function strip-unit($value) {
|
|
699
|
-
@return $value
|
|
700
|
+
@return math.div($value, $value * 0 + 1);
|
|
700
701
|
}
|
|
701
702
|
|
|
702
703
|
/// This helper includes fluid type styles for the given token value. Fluid type
|
|
@@ -125,7 +125,6 @@ Array [
|
|
|
125
125
|
"field",
|
|
126
126
|
"field01",
|
|
127
127
|
"field02",
|
|
128
|
-
"fieldDisabled",
|
|
129
128
|
"fieldHover",
|
|
130
129
|
"fluid",
|
|
131
130
|
"fluidDisplay01",
|
|
@@ -234,7 +233,6 @@ Array [
|
|
|
234
233
|
"layerAccentActive",
|
|
235
234
|
"layerAccentHover",
|
|
236
235
|
"layerActive",
|
|
237
|
-
"layerDisabled",
|
|
238
236
|
"layerHover",
|
|
239
237
|
"layerSelected",
|
|
240
238
|
"layerSelectedDisabled",
|