@carbon/ibmdotcom-styles 2.16.0-rc.3 → 2.16.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/dist/ibm-dotcom-styles.css +50 -46
- package/dist/ibm-dotcom-styles.min.css +1 -1
- package/package.json +2 -2
- package/scss/components/card/_card.scss +18 -5
- package/scss/components/card-group/_card-group.scss +1 -0
- package/scss/components/content-group-cards/_content-group-cards.scss +0 -1
- package/scss/components/link-with-icon/_link-with-icon.scss +2 -2
- package/scss/internal/content-block/_content-block.scss +1 -0
|
@@ -5613,12 +5613,10 @@ screen and (prefers-contrast) {
|
|
|
5613
5613
|
-webkit-margin-start: .5rem;
|
|
5614
5614
|
margin-inline-start: .5rem
|
|
5615
5615
|
}
|
|
5616
|
-
.
|
|
5617
|
-
:host(c4d-callout-link-with-icon) span,
|
|
5616
|
+
.cds--link-with-icon span,
|
|
5618
5617
|
:host(c4d-link-list-item) span,
|
|
5619
5618
|
:host(c4d-link-list-item-cta) span,
|
|
5620
5619
|
:host(c4d-link-with-icon) span,
|
|
5621
|
-
:host(c4d-quote-link-with-icon) span,
|
|
5622
5620
|
:host(c4d-text-cta) span {
|
|
5623
5621
|
-webkit-box-flex: 1;
|
|
5624
5622
|
-ms-flex: 1;
|
|
@@ -5627,18 +5625,14 @@ screen and (prefers-contrast) {
|
|
|
5627
5625
|
align-self: center;
|
|
5628
5626
|
vertical-align: middle
|
|
5629
5627
|
}
|
|
5630
|
-
.
|
|
5631
|
-
.
|
|
5632
|
-
:host(c4d-callout-link-with-icon) ::slotted(svg[slot=icon]),
|
|
5633
|
-
:host(c4d-callout-link-with-icon) svg,
|
|
5628
|
+
.cds--link-with-icon ::slotted(svg[slot=icon]),
|
|
5629
|
+
.cds--link-with-icon svg,
|
|
5634
5630
|
:host(c4d-link-list-item) ::slotted(svg[slot=icon]),
|
|
5635
5631
|
:host(c4d-link-list-item) svg,
|
|
5636
5632
|
:host(c4d-link-list-item-cta) ::slotted(svg[slot=icon]),
|
|
5637
5633
|
:host(c4d-link-list-item-cta) svg,
|
|
5638
5634
|
:host(c4d-link-with-icon) ::slotted(svg[slot=icon]),
|
|
5639
5635
|
:host(c4d-link-with-icon) svg,
|
|
5640
|
-
:host(c4d-quote-link-with-icon) ::slotted(svg[slot=icon]),
|
|
5641
|
-
:host(c4d-quote-link-with-icon) svg,
|
|
5642
5636
|
:host(c4d-text-cta) ::slotted(svg[slot=icon]),
|
|
5643
5637
|
:host(c4d-text-cta) svg {
|
|
5644
5638
|
display: inline;
|
|
@@ -5648,14 +5642,14 @@ screen and (prefers-contrast) {
|
|
|
5648
5642
|
-webkit-margin-start: .5rem;
|
|
5649
5643
|
margin-inline-start: .5rem
|
|
5650
5644
|
}
|
|
5651
|
-
.
|
|
5645
|
+
.cds--link-with-icon.cds--link--visited,
|
|
5652
5646
|
:host(c4d-link-list-item).cds--link--visited,
|
|
5653
5647
|
:host(c4d-link-list-item-cta).cds--link--visited,
|
|
5654
5648
|
:host(c4d-link-with-icon).cds--link--visited,
|
|
5655
5649
|
:host(c4d-text-cta).cds--link--visited {
|
|
5656
5650
|
color: var(--cds-link-visited,#8a3ffc)
|
|
5657
5651
|
}
|
|
5658
|
-
.
|
|
5652
|
+
.cds--link-with-icon.cds--link--disabled:hover,
|
|
5659
5653
|
:host(c4d-link-list-item).cds--link--disabled:hover,
|
|
5660
5654
|
:host(c4d-link-list-item-cta).cds--link--disabled:hover,
|
|
5661
5655
|
:host(c4d-link-with-icon).cds--link--disabled:hover,
|
|
@@ -5665,25 +5659,21 @@ screen and (prefers-contrast) {
|
|
|
5665
5659
|
line-height: var(--cds-body-compact-02-line-height,1.375);
|
|
5666
5660
|
letter-spacing: var(--cds-body-compact-02-letter-spacing,0)
|
|
5667
5661
|
}
|
|
5668
|
-
.
|
|
5669
|
-
:host(c4d-callout-link-with-icon) .cds--link--disabled,
|
|
5662
|
+
.cds--link-with-icon .cds--link--disabled,
|
|
5670
5663
|
:host(c4d-link-list-item) .cds--link--disabled,
|
|
5671
5664
|
:host(c4d-link-list-item-cta) .cds--link--disabled,
|
|
5672
5665
|
:host(c4d-link-with-icon) .cds--link--disabled,
|
|
5673
|
-
:host(c4d-quote-link-with-icon) .cds--link--disabled,
|
|
5674
5666
|
:host(c4d-text-cta) .cds--link--disabled {
|
|
5675
5667
|
color: var(--cds-text-disabled,rgba(22,22,22,.25))
|
|
5676
5668
|
}
|
|
5677
|
-
.
|
|
5678
|
-
.
|
|
5679
|
-
:host(c4d-callout-link-with-icon) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left,
|
|
5669
|
+
.cds--link-with-icon .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left,
|
|
5670
|
+
.cds--link-with-icon.cds--link-with-icon__icon-left,
|
|
5680
5671
|
:host(c4d-link-list-item) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left,
|
|
5681
5672
|
:host(c4d-link-list-item).cds--link-with-icon__icon-left,
|
|
5682
5673
|
:host(c4d-link-list-item-cta) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left,
|
|
5683
5674
|
:host(c4d-link-list-item-cta).cds--link-with-icon__icon-left,
|
|
5684
5675
|
:host(c4d-link-with-icon) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left,
|
|
5685
5676
|
:host(c4d-link-with-icon).cds--link-with-icon__icon-left,
|
|
5686
|
-
:host(c4d-quote-link-with-icon) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left,
|
|
5687
5677
|
:host(c4d-text-cta) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left,
|
|
5688
5678
|
:host(c4d-text-cta).cds--link-with-icon__icon-left {
|
|
5689
5679
|
display: -webkit-box;
|
|
@@ -5697,12 +5687,10 @@ screen and (prefers-contrast) {
|
|
|
5697
5687
|
-ms-flex-pack: end;
|
|
5698
5688
|
justify-content: flex-end
|
|
5699
5689
|
}
|
|
5700
|
-
.
|
|
5701
|
-
.
|
|
5702
|
-
.
|
|
5703
|
-
.
|
|
5704
|
-
:host(c4d-callout-link-with-icon) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left ::slotted(svg[slot=icon]),
|
|
5705
|
-
:host(c4d-callout-link-with-icon) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left svg,
|
|
5690
|
+
.cds--link-with-icon .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left ::slotted(svg[slot=icon]),
|
|
5691
|
+
.cds--link-with-icon .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left svg,
|
|
5692
|
+
.cds--link-with-icon.cds--link-with-icon__icon-left ::slotted(svg[slot=icon]),
|
|
5693
|
+
.cds--link-with-icon.cds--link-with-icon__icon-left svg,
|
|
5706
5694
|
:host(c4d-link-list-item) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left ::slotted(svg[slot=icon]),
|
|
5707
5695
|
:host(c4d-link-list-item) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left svg,
|
|
5708
5696
|
:host(c4d-link-list-item).cds--link-with-icon__icon-left ::slotted(svg[slot=icon]),
|
|
@@ -5715,8 +5703,6 @@ screen and (prefers-contrast) {
|
|
|
5715
5703
|
:host(c4d-link-with-icon) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left svg,
|
|
5716
5704
|
:host(c4d-link-with-icon).cds--link-with-icon__icon-left ::slotted(svg[slot=icon]),
|
|
5717
5705
|
:host(c4d-link-with-icon).cds--link-with-icon__icon-left svg,
|
|
5718
|
-
:host(c4d-quote-link-with-icon) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left ::slotted(svg[slot=icon]),
|
|
5719
|
-
:host(c4d-quote-link-with-icon) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left svg,
|
|
5720
5706
|
:host(c4d-text-cta) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left ::slotted(svg[slot=icon]),
|
|
5721
5707
|
:host(c4d-text-cta) .cds--link-with-icon.cds--link-with-icon--inline-icon.cds--link-with-icon__icon-left svg,
|
|
5722
5708
|
:host(c4d-text-cta).cds--link-with-icon__icon-left ::slotted(svg[slot=icon]),
|
|
@@ -6087,6 +6073,7 @@ screen and (prefers-contrast) {
|
|
|
6087
6073
|
}
|
|
6088
6074
|
.cds--content-layout ::slotted([data-autoid^=c4d--card]:not([slot])),
|
|
6089
6075
|
.cds--content-layout ::slotted([data-autoid^=c4d--tabs-]:not([slot])),
|
|
6076
|
+
.cds--content-layout ::slotted(c4d-content-group-cards-item:not([slot])),
|
|
6090
6077
|
.cds--content-layout ::slotted(c4d-content-group:not([slot])),
|
|
6091
6078
|
.cds--content-layout ::slotted(c4d-cta-block-item-row:not([slot])) {
|
|
6092
6079
|
-webkit-margin-start: 0;
|
|
@@ -9927,15 +9914,15 @@ screen and (prefers-contrast) {
|
|
|
9927
9914
|
-webkit-padding-end: 10%;
|
|
9928
9915
|
padding-inline-end: 10%
|
|
9929
9916
|
}
|
|
9930
|
-
.cds--card .cds--card__copy
|
|
9931
|
-
:host(c4d-card) .cds--card__copy
|
|
9932
|
-
:host(c4d-card-cta) .cds--card__copy
|
|
9933
|
-
:host(c4d-card-group-item) .cds--card .cds--card__copy
|
|
9934
|
-
:host(c4d-card-group-item) .cds--card__copy
|
|
9935
|
-
:host(c4d-card-in-card) .cds--card__copy
|
|
9936
|
-
:host(c4d-content-group-cards-item) .cds--card .cds--card__copy
|
|
9937
|
-
:host(c4d-content-group-cards-item) .cds--card__copy
|
|
9938
|
-
:host(c4d-region-item) .cds--link .cds--card__copy
|
|
9917
|
+
.cds--card .cds--card__copy,
|
|
9918
|
+
:host(c4d-card) .cds--card__copy,
|
|
9919
|
+
:host(c4d-card-cta) .cds--card__copy,
|
|
9920
|
+
:host(c4d-card-group-item) .cds--card .cds--card__copy,
|
|
9921
|
+
:host(c4d-card-group-item) .cds--card__copy,
|
|
9922
|
+
:host(c4d-card-in-card) .cds--card__copy,
|
|
9923
|
+
:host(c4d-content-group-cards-item) .cds--card .cds--card__copy,
|
|
9924
|
+
:host(c4d-content-group-cards-item) .cds--card__copy,
|
|
9925
|
+
:host(c4d-region-item) .cds--link .cds--card__copy {
|
|
9939
9926
|
font-size: var(--cds-body-02-font-size,1rem);
|
|
9940
9927
|
font-weight: var(--cds-body-02-font-weight,400);
|
|
9941
9928
|
line-height: var(--cds-body-02-line-height,1.5);
|
|
@@ -10073,12 +10060,6 @@ screen and (prefers-contrast) {
|
|
|
10073
10060
|
:host(c4d-card-in-card)[pictogram] .cds--card .cds--card__copy {
|
|
10074
10061
|
margin-block: 2rem 0
|
|
10075
10062
|
}
|
|
10076
|
-
:host(c4d-card)[pictogram] .cds--card .cds--card__copy[hidden],
|
|
10077
|
-
:host(c4d-card-cta)[pictogram] .cds--card .cds--card__copy[hidden],
|
|
10078
|
-
:host(c4d-card-group-item)[pictogram] .cds--card .cds--card__copy[hidden],
|
|
10079
|
-
:host(c4d-card-in-card)[pictogram] .cds--card .cds--card__copy[hidden] {
|
|
10080
|
-
margin: 0
|
|
10081
|
-
}
|
|
10082
10063
|
:host(c4d-card)[pictogram] .cds--card svg,
|
|
10083
10064
|
:host(c4d-card-cta)[pictogram] .cds--card svg,
|
|
10084
10065
|
:host(c4d-card-group-item)[pictogram] .cds--card svg,
|
|
@@ -10119,6 +10100,21 @@ screen and (prefers-contrast) {
|
|
|
10119
10100
|
-ms-flex-align: start;
|
|
10120
10101
|
align-items: flex-start
|
|
10121
10102
|
}
|
|
10103
|
+
:host(c4d-card)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__content,
|
|
10104
|
+
:host(c4d-card-cta)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__content,
|
|
10105
|
+
:host(c4d-card-group-item)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__content,
|
|
10106
|
+
:host(c4d-card-in-card)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__content {
|
|
10107
|
+
-webkit-padding-after: 4rem;
|
|
10108
|
+
padding-block-end: 4rem
|
|
10109
|
+
}
|
|
10110
|
+
:host(c4d-card)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__pictogram-wrapper,
|
|
10111
|
+
:host(c4d-card-cta)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__pictogram-wrapper,
|
|
10112
|
+
:host(c4d-card-group-item)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__pictogram-wrapper,
|
|
10113
|
+
:host(c4d-card-in-card)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__pictogram-wrapper {
|
|
10114
|
+
position: absolute;
|
|
10115
|
+
inset-block-end: 1rem;
|
|
10116
|
+
inset-inline-start: 1rem
|
|
10117
|
+
}
|
|
10122
10118
|
:host(c4d-card)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__copy,
|
|
10123
10119
|
:host(c4d-card-cta)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__copy,
|
|
10124
10120
|
:host(c4d-card-group-item)[pictogram][pictogram-placement=bottom] .cds--card .cds--card__copy,
|
|
@@ -10176,6 +10172,12 @@ screen and (prefers-contrast) {
|
|
|
10176
10172
|
flex-direction: column;
|
|
10177
10173
|
gap: 1rem
|
|
10178
10174
|
}
|
|
10175
|
+
:host(c4d-card) .cds--card__copy[hidden],
|
|
10176
|
+
:host(c4d-card-cta) .cds--card__copy[hidden],
|
|
10177
|
+
:host(c4d-card-group-item) .cds--card__copy[hidden],
|
|
10178
|
+
:host(c4d-card-in-card) .cds--card__copy[hidden] {
|
|
10179
|
+
display: none!important
|
|
10180
|
+
}
|
|
10179
10181
|
:host(c4d-card[aspect-ratio="1:1"]) .cds--card__wrapper {
|
|
10180
10182
|
display: -webkit-box;
|
|
10181
10183
|
display: -ms-flexbox;
|
|
@@ -12273,6 +12275,11 @@ screen and (prefers-contrast) {
|
|
|
12273
12275
|
grid-template-columns: repeat(2,1fr)
|
|
12274
12276
|
}
|
|
12275
12277
|
}
|
|
12278
|
+
@media (min-width:66rem) {
|
|
12279
|
+
:host(c4d-card-group) {
|
|
12280
|
+
grid-template-columns: repeat(var(--c4d--card-group--cards-in-row),1fr)
|
|
12281
|
+
}
|
|
12282
|
+
}
|
|
12276
12283
|
:host(c4d-card-group[with-card-in-card][grid-mode]) {
|
|
12277
12284
|
-webkit-padding-before: 0;
|
|
12278
12285
|
padding-block-start: 0;
|
|
@@ -12293,6 +12300,7 @@ screen and (prefers-contrast) {
|
|
|
12293
12300
|
display: grid;
|
|
12294
12301
|
border: 0;
|
|
12295
12302
|
grid-row: span 10;
|
|
12303
|
+
grid-template-columns: subgrid;
|
|
12296
12304
|
grid-template-rows: subgrid;
|
|
12297
12305
|
-webkit-margin-after: 2rem;
|
|
12298
12306
|
margin-block-end: 2rem;
|
|
@@ -12333,9 +12341,6 @@ screen and (prefers-contrast) {
|
|
|
12333
12341
|
block-size: to-rem(240px)
|
|
12334
12342
|
}
|
|
12335
12343
|
@media (min-width:66rem) {
|
|
12336
|
-
:host(c4d-card-group) {
|
|
12337
|
-
grid-template-columns: repeat(var(--c4d--card-group--cards-in-row),1fr)
|
|
12338
|
-
}
|
|
12339
12344
|
:host(c4d-card-group-item) .cds--image {
|
|
12340
12345
|
position: relative;
|
|
12341
12346
|
overflow: hidden;
|
|
@@ -14311,8 +14316,7 @@ screen and (prefers-contrast) {
|
|
|
14311
14316
|
margin-block-end: 3rem
|
|
14312
14317
|
}
|
|
14313
14318
|
.cds--content-group-cards__row {
|
|
14314
|
-
display: grid
|
|
14315
|
-
margin-inline: -1rem
|
|
14319
|
+
display: grid
|
|
14316
14320
|
}
|
|
14317
14321
|
.cds--content-group-cards-item__col,
|
|
14318
14322
|
:host(c4d-content-group-cards-item) {
|