@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.
- package/package.json +2 -2
- package/scss/components/button-group/_button-group.scss +1 -1
- package/scss/components/callout-with-media/_callout-with-media.scss +1 -1
- package/scss/components/card-section-offset/_card-section-offset.scss +1 -1
- package/scss/components/content-block-media/_content-block-media.scss +1 -1
- package/scss/components/content-block-simple/_content-block-simple.scss +1 -1
- package/scss/components/content-item-row/_content-item-row.scss +4 -4
- package/scss/components/content-item-row-media/_content-item-row-media.scss +1 -1
- package/scss/components/cta-block/_cta-block.scss +1 -1
- package/scss/components/expressive-modal/_expressive-modal.scss +19 -7
- package/scss/components/feature-card/_feature-card.scss +6 -6
- package/scss/components/filter-panel/_filter-panel.scss +6 -6
- package/scss/components/footer/_footer-logo.scss +11 -4
- package/scss/components/footer/_footer.scss +1 -1
- package/scss/components/footer/_language-selector.scss +1 -1
- package/scss/components/global-banner/_global-banner.scss +2 -2
- package/scss/components/horizontal-rule/_horizontal-rule.scss +1 -1
- package/scss/components/leadspace/_leadspace.scss +100 -121
- package/scss/components/leadspace-block/_leadspace-block.scss +1 -1
- package/scss/components/leadspace-with-search/_leadspace-with-search.scss +2 -2
- package/scss/components/locale-modal/_locale-modal.scss +14 -5
- package/scss/components/masthead/_masthead-l1.scss +1 -1
- package/scss/components/masthead/_masthead-megamenu.scss +10 -10
- package/scss/components/masthead/_masthead.scss +10 -10
- package/scss/components/search-with-typeahead/_search-with-typeahead.scss +3 -3
- package/scss/components/tableofcontents/_table-of-contents.scss +3 -3
- package/scss/components/tabs-extended/_tabs-extended.scss +3 -3
- package/scss/components/tag-link/_tag-link.scss +2 -2
- package/scss/patterns/blocks/leadspace-block/_leadspace-block.scss +0 -12
- 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.
|
|
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": "
|
|
51
|
+
"gitHead": "ee79c52acbd22e927393c520f195f291de9b549d"
|
|
52
52
|
}
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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
|
-
$
|
|
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
|
|
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
|
|
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
|
-
|
|
68
|
-
margin: 0;
|
|
67
|
+
position: relative;
|
|
69
68
|
|
|
70
|
-
|
|
69
|
+
.#{$c4d-prefix}--footer-logo__link {
|
|
71
70
|
position: absolute;
|
|
72
|
-
|
|
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
|
}
|