@progressiveui/styles 10.30.0 → 11.0.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.
Files changed (56) hide show
  1. package/index.scss +0 -2
  2. package/package.json +2 -2
  3. package/scss/_breakpoint.scss +191 -2
  4. package/scss/_carbonMotion.scss +79 -0
  5. package/scss/_motion.scss +2 -9
  6. package/scss/_type.scss +22 -23
  7. package/scss/components/_index.scss +3 -1
  8. package/scss/components/accordion/_accordion.scss +6 -4
  9. package/scss/components/banner-navigation/_banner-navigation.scss +7 -5
  10. package/scss/components/breadcrumb/_breadcrumb.scss +3 -3
  11. package/scss/components/button/_button.scss +5 -3
  12. package/scss/components/button/_mixins.scss +2 -0
  13. package/scss/components/card/_card.scss +1 -1
  14. package/scss/components/checkbox/_checkbox.scss +3 -4
  15. package/scss/components/content-switcher/_content-switcher.scss +12 -17
  16. package/scss/components/credits/_credits.scss +4 -3
  17. package/scss/components/date-picker/_date-picker.scss +5 -3
  18. package/scss/components/date-picker-new/_date-picker-new.scss +5 -10
  19. package/scss/components/date-picker-new/react-datepicker/datepicker.scss +2 -2
  20. package/scss/components/date-picker-new/react-datepicker/mixins.scss +1 -0
  21. package/scss/components/file-uploader/_file-uploader.scss +2 -3
  22. package/scss/components/footer/_footer.scss +7 -6
  23. package/scss/components/form/_form.scss +21 -17
  24. package/scss/components/hero/_hero.scss +15 -13
  25. package/scss/components/link/_link.scss +12 -12
  26. package/scss/components/loading/_keyframes.scss +1 -8
  27. package/scss/components/main-navigation/_main-navigation.scss +8 -10
  28. package/scss/components/notification/_notification.scss +6 -5
  29. package/scss/components/number-input/_number-input.scss +30 -31
  30. package/scss/components/pagination/_pagination.scss +14 -11
  31. package/scss/components/radio-button/_radio-button.scss +12 -10
  32. package/scss/components/read-more/_read-more.scss +5 -4
  33. package/scss/components/search/_search.scss +26 -29
  34. package/scss/components/secondary-navigation/_secondary-navigation.scss +4 -8
  35. package/scss/components/select/_select.scss +4 -2
  36. package/scss/components/sidebar/_sidebar.scss +4 -4
  37. package/scss/components/skeleton-text/_skeleton-text.scss +1 -2
  38. package/scss/components/step-navigation/_step-navigation.scss +9 -8
  39. package/scss/components/story/_story.scss +8 -8
  40. package/scss/components/tabs/_tabs.scss +11 -9
  41. package/scss/components/tag/_tag.scss +11 -27
  42. package/scss/components/text-area/_text-area.scss +5 -12
  43. package/scss/components/toggle/_toggle.scss +2 -3
  44. package/scss/components/tooltip/_tooltip.scss +12 -20
  45. package/scss/components/tooltip/animations/fade.scss +2 -2
  46. package/scss/components/tooltip/themes/light-border.scss +2 -2
  47. package/scss/components/tooltip/themes/light.scss +2 -2
  48. package/scss/utilities/_button-reset.scss +3 -1
  49. package/scss/utilities/_component-reset.scss +0 -7
  50. package/scss/utilities/_config-breakpoints.scss +84 -0
  51. package/scss/utilities/_convert.scss +37 -14
  52. package/scss/utilities/_focus-outline.scss +4 -3
  53. package/scss/utilities/_input-base.scss +19 -24
  54. package/scss/utilities/_layer.scss +5 -3
  55. package/scss/utilities/_z-index.scss +3 -8
  56. package/styles.css +1 -1
@@ -34,32 +34,30 @@ $input-border: 1px solid $field-border-color;
34
34
 
35
35
  .#{$prefix}--search-input {
36
36
  @include reset;
37
- @include type.type-style("body-short-02");
38
37
  @include focus-outline("reset");
38
+ @include type.type-style("body-short-02");
39
39
 
40
- width: 100%;
41
- order: 1;
42
- padding: 0 $spacing-08;
43
40
 
44
- //@include font-family('sans');
45
- //@include type-style('body-short-02');
46
- //height: $input-height;
47
- appearance: none;
48
- display: block;
49
- width: 100%;
50
- padding: 0 $spacing-06 0 $spacing-03;
51
- border: $input-border;
52
- order: 2;
53
- border-radius: 0;
54
- cursor: pointer;
55
-
56
- appearance: none;
57
- background-color: $fill-field;
58
- color: $text-body-default;
59
- text-overflow: ellipsis;
60
- transition: background-color $duration-fast-02 motion(standard, productive),
41
+ & {
42
+ width: 100%;
43
+ order: 1;
44
+ padding: 0 $spacing-08;
45
+ appearance: none;
46
+ display: block;
47
+ width: 100%;
48
+ padding: 0 $spacing-06 0 $spacing-03;
49
+ border: $input-border;
50
+ order: 2;
51
+ border-radius: 0;
52
+ cursor: pointer;
53
+
54
+ appearance: none;
55
+ background-color: $fill-field;
56
+ color: $text-body-default;
57
+ text-overflow: ellipsis;
58
+ transition: background-color $duration-fast-02 motion(standard, productive),
61
59
  outline $duration-fast-02 motion(standard, productive);
62
-
60
+ }
63
61
  &:focus {
64
62
  @include focus-outline("outline");
65
63
  }
@@ -149,11 +147,11 @@ $input-border: 1px solid $field-border-color;
149
147
  .#{$prefix}--search-close {
150
148
  @include button-reset.reset(false);
151
149
  @include focus-outline("reset");
152
-
153
- position: absolute;
154
- top: 0;
155
- right: 0;
156
-
150
+ & {
151
+ position: absolute;
152
+ top: 0;
153
+ right: 0;
154
+ }
157
155
  &::before {
158
156
  position: absolute;
159
157
  top: calcRem(1px);
@@ -309,9 +307,8 @@ $input-border: 1px solid $field-border-color;
309
307
  .#{$prefix}--search--xl.#{$prefix}--skeleton .#{$prefix}--search-input,
310
308
  .#{$prefix}--search--lg.#{$prefix}--skeleton .#{$prefix}--search-input,
311
309
  .#{$prefix}--search--sm.#{$prefix}--skeleton .#{$prefix}--search-input {
312
- @include skeleton;
313
-
314
310
  width: 100%;
311
+ @include skeleton;
315
312
 
316
313
  &::placeholder {
317
314
  color: transparent;
@@ -24,28 +24,25 @@
24
24
  }
25
25
 
26
26
  .#{$prefix}--secondary-navigation__title {
27
- @include type-style('productive-heading-04');
28
- @include font-family('sans');
29
27
  font-weight: 400;
30
28
  padding-top: $spacing-05;
31
29
  padding-bottom: $spacing-05;
30
+ @include type-style('productive-heading-04');
31
+ @include font-family('sans');
32
32
  }
33
33
 
34
- .#{$prefix}--secondary-navigation__wrapper {
34
+ /* TODO: .#{$prefix}--secondary-navigation__wrapper {
35
35
  display: flex;
36
-
37
36
  @include breakpoint-down('sm') {
38
37
  flex-direction: column-reverse;
39
38
  }
40
-
41
39
  @include breakpoint('sm') {
42
40
  justify-content: space-between;
43
41
  }
44
- }
42
+ } */
45
43
 
46
44
  .#{$prefix}--secondary-navigation__list {
47
45
  padding-top: $spacing-03;
48
-
49
46
  @include breakpoint('sm') {
50
47
  padding: $spacing-06 0 0 0;
51
48
  }
@@ -53,7 +50,6 @@
53
50
 
54
51
  .#{$prefix}--secondary-navigation__additional {
55
52
  padding-top: $spacing-05;
56
-
57
53
  @include breakpoint('sm') {
58
54
  padding: $spacing-06 0 0 0;
59
55
  }
@@ -30,7 +30,7 @@ $input-border: 1px solid var(--neutral-100__color);
30
30
  }
31
31
 
32
32
  .#{$prefix}--select-input {
33
- @include input-base;
33
+
34
34
  height: $input-height;
35
35
  appearance: none;
36
36
  display: block;
@@ -46,6 +46,8 @@ $input-border: 1px solid var(--neutral-100__color);
46
46
  //font-size: $typography-body-copy-16px-regular-font-size;
47
47
 
48
48
  // Hide default select arrow in IE10+
49
+
50
+ @include input-base;
49
51
  &::-ms-expand {
50
52
  display: none;
51
53
  }
@@ -213,9 +215,9 @@ $input-border: 1px solid var(--neutral-100__color);
213
215
 
214
216
  //Skeleton State
215
217
  .#{$prefix}--select.#{$prefix}--skeleton {
216
- @include skeleton;
217
218
  width: 100%;
218
219
  height: 2.5rem;
220
+ @include skeleton;
219
221
  }
220
222
 
221
223
  .#{$prefix}--select.#{$prefix}--skeleton .#{$prefix}--select-input {
@@ -42,6 +42,9 @@
42
42
 
43
43
  .#{$prefix}--sidebar-item-content {
44
44
  width: 100%;
45
+ display: flex;
46
+ flex-direction: column;
47
+ height: 100%;
45
48
  @media print {
46
49
  display: none;
47
50
  }
@@ -51,14 +54,11 @@
51
54
  max-width: 30rem;
52
55
  border-right: 1px solid $border-strong;
53
56
  }
57
+
54
58
  @include breakpoint("lg") {
55
59
  //min-width: auto;
56
60
  max-width: 30rem;
57
61
  }
58
- display: flex;
59
- flex-direction: column;
60
- height: 100%;
61
-
62
62
  @include breakpoint-down("lg") {
63
63
  top: 0;
64
64
  overflow: auto;
@@ -9,11 +9,10 @@
9
9
  @mixin skeleton-text {
10
10
  //skeleton text
11
11
  .#{$prefix}--skeleton__text {
12
- @include skeleton;
13
-
14
12
  width: 100%;
15
13
  height: 1rem;
16
14
  margin-bottom: $spacing-03;
15
+ @include skeleton;
17
16
  }
18
17
 
19
18
  .#{$prefix}--skeleton__heading {
@@ -13,12 +13,13 @@
13
13
  .#{$prefix}--step-navigation {
14
14
  @include type-style("caption-02");
15
15
  @include font-family("sans");
16
- color: $text-body-default;
17
- font-weight: 600;
18
- height: auto;
19
- width: 100%;
20
- position: relative;
21
-
16
+ & {
17
+ color: $text-body-default;
18
+ font-weight: 600;
19
+ height: auto;
20
+ width: 100%;
21
+ position: relative;
22
+ }
22
23
  @include breakpoint("md") {
23
24
  background: none;
24
25
  min-height: calcRem(49px);
@@ -117,15 +118,15 @@
117
118
 
118
119
  .#{$prefix}--step-navigation.#{$prefix}--skeleton
119
120
  .#{$prefix}--step-navigation__nav-link {
120
- @include skeleton;
121
121
  width: calcRem(75px);
122
122
  height: calcRem(12px);
123
+ @include skeleton;
123
124
  }
124
125
 
125
126
  .#{$prefix}--step-navigation.#{$prefix}--skeleton
126
127
  .#{$prefix}--step-navigation-trigger {
127
- @include skeleton;
128
128
  width: calcRem(100px);
129
+ @include skeleton;
129
130
  }
130
131
 
131
132
  .#{$prefix}--step-navigation.#{$prefix}--skeleton
@@ -10,6 +10,7 @@
10
10
  @use "../../utilities/high-contrast-mode" as *;
11
11
  @use "../../utilities/skeleton" as *;
12
12
  @use "../link";
13
+ @use "sass:map";
13
14
 
14
15
  /// Story styles
15
16
  /// @access public
@@ -306,10 +307,10 @@
306
307
  }
307
308
 
308
309
  .#{$prefix}--text__story-title {
309
- @include type-style("story-title");
310
310
  margin-bottom: $spacing-07;
311
311
  margin-left: -0.058em;
312
312
  font-weight: 500;
313
+ @include type-style("story-title");
313
314
  }
314
315
 
315
316
  .#{$prefix}--helper {
@@ -338,14 +339,13 @@
338
339
  }
339
340
 
340
341
  .#{$prefix}--story__code {
341
- @include type-style("code-02");
342
- @include font-family("code");
343
342
  padding: 0.1rem 0.4em;
344
343
  margin: 0;
345
344
  font-size: 95%;
346
345
  border-radius: 0.2em;
347
346
  background: $code-background;
348
- //background: rgba(#111f30, 0.08);
347
+ @include type-style("code-02");
348
+ @include font-family("code");
349
349
  }
350
350
 
351
351
  .#{$prefix}--story__pre {
@@ -357,8 +357,6 @@
357
357
  border-radius: 6px;
358
358
  .#{$prefix}--story__code,
359
359
  code {
360
- @include type-style("code-02");
361
- @include font-family("code");
362
360
  display: inline;
363
361
  max-width: auto;
364
362
  padding: 0;
@@ -369,6 +367,8 @@
369
367
  background-color: transparent;
370
368
  border: 0;
371
369
  font-size: 100%;
370
+ @include type-style("code-02");
371
+ @include font-family("code");
372
372
  }
373
373
  }
374
374
 
@@ -509,11 +509,11 @@
509
509
  @each $size, $glyph in $spacing-map {
510
510
  .#{$prefix}--story__spacing-top-#{$size},
511
511
  .#{$prefix}--text__spacing-top-#{$size} {
512
- margin-top: map-get($spacing-map, $size) !important;
512
+ margin-top: map.get($spacing-map, $size) !important;
513
513
  }
514
514
  .#{$prefix}--story__spacing-bottom-#{$size},
515
515
  .#{$prefix}--text__spacing-bottom-#{$size} {
516
- margin-bottom: map-get($spacing-map, $size) !important;
516
+ margin-bottom: map.get($spacing-map, $size) !important;
517
517
  }
518
518
  }
519
519
  }
@@ -22,13 +22,15 @@
22
22
  .#{$prefix}--tabs {
23
23
  @include type-style("body-short");
24
24
  @include font-family("sans");
25
- color: $text-body-default;
26
- font-weight: 600;
27
- height: auto;
28
- width: 100%;
29
- position: relative;
30
- overflow: auto;
31
- max-width: 100%;
25
+ & {
26
+ color: $text-body-default;
27
+ font-weight: 600;
28
+ height: auto;
29
+ width: 100%;
30
+ position: relative;
31
+ overflow: auto;
32
+ max-width: 100%;
33
+ }
32
34
  }
33
35
 
34
36
  .#{$prefix}--tabs__nav__bar {
@@ -165,14 +167,14 @@
165
167
  }
166
168
 
167
169
  .#{$prefix}--tabs.#{$prefix}--skeleton .#{$prefix}--tabs__nav-link {
168
- @include skeleton;
169
170
  width: calcRem(75px);
170
171
  height: calcRem(12px);
172
+ @include skeleton;
171
173
  }
172
174
 
173
175
  .#{$prefix}--tabs.#{$prefix}--skeleton .#{$prefix}--tabs-trigger {
174
- @include skeleton;
175
176
  width: calcRem(100px);
177
+ @include skeleton;
176
178
  }
177
179
 
178
180
  .#{$prefix}--tabs.#{$prefix}--skeleton .#{$prefix}--tabs-trigger svg {
@@ -22,16 +22,15 @@
22
22
  /// @group tag
23
23
  @mixin tag {
24
24
  .#{$prefix}--tag {
25
- @include font-family("sans");
26
- @include typescale("zeta");
27
- display: inline-flex;
28
- align-items: center;
29
- padding: 0 $spacing-03;
30
- height: 1.5rem;
31
- margin: $spacing-01;
32
- border-radius: calcRem(15px);
33
- white-space: nowrap;
34
-
25
+ & {
26
+ display: inline-flex;
27
+ align-items: center;
28
+ padding: 0 $spacing-03;
29
+ height: 1.5rem;
30
+ margin: $spacing-01;
31
+ border-radius: calcRem(15px);
32
+ white-space: nowrap;
33
+ }
35
34
  &:not(:first-child) {
36
35
  margin-left: 0;
37
36
  }
@@ -41,6 +40,8 @@
41
40
  text-decoration: underline;
42
41
  }
43
42
  }
43
+ //TODO: @include font-family("sans");
44
+ // @include typescale("zeta");
44
45
  }
45
46
 
46
47
  .#{$prefix}--tag--info {
@@ -71,23 +72,6 @@
71
72
  .#{$prefix}--tag--wrap {
72
73
  white-space: normal;
73
74
  }
74
-
75
- // .#{$prefix}--tag--information {
76
- // @include tag-theme(var(--support-light-04), $support-04);
77
- // }
78
-
79
- // Skeleton state
80
- // .#{$prefix}--tag.#{$prefix}--skeleton {
81
- // @include tag-theme($color__gray-1, $color__navy-gray-4);
82
- // width: calcRem(60px);
83
-
84
- // &:after {
85
- // @include skeleton;
86
- // content: '';
87
- // height: calcRem(6px);
88
- // width: 100%;
89
- // }
90
- // }
91
75
  }
92
76
 
93
77
  @mixin tag--x {
@@ -1,10 +1,3 @@
1
- //
2
- // Copyright IBM Corp. 2016, 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
1
  @use "../form";
9
2
  @use "../../config" as *;
10
3
  @use "../../motion" as *;
@@ -44,7 +37,8 @@ $input-height: 40px !default;
44
37
  border-radius: $input-border-radius;
45
38
  order: 2;
46
39
  resize: vertical;
47
- transition: background-color $duration-fast-01 motion(standard, productive),
40
+ transition:
41
+ background-color $duration-fast-01 motion(standard, productive),
48
42
  outline $duration-fast-01 motion(standard, productive);
49
43
 
50
44
  & ~ .#{$prefix}--label {
@@ -90,8 +84,8 @@ $input-height: 40px !default;
90
84
 
91
85
  // Skeleton State
92
86
  #{$prefix}--text-area.#{$prefix}--skeleton {
93
- @include skeleton;
94
87
  height: calcRem(100px);
88
+ @include skeleton;
95
89
 
96
90
  &::-webkit-input-placeholder {
97
91
  color: transparent;
@@ -100,8 +94,8 @@ $input-height: 40px !default;
100
94
 
101
95
  // Skeleton State
102
96
  #{$prefix}--text-area.#{$prefix}--skeleton {
103
- @include skeleton;
104
97
  height: calcRem(100px);
98
+ @include skeleton;
105
99
 
106
100
  &::-webkit-input-placeholder {
107
101
  color: transparent;
@@ -110,9 +104,8 @@ $input-height: 40px !default;
110
104
 
111
105
  // Skeleton State
112
106
  #{$prefix}--text-area.#{$prefix}--skeleton {
113
- @include skeleton;
114
107
  height: calcRem(100px);
115
-
108
+ @include skeleton;
116
109
  &::-webkit-input-placeholder {
117
110
  color: transparent;
118
111
  }
@@ -8,7 +8,7 @@
8
8
  @use "../../utilities/high-contrast-mode" as *;
9
9
  @use "../../utilities/visually-hidden" as *;
10
10
  @use "../../utilities/focus-outline" as *;
11
- @import "../form";
11
+ @use "../form" as *;
12
12
 
13
13
  /// Toggle styles
14
14
  /// @access public
@@ -19,14 +19,13 @@
19
19
  }
20
20
 
21
21
  .#{$prefix}--toggle__label {
22
- @include font-family("sans");
23
22
  position: relative;
24
23
  display: flex;
25
24
  align-items: center;
26
25
  user-select: none;
27
26
  transition: $transition--base $standard-easing;
28
27
  cursor: pointer;
29
- //margin: $spacing-05 0;
28
+ @include font-family("sans");
30
29
  }
31
30
 
32
31
  .#{$prefix}--toggle__appearance {
@@ -1,9 +1,3 @@
1
- //
2
- // Copyright IBM Corp. 2016, 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
1
 
8
2
  @use "../../theme" as *;
9
3
  @use "../../type" as *;
@@ -13,9 +7,9 @@
13
7
  @use "../../utilities/layer" as *;
14
8
  @use "./vars";
15
9
  @use "./mixins";
16
- @import "./animations/fade.scss";
17
- @import "./themes/light.scss";
18
- @import "./themes/light-border.scss";
10
+ @use "./animations/fade.scss" as *;
11
+ @use "./themes/light.scss" as *;
12
+ @use "./themes/light-border.scss" as *;
19
13
 
20
14
  // TODO: deprecate legacy tooltip mixins
21
15
  // Tooltip Icon
@@ -38,17 +32,15 @@
38
32
  &--trigger {
39
33
  cursor: pointer;
40
34
  }
41
- /*opacity: 0;
42
- display: none;*/
43
- //transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
44
- //transition-property: transform;
45
- cursor: pointer;
46
- max-width: 300px;
47
- border-radius: 7px;
48
- line-height: 1.5rem;
49
- @include layer("pop-out");
50
- z-index: 1000;
51
- @include type-style("body-short-02");
35
+ & {
36
+ cursor: pointer;
37
+ max-width: 300px;
38
+ border-radius: 7px;
39
+ line-height: 1.5rem;
40
+ // z-index: 1000;
41
+ }
42
+ //TODO: @include layer("pop-out");
43
+ //@include type-style("body-short-02");
52
44
  &[data-popper-placement*="bottom"] {
53
45
  .#{$prefix}--tooltip__arrow {
54
46
  top: 0;
@@ -1,5 +1,5 @@
1
- @import '../_mixins.scss';
2
- @import '../_vars.scss';
1
+ @use '../_mixins.scss' as *;
2
+ @use '../_vars.scss' as *;
3
3
 
4
4
  .#{$namespace-prefix}-tooltip {
5
5
  &[data-animation='fade'] {
@@ -1,5 +1,5 @@
1
- @import '../_mixins.scss';
2
- @import '../_vars.scss';
1
+ @use '../_mixins.scss' as *;
2
+ @use '../_vars.scss' as *;
3
3
 
4
4
  $color: var(--ui-01);
5
5
  $transparent-light: rgba(0, 8, 16, 0.08);
@@ -1,5 +1,5 @@
1
- @import '../_mixins.scss';
2
- @import '../_vars.scss';
1
+ @use '../_mixins.scss' as *;
2
+ @use '../_vars.scss' as *;
3
3
 
4
4
  $color: var(--ui-01);
5
5
 
@@ -12,7 +12,7 @@
12
12
  /// @example @include button-reset($width: false);
13
13
  /// @group utilities
14
14
  @mixin reset($width: true) {
15
- @include component-reset.reset;
15
+
16
16
 
17
17
  display: inline-block;
18
18
  padding: 0;
@@ -21,6 +21,7 @@
21
21
  background: none;
22
22
  cursor: pointer;
23
23
 
24
+
24
25
  @if ($width == true) {
25
26
  width: 100%;
26
27
  }
@@ -28,4 +29,5 @@
28
29
  &::-moz-focus-inner {
29
30
  border: 0;
30
31
  }
32
+ @include component-reset.reset;
31
33
  }
@@ -1,10 +1,3 @@
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
1
  /// Resets default browser styling
9
2
  /// @access public
10
3
  /// @group utilities
@@ -0,0 +1,84 @@
1
+ @use "sass:map";
2
+ @use "./convert";
3
+
4
+ /// Namespace prefix
5
+ /// @type String
6
+ /// @access public
7
+ /// @group @carbon/grid
8
+ $prefix: "cds" !default;
9
+
10
+ /// Total columns used in the flex grid
11
+ /// @type Number
12
+ /// @access public
13
+ /// @group @carbon/grid
14
+ $flex-grid-columns: 16 !default;
15
+
16
+ /// Carbon gutter size in rem
17
+ /// @type Number
18
+ /// @access public
19
+ /// @group @carbon/layout
20
+ $grid-gutter: convert.to-rem(32px) !default;
21
+
22
+ /// Carbon condensed gutter size in rem
23
+ /// @type Number
24
+ /// @access public
25
+ /// @group @carbon/layout
26
+ $grid-gutter-condensed: convert.to-rem(1px) !default;
27
+
28
+ // Initial map of our breakpoints and their values
29
+ /// @type Map
30
+ /// @access public
31
+ /// @group @carbon/layout
32
+ $grid-breakpoints: (
33
+ sm: (
34
+ columns: 4,
35
+ margin: 0,
36
+ width: convert.to-rem(320px),
37
+ ),
38
+ md: (
39
+ columns: 8,
40
+ margin: convert.to-rem(16px),
41
+ width: convert.to-rem(672px),
42
+ ),
43
+ lg: (
44
+ columns: 16,
45
+ margin: convert.to-rem(16px),
46
+ width: convert.to-rem(1056px),
47
+ ),
48
+ xlg: (
49
+ columns: 16,
50
+ margin: convert.to-rem(16px),
51
+ width: convert.to-rem(1312px),
52
+ ),
53
+ max: (
54
+ columns: 16,
55
+ margin: convert.to-rem(24px),
56
+ width: convert.to-rem(1584px),
57
+ ),
58
+ ) !default;
59
+
60
+ @if $flex-grid-columns == 12 {
61
+ $grid-breakpoints: map.merge(
62
+ $grid-breakpoints,
63
+ (
64
+ lg: map.merge(
65
+ map.get($grid-breakpoints, lg),
66
+ (
67
+ columns: 12,
68
+ )
69
+ ),
70
+ xlg: map.merge(
71
+ map.get($grid-breakpoints, xlg),
72
+ (
73
+ columns: 12,
74
+ )
75
+ ),
76
+ max: map.merge(
77
+ map.get($grid-breakpoints, max),
78
+ (
79
+ columns: 12,
80
+ )
81
+ ),
82
+ )
83
+ );
84
+ }