@carbon/ibmdotcom-styles 2.16.0-rc.1 → 2.16.0-rc.2
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/dist/ibm-dotcom-styles.css +45 -12
- package/dist/ibm-dotcom-styles.min.css +3 -3
- package/package.json +2 -2
- package/scss/components/card/_card.scss +0 -6
- package/scss/components/card-group/_card-group.scss +8 -1
- package/scss/components/feature-card/_feature-card.scss +25 -4
- package/scss/components/leadspace/_leadspace.scss +1 -0
- package/scss/components/notice-choice/_notice-choice.scss +4 -0
- package/scss/components/tableofcontents/_table-of-contents.scss +0 -1
- package/scss/internal/content-block/_content-block.scss +1 -0
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.16.0-rc.
|
|
4
|
+
"version": "2.16.0-rc.2",
|
|
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.79.0",
|
|
49
49
|
"sass-loader": "^13.0.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "5dc558ef59da8d102e6c4df024604832e9706a46"
|
|
52
52
|
}
|
|
@@ -281,12 +281,6 @@
|
|
|
281
281
|
flex-direction: column;
|
|
282
282
|
gap: $spacing-05;
|
|
283
283
|
}
|
|
284
|
-
|
|
285
|
-
::slotted(div) {
|
|
286
|
-
/* stylelint-disable declaration-no-important */
|
|
287
|
-
// need the !important to prevent CSS reset styles from overwritting margin for tags
|
|
288
|
-
margin-inline-start: -$spacing-02 !important;
|
|
289
|
-
}
|
|
290
284
|
}
|
|
291
285
|
|
|
292
286
|
:host(#{$c4d-prefix}-card[aspect-ratio='1:1']) .#{$prefix}--card__wrapper {
|
|
@@ -77,11 +77,18 @@
|
|
|
77
77
|
&::after {
|
|
78
78
|
content: revert;
|
|
79
79
|
}
|
|
80
|
+
|
|
81
|
+
&::after {
|
|
82
|
+
display: block;
|
|
83
|
+
aspect-ratio: 16 / 9;
|
|
84
|
+
content: '';
|
|
85
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
86
|
+
}
|
|
80
87
|
}
|
|
81
88
|
|
|
82
89
|
.#{$prefix}--card__content {
|
|
83
90
|
display: grid;
|
|
84
|
-
grid-
|
|
91
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
85
92
|
grid-template-rows: subgrid;
|
|
86
93
|
row-gap: 0;
|
|
87
94
|
}
|
|
@@ -86,6 +86,10 @@ $feature-flags: (
|
|
|
86
86
|
flex: 1 0 50%;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
.#{$prefix}--card__image-wrapper {
|
|
90
|
+
aspect-ratio: 1 / 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
89
93
|
.#{$prefix}--card__wrapper {
|
|
90
94
|
&::before,
|
|
91
95
|
&::after {
|
|
@@ -247,10 +251,27 @@ $feature-flags: (
|
|
|
247
251
|
}
|
|
248
252
|
}
|
|
249
253
|
|
|
250
|
-
:host(#{$c4d-prefix}-feature-card-footer)[color-scheme='inverse']
|
|
251
|
-
.#{$c4d-prefix}-ce--card__footer
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
:host(#{$c4d-prefix}-feature-card-footer)[color-scheme='inverse'] {
|
|
255
|
+
.#{$c4d-prefix}-ce--card__footer {
|
|
256
|
+
.#{$c4d-prefix}-ce--cta__icon,
|
|
257
|
+
::slotted(svg[slot='icon']) {
|
|
258
|
+
fill: $link-inverse;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&:hover {
|
|
262
|
+
.#{$c4d-prefix}-ce--cta__icon,
|
|
263
|
+
::slotted(svg[slot='icon']) {
|
|
264
|
+
fill: $link-inverse-hover;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&:active {
|
|
269
|
+
.#{$c4d-prefix}-ce--cta__icon,
|
|
270
|
+
::slotted(svg[slot='icon']) {
|
|
271
|
+
fill: $link-inverse-active;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
254
275
|
}
|
|
255
276
|
|
|
256
277
|
:host(#{$c4d-prefix}-feature-card[size='large']) {
|
|
@@ -464,6 +464,7 @@ $btn-min-width: 26;
|
|
|
464
464
|
|
|
465
465
|
:host(#{$c4d-prefix}-leadspace) ::slotted([slot='navigation']) {
|
|
466
466
|
z-index: 1;
|
|
467
|
+
max-inline-size: 40rem;
|
|
467
468
|
// need the !important to prevent CSS reset styles from overwritting margin for tags
|
|
468
469
|
/* stylelint-disable declaration-no-important */
|
|
469
470
|
padding-block-end: $spacing-05 !important;
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
@use '@carbon/styles/scss/spacing' as *;
|
|
10
10
|
@use '@carbon/styles/scss/theme' as *;
|
|
11
11
|
@use '@carbon/styles/scss/utilities/convert';
|
|
12
|
+
@use '@carbon/type';
|
|
13
|
+
|
|
14
|
+
@include type.reset();
|
|
12
15
|
|
|
13
16
|
@mixin notice-choice {
|
|
14
17
|
.#{$prefix}--nc {
|
|
@@ -17,6 +20,7 @@
|
|
|
17
20
|
p,
|
|
18
21
|
.#{$prefix}--checkbox-group {
|
|
19
22
|
margin-block-end: $spacing-06;
|
|
23
|
+
@include type.type-style('legal-02');
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
a {
|