@carbon/ibmdotcom-styles 2.17.0 → 2.18.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/ibmdotcom-styles",
|
|
3
3
|
"description": "Carbon for IBM.com Styles",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.18.0",
|
|
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.83.0",
|
|
49
49
|
"sass-loader": "^13.0.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "945ca478a37e5914612018120bbdf5ca2c0a2a71"
|
|
52
52
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2016,
|
|
2
|
+
* Copyright IBM Corp. 2016, 2025
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -179,6 +179,14 @@
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
// Gutter space for mobile view
|
|
183
|
+
:host(#{$c4d-prefix}-content-group-cards-item) {
|
|
184
|
+
@include breakpoint-down(md) {
|
|
185
|
+
inline-size: auto;
|
|
186
|
+
margin-inline: $spacing-05;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
182
190
|
// Card with pictogram placement style
|
|
183
191
|
:host(#{$c4d-prefix}-card-group-item),
|
|
184
192
|
:host(#{$c4d-prefix}-card-in-card),
|
|
@@ -301,6 +309,92 @@
|
|
|
301
309
|
display: none !important;
|
|
302
310
|
}
|
|
303
311
|
}
|
|
312
|
+
|
|
313
|
+
//Replicating V1 hover behavior
|
|
314
|
+
@media (pointer: fine) {
|
|
315
|
+
&[pictogram-placement='top'] .#{$prefix}--card,
|
|
316
|
+
&[pictogram-placement='bottom'] .#{$prefix}--card {
|
|
317
|
+
.#{$prefix}--card__motion {
|
|
318
|
+
::slotted(#{$c4d-prefix}-card-heading) {
|
|
319
|
+
padding-block-start: 0;
|
|
320
|
+
|
|
321
|
+
@include breakpoint('md') {
|
|
322
|
+
/* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix */
|
|
323
|
+
display: -webkit-box;
|
|
324
|
+
/* stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix */
|
|
325
|
+
overflow: hidden;
|
|
326
|
+
-webkit-box-orient: vertical;
|
|
327
|
+
-webkit-line-clamp: 3;
|
|
328
|
+
max-inline-size: calc(100% - #{$spacing-10});
|
|
329
|
+
opacity: 1;
|
|
330
|
+
transform: translate3d(0, 0, 0);
|
|
331
|
+
transition: all $duration-moderate-02 motion(standard, productive)
|
|
332
|
+
0.25s;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.#{$prefix}--card__copy {
|
|
337
|
+
margin-block: $spacing-07 0;
|
|
338
|
+
|
|
339
|
+
@include breakpoint('md') {
|
|
340
|
+
margin-block-start: 0;
|
|
341
|
+
opacity: 0;
|
|
342
|
+
transform: translate3d(0, -16px, 0);
|
|
343
|
+
transition: all $duration-moderate-02 motion(standard, productive);
|
|
344
|
+
visibility: hidden;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
&:hover,
|
|
350
|
+
&:focus {
|
|
351
|
+
.#{$prefix}--card__motion {
|
|
352
|
+
::slotted(#{$c4d-prefix}-card-heading) {
|
|
353
|
+
@include breakpoint('md') {
|
|
354
|
+
opacity: 0;
|
|
355
|
+
transform: translate3d(0, 16px, 0);
|
|
356
|
+
transition-delay: 0s;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.#{$prefix}--card__copy {
|
|
361
|
+
@include breakpoint('md') {
|
|
362
|
+
display: block;
|
|
363
|
+
overflow: hidden;
|
|
364
|
+
opacity: 1;
|
|
365
|
+
transform: translate3d(0, 0, 0);
|
|
366
|
+
transition-delay: 0.2s;
|
|
367
|
+
visibility: visible;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
&[pictogram-placement='top'] .#{$prefix}--card {
|
|
375
|
+
.#{$prefix}--card__motion {
|
|
376
|
+
::slotted(#{$c4d-prefix}-card-heading) {
|
|
377
|
+
@include breakpoint('md') {
|
|
378
|
+
position: absolute;
|
|
379
|
+
display: flow-root;
|
|
380
|
+
inset-block-end: $spacing-05;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.#{$prefix}--card__copy {
|
|
385
|
+
@include breakpoint('md') {
|
|
386
|
+
margin-block-start: $spacing-07;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
::slotted(svg[slot='pictogram']) {
|
|
391
|
+
@include breakpoint('md') {
|
|
392
|
+
margin-block-end: 0;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
304
398
|
}
|
|
305
399
|
|
|
306
400
|
:host(#{$c4d-prefix}-card[aspect-ratio='1:1']) .#{$prefix}--card__wrapper {
|
|
@@ -42,11 +42,19 @@
|
|
|
42
42
|
1fr
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
@include breakpoint-down(md) {
|
|
47
|
+
padding-inline: $spacing-05;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
:host(#{$c4d-prefix}-card-group[with-card-in-card][grid-mode]) {
|
|
48
52
|
padding-block-start: 0;
|
|
49
53
|
padding-inline: 1px;
|
|
54
|
+
|
|
55
|
+
@include breakpoint-down(md) {
|
|
56
|
+
padding-inline: $spacing-05;
|
|
57
|
+
}
|
|
50
58
|
}
|
|
51
59
|
|
|
52
60
|
:host(#{$c4d-prefix}-card-group[with-card-in-card][grid-mode='default']) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2016,
|
|
2
|
+
* Copyright IBM Corp. 2016, 2025
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
:host(#{$c4d-prefix}-card-in-card) {
|
|
25
25
|
block-size: auto;
|
|
26
26
|
|
|
27
|
+
@include breakpoint-down(md) {
|
|
28
|
+
background: none;
|
|
29
|
+
padding-inline: $spacing-05;
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
.#{$prefix}--card:focus-within {
|
|
28
33
|
border-color: $background;
|
|
29
34
|
outline: none;
|
|
@@ -43,6 +48,10 @@
|
|
|
43
48
|
&:hover {
|
|
44
49
|
cursor: pointer;
|
|
45
50
|
|
|
51
|
+
@include breakpoint-down(md) {
|
|
52
|
+
cursor: auto;
|
|
53
|
+
}
|
|
54
|
+
|
|
46
55
|
&::after {
|
|
47
56
|
position: absolute;
|
|
48
57
|
background: $card-background;
|
|
@@ -50,6 +59,10 @@
|
|
|
50
59
|
content: '';
|
|
51
60
|
inline-size: 100%;
|
|
52
61
|
opacity: 0.08;
|
|
62
|
+
|
|
63
|
+
@include breakpoint-down(md) {
|
|
64
|
+
inline-size: auto;
|
|
65
|
+
}
|
|
53
66
|
}
|
|
54
67
|
}
|
|
55
68
|
|