@carbon/ibmdotcom-styles 2.0.0-rc.1 → 2.0.0-rc.3

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 (30) hide show
  1. package/package.json +2 -2
  2. package/scss/components/button-group/_button-group.scss +1 -1
  3. package/scss/components/callout-with-media/_callout-with-media.scss +1 -1
  4. package/scss/components/card-section-offset/_card-section-offset.scss +1 -1
  5. package/scss/components/content-block-media/_content-block-media.scss +1 -1
  6. package/scss/components/content-block-simple/_content-block-simple.scss +1 -1
  7. package/scss/components/content-item-row/_content-item-row.scss +4 -4
  8. package/scss/components/content-item-row-media/_content-item-row-media.scss +1 -1
  9. package/scss/components/cta-block/_cta-block.scss +1 -1
  10. package/scss/components/expressive-modal/_expressive-modal.scss +19 -7
  11. package/scss/components/feature-card/_feature-card.scss +6 -6
  12. package/scss/components/filter-panel/_filter-panel.scss +6 -6
  13. package/scss/components/footer/_footer-logo.scss +11 -4
  14. package/scss/components/footer/_footer.scss +1 -1
  15. package/scss/components/footer/_language-selector.scss +1 -1
  16. package/scss/components/global-banner/_global-banner.scss +2 -2
  17. package/scss/components/horizontal-rule/_horizontal-rule.scss +1 -1
  18. package/scss/components/leadspace/_leadspace.scss +100 -121
  19. package/scss/components/leadspace-block/_leadspace-block.scss +1 -1
  20. package/scss/components/leadspace-with-search/_leadspace-with-search.scss +2 -2
  21. package/scss/components/locale-modal/_locale-modal.scss +14 -5
  22. package/scss/components/masthead/_masthead-l1.scss +1 -1
  23. package/scss/components/masthead/_masthead-megamenu.scss +10 -10
  24. package/scss/components/masthead/_masthead.scss +10 -10
  25. package/scss/components/search-with-typeahead/_search-with-typeahead.scss +3 -3
  26. package/scss/components/tableofcontents/_table-of-contents.scss +3 -3
  27. package/scss/components/tabs-extended/_tabs-extended.scss +3 -3
  28. package/scss/components/tag-link/_tag-link.scss +2 -2
  29. package/scss/patterns/blocks/leadspace-block/_leadspace-block.scss +0 -12
  30. package/scss/patterns/sections/leadspace/_leadspace.scss +34 -49
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibmdotcom-styles",
3
3
  "description": "Carbon for IBM.com Styles",
4
- "version": "2.0.0-rc.1",
4
+ "version": "2.0.0-rc.3",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/ibm-dotcom-styles.min.css",
7
7
  "module": "src/scss",
@@ -48,5 +48,5 @@
48
48
  "sass": "~1.62.0",
49
49
  "sass-loader": "^13.0.0"
50
50
  },
51
- "gitHead": "8031fcca05de52ae7519434beb5a80294491a06a"
51
+ "gitHead": "ee79c52acbd22e927393c520f195f291de9b549d"
52
52
  }
@@ -39,7 +39,7 @@
39
39
 
40
40
  @media print {
41
41
  background: $white-0;
42
- border: rem(1px) solid $gray-100;
42
+ border: to-rem(1px) solid $gray-100;
43
43
  color: $gray-100;
44
44
  font-weight: 600;
45
45
  display: block;
@@ -129,7 +129,7 @@
129
129
  :host(#{$c4d-prefix}-callout-with-media) ::slotted([slot='heading']),
130
130
  :host(#{$c4d-prefix}-callout-with-media) ::slotted([slot='copy']) {
131
131
  padding-right: $spacing-07;
132
- max-width: rem(640px);
132
+ max-width: to-rem(640px);
133
133
  width: auto;
134
134
  }
135
135
 
@@ -72,7 +72,7 @@
72
72
 
73
73
  ::slotted([slot='action']) {
74
74
  width: 90%;
75
- max-width: rem(640px);
75
+ max-width: to-rem(640px);
76
76
 
77
77
  @include breakpoint(md) {
78
78
  width: calc(100% - $spacing-07);
@@ -37,7 +37,7 @@
37
37
  }
38
38
 
39
39
  .#{$prefix}--feature-card {
40
- max-width: rem(640px);
40
+ max-width: to-rem(640px);
41
41
  }
42
42
  }
43
43
 
@@ -13,7 +13,7 @@
13
13
 
14
14
  @mixin content-block-simple {
15
15
  .#{$prefix}--content-block-simple__media-video {
16
- max-width: rem(640px);
16
+ max-width: to-rem(640px);
17
17
  }
18
18
 
19
19
  .#{$prefix}--content-block-simple__content {
@@ -161,7 +161,7 @@
161
161
  }
162
162
 
163
163
  :host(#{$c4d-prefix}-content-item-row-copy) ::slotted(:not([slot])) {
164
- max-width: rem(640px);
164
+ max-width: to-rem(640px);
165
165
  }
166
166
 
167
167
  :host(#{$c4d-prefix}-content-item-row-eyebrow) {
@@ -193,18 +193,18 @@
193
193
  grid-auto-flow: dense;
194
194
 
195
195
  @include breakpoint(md) {
196
- min-height: rem(306px);
196
+ min-height: to-rem(306px);
197
197
  grid-template-columns: repeat(8, 1fr);
198
198
  column-gap: $spacing-07;
199
199
  }
200
200
 
201
201
  @include breakpoint(lg) {
202
- min-height: rem(272px);
202
+ min-height: to-rem(272px);
203
203
  grid-template-columns: repeat(12, 1fr);
204
204
  }
205
205
 
206
206
  @include breakpoint(xlg) {
207
- min-height: rem(252px);
207
+ min-height: to-rem(252px);
208
208
  }
209
209
  }
210
210
 
@@ -67,7 +67,7 @@
67
67
  }
68
68
 
69
69
  :host(#{$c4d-prefix}-content-item-row-media-copy) ::slotted(:not([slot])) {
70
- max-width: rem(640px);
70
+ max-width: to-rem(640px);
71
71
  p {
72
72
  color: $text-primary;
73
73
  }
@@ -79,7 +79,7 @@
79
79
  .#{$prefix}--content-block__heading,
80
80
  .#{$prefix}--content-block__copy {
81
81
  width: 90%;
82
- max-width: rem(640px);
82
+ max-width: to-rem(640px);
83
83
 
84
84
  @include breakpoint(sm) {
85
85
  width: 100%;
@@ -10,12 +10,12 @@
10
10
  @use '../../globals/vars' as *;
11
11
  @use '@carbon/styles/scss/breakpoint' as *;
12
12
  @use '@carbon/styles/scss/config' as *;
13
+ @use '@carbon/styles/scss/motion' as *;
13
14
  @use '@carbon/styles/scss/theme' as *;
14
15
  @use '@carbon/styles/scss/type' as *;
15
16
  @use '@carbon/styles/scss/utilities' as *;
16
17
  @use '@carbon/styles/scss/spacing' as *;
17
18
  @use '@carbon/styles/scss/components/modal' as *;
18
- @use '../../../../carbon-web-components/src/components/modal/modal';
19
19
 
20
20
  /// Expressive modal
21
21
  /// @access private
@@ -23,12 +23,10 @@
23
23
 
24
24
  @mixin expressive-modal {
25
25
  $modal: '.#{$prefix}--modal';
26
- $button-size: rem(48px);
27
- $icon-size: rem(20px);
28
- $offset-close-icon: $spacing-07 - math.div($button-size - $icon-size, 2);
26
+ $icon-size: to-rem(20px);
29
27
 
30
28
  :host(#{$c4d-prefix}-expressive-modal) {
31
- @extend :host(#{$prefix}-modal);
29
+ @extend .#{$prefix}--modal;
32
30
 
33
31
  .#{$prefix}--modal-container {
34
32
  grid-template-rows: 1fr;
@@ -60,7 +58,21 @@
60
58
  }
61
59
 
62
60
  :host(#{$c4d-prefix}-expressive-modal[open]) {
63
- @extend :host(#{$prefix}-modal[open]);
61
+ @extend .#{$prefix}--modal;
62
+
63
+ opacity: 1;
64
+ transition: opacity $duration-moderate-02 motion(entrance, expressive),
65
+ visibility 0ms linear;
66
+ visibility: inherit;
67
+
68
+ .#{$prefix}--modal-container {
69
+ transform: translate3d(0, 0, 0);
70
+ transition: transform $duration-moderate-02 motion(entrance, expressive);
71
+ }
72
+
73
+ @media screen and (prefers-reduced-motion: reduce) {
74
+ transition: none;
75
+ }
64
76
  }
65
77
 
66
78
  :host(#{$c4d-prefix}-expressive-modal-footer) .#{$prefix}--modal-footer {
@@ -122,6 +134,6 @@
122
134
  .#{$prefix}--modal--expressive--fullwidth .#{$prefix}--modal-content {
123
135
  padding-right: 0;
124
136
  height: auto;
125
- min-height: rem(500px);
137
+ min-height: to-rem(500px);
126
138
  }
127
139
  }
@@ -26,7 +26,7 @@
26
26
  $fcb-large-custom-bp-copy: 992px;
27
27
  $fcb-large-custom-bp-nocopy: 752px;
28
28
  $fcb-breakpoint-up--lg: map.get(map.get($grid-breakpoints, 'lg'), 'width') -
29
- rem(1px);
29
+ to-rem(1px);
30
30
 
31
31
  $feature-flags: (
32
32
  enable-experimental-tile-contrast: true,
@@ -235,8 +235,8 @@ $feature-flags: (
235
235
 
236
236
  svg {
237
237
  @include breakpoint(sm) {
238
- width: rem(20px);
239
- height: rem(20px);
238
+ width: to-rem(20px);
239
+ height: to-rem(20px);
240
240
  }
241
241
 
242
242
  @include breakpoint(md) {
@@ -347,7 +347,7 @@ $feature-flags: (
347
347
  ::slotted(#{$c4d-prefix}-card-eyebrow),
348
348
  ::slotted(#{$c4d-prefix}-card-heading) {
349
349
  width: 100%;
350
- max-width: rem(480px);
350
+ max-width: to-rem(480px);
351
351
 
352
352
  @include breakpoint(md) {
353
353
  width: 90%;
@@ -460,8 +460,8 @@ $feature-flags: (
460
460
  float: none;
461
461
 
462
462
  @include breakpoint(sm) {
463
- width: rem(20px);
464
- height: rem(20px);
463
+ width: to-rem(20px);
464
+ height: to-rem(20px);
465
465
  }
466
466
 
467
467
  @include breakpoint(md) {
@@ -28,7 +28,7 @@
28
28
  .#{$prefix}--filter-panel__section {
29
29
  box-sizing: border-box;
30
30
  background-color: $layer-01;
31
- padding-bottom: rem(112px);
31
+ padding-bottom: to-rem(112px);
32
32
  margin-top: $spacing-05;
33
33
  overflow: initial;
34
34
 
@@ -67,14 +67,14 @@
67
67
  outline: $spacing-01 solid $focus;
68
68
  margin-left: $spacing-01;
69
69
  margin-right: $spacing-01;
70
- padding-left: rem(14px);
70
+ padding-left: to-rem(14px);
71
71
  z-index: 1;
72
72
  }
73
73
 
74
74
  .#{$prefix}--close__icon {
75
75
  position: absolute;
76
76
  right: $spacing-05;
77
- top: rem(10px);
77
+ top: to-rem(10px);
78
78
  }
79
79
  }
80
80
 
@@ -161,8 +161,8 @@
161
161
  }
162
162
 
163
163
  :host(#{$c4d-prefix}-filter-panel-checkbox) {
164
- padding-left: rem(14px);
165
- padding-bottom: rem(6px);
164
+ padding-left: to-rem(14px);
165
+ padding-bottom: to-rem(6px);
166
166
  @extend .#{$prefix}--checkbox-label;
167
167
  @include type-style('body-compact-01');
168
168
 
@@ -225,7 +225,7 @@
225
225
  .#{$prefix}--close__icon {
226
226
  position: absolute;
227
227
  right: $spacing-05;
228
- top: rem(10px);
228
+ top: to-rem(10px);
229
229
  }
230
230
  }
231
231
 
@@ -64,12 +64,19 @@
64
64
  }
65
65
 
66
66
  :host(#{$c4d-prefix}-footer-logo[size='micro']) {
67
- align-self: center;
68
- margin: 0;
67
+ position: relative;
69
68
 
70
- @include breakpoint-between(md, lg) {
69
+ .#{$c4d-prefix}--footer-logo__link {
71
70
  position: absolute;
72
- bottom: rem(58.5px);
71
+ top: -37px;
72
+
73
+ @include breakpoint(lg) {
74
+ position: relative;
75
+ top: 0;
76
+ }
73
77
  }
78
+
79
+ align-self: center;
80
+ margin: 0;
74
81
  }
75
82
  }
@@ -486,7 +486,7 @@
486
486
  }
487
487
 
488
488
  .#{$prefix}--list-box__menu {
489
- bottom: rem($spacing-09);
489
+ bottom: to-rem($spacing-09);
490
490
  }
491
491
 
492
492
  .#{$prefix}--dropdown,
@@ -113,7 +113,7 @@
113
113
  .#{$prefix}--list-box--up {
114
114
  .#{$prefix}--list-box__menu {
115
115
  z-index: 1;
116
- bottom: rem(47px);
116
+ bottom: to-rem(47px);
117
117
  }
118
118
  }
119
119
 
@@ -46,8 +46,8 @@
46
46
 
47
47
  &:focus,
48
48
  &:active {
49
- outline: rem(1px) solid $background;
50
- outline-offset: rem(-1px);
49
+ outline: to-rem(1px) solid $background;
50
+ outline-offset: to-rem(-1px);
51
51
  border-color: $focus;
52
52
  }
53
53
  }
@@ -14,7 +14,7 @@
14
14
  @mixin horizontal-rule {
15
15
  $subtle-contrast: $border-subtle-01;
16
16
  $strong-contrast: $border-strong-01;
17
- $thin-weight: rem(1px);
17
+ $thin-weight: to-rem(1px);
18
18
 
19
19
  :host(#{$c4d-prefix}-hr) {
20
20
  display: block;