@carbon/ibmdotcom-styles 2.16.0-rc.1 → 2.16.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.
@@ -3883,15 +3883,15 @@ screen and (prefers-contrast) {
3883
3883
  -webkit-padding-before: 0;
3884
3884
  padding-block-start: 0
3885
3885
  }
3886
- .c4d--video-player[background-mode=true] .c4d--video-player__video-container,
3887
- :host(c4d-video-player[background-mode=true]) .c4d--video-player__video-container {
3886
+ .c4d--video-player[background-mode] .c4d--video-player__video-container,
3887
+ :host(c4d-video-player[background-mode]) .c4d--video-player__video-container {
3888
3888
  padding: 0;
3889
3889
  block-size: 100%
3890
3890
  }
3891
- .c4d--video-player[background-mode=true] .c4d--video-player__video,
3892
- .c4d--video-player[background-mode=true] ::slotted(.c4d--video-player__video),
3893
- :host(c4d-video-player[background-mode=true]) .c4d--video-player__video,
3894
- :host(c4d-video-player[background-mode=true]) ::slotted(.c4d--video-player__video) {
3891
+ .c4d--video-player[background-mode] .c4d--video-player__video,
3892
+ .c4d--video-player[background-mode] ::slotted(.c4d--video-player__video),
3893
+ :host(c4d-video-player[background-mode]) .c4d--video-player__video,
3894
+ :host(c4d-video-player[background-mode]) ::slotted(.c4d--video-player__video) {
3895
3895
  aspect-ratio: var(--native-file-aspect-ratio,16/9);
3896
3896
  inset: 50% 0 0 50%;
3897
3897
  min-block-size: 100%;
@@ -6087,7 +6087,8 @@ screen and (prefers-contrast) {
6087
6087
  }
6088
6088
  .cds--content-layout ::slotted([data-autoid^=c4d--card]:not([slot])),
6089
6089
  .cds--content-layout ::slotted([data-autoid^=c4d--tabs-]:not([slot])),
6090
- .cds--content-layout ::slotted(c4d-content-group:not([slot])) {
6090
+ .cds--content-layout ::slotted(c4d-content-group:not([slot])),
6091
+ .cds--content-layout ::slotted(c4d-cta-block-item-row:not([slot])) {
6091
6092
  -webkit-margin-start: 0;
6092
6093
  margin-inline-start: 0
6093
6094
  }
@@ -9764,6 +9765,26 @@ screen and (prefers-contrast) {
9764
9765
  inset-block-start: 0;
9765
9766
  opacity: 16%
9766
9767
  }
9768
+ .cds--card .cds--card,
9769
+ :host(c4d-card) .cds--card,
9770
+ :host(c4d-card-cta) .cds--card,
9771
+ :host(c4d-card-group-item) .cds--card,
9772
+ :host(c4d-card-group-item) .cds--card .cds--card,
9773
+ :host(c4d-card-in-card) .cds--card,
9774
+ :host(c4d-content-group-cards-item) .cds--card,
9775
+ :host(c4d-content-group-cards-item) .cds--card .cds--card,
9776
+ :host(c4d-region-item) .cds--link .cds--card {
9777
+ display: -webkit-box;
9778
+ display: -ms-flexbox;
9779
+ display: flex;
9780
+ -webkit-box-orient: vertical;
9781
+ -webkit-box-direction: normal;
9782
+ -ms-flex-direction: column;
9783
+ flex-direction: column;
9784
+ -webkit-box-pack: justify;
9785
+ -ms-flex-pack: justify;
9786
+ justify-content: space-between
9787
+ }
9767
9788
  .cds--card .cds--card__wrapper,
9768
9789
  :host(c4d-card) .cds--card__wrapper,
9769
9790
  :host(c4d-card-cta) .cds--card__wrapper,
@@ -10155,13 +10176,6 @@ screen and (prefers-contrast) {
10155
10176
  flex-direction: column;
10156
10177
  gap: 1rem
10157
10178
  }
10158
- :host(c4d-card) ::slotted(div),
10159
- :host(c4d-card-cta) ::slotted(div),
10160
- :host(c4d-card-group-item) ::slotted(div),
10161
- :host(c4d-card-in-card) ::slotted(div) {
10162
- -webkit-margin-start: -.25rem!important;
10163
- margin-inline-start: -.25rem!important
10164
- }
10165
10179
  :host(c4d-card[aspect-ratio="1:1"]) .cds--card__wrapper {
10166
10180
  display: -webkit-box;
10167
10181
  display: -ms-flexbox;
@@ -10544,43 +10558,43 @@ screen and (prefers-contrast) {
10544
10558
  margin-inline-end: .5rem
10545
10559
  }
10546
10560
  :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--tile,
10547
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--tile {
10561
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--tile {
10548
10562
  border-color: var(--cds-background-inverse,#393939);
10549
10563
  background-color: var(--cds-background-inverse,#393939)
10550
10564
  }
10565
+ :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--tile:hover .c4d-image,
10551
10566
  :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--tile:hover ::slotted(c4d-card-cta-image),
10552
10567
  :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--tile:hover ::slotted(c4d-image),
10553
- :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--tile:hover c4d-image,
10554
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--tile:hover ::slotted(c4d-card-cta-image),
10555
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--tile:hover ::slotted(c4d-image),
10556
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--tile:hover c4d-image {
10568
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--tile:hover .c4d-image,
10569
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--tile:hover ::slotted(c4d-card-cta-image),
10570
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--tile:hover ::slotted(c4d-image) {
10557
10571
  -webkit-filter: brightness(108%);
10558
10572
  filter: brightness(108%)
10559
10573
  }
10574
+ :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--tile:hover .c4d-image::after,
10560
10575
  :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--tile:hover ::slotted(c4d-card-cta-image)::after,
10561
10576
  :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--tile:hover ::slotted(c4d-image)::after,
10562
- :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--tile:hover c4d-image::after,
10563
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--tile:hover ::slotted(c4d-card-cta-image)::after,
10564
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--tile:hover ::slotted(c4d-image)::after,
10565
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--tile:hover c4d-image::after {
10577
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--tile:hover .c4d-image::after,
10578
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--tile:hover ::slotted(c4d-card-cta-image)::after,
10579
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--tile:hover ::slotted(c4d-image)::after {
10566
10580
  display: none
10567
10581
  }
10568
10582
  :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--card__wrapper:hover,
10569
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--card__wrapper:hover {
10583
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card__wrapper:hover {
10570
10584
  background-color: var(--cds-background-inverse-hover,#474747)
10571
10585
  }
10572
10586
  :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--card__copy,
10573
10587
  :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--card__heading,
10574
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--card__copy,
10575
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--card__heading {
10588
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card__copy,
10589
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card__heading {
10576
10590
  color: var(--cds-icon-inverse,#fff)
10577
10591
  }
10578
10592
  :host(c4d-card)[color-scheme=inverse]:not([disabled]) .cds--card__eyebrow,
10579
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card .cds--card__eyebrow {
10593
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card__eyebrow {
10580
10594
  color: var(--cds-text-placeholder,rgba(22,22,22,.4))
10581
10595
  }
10582
10596
  :host(c4d-card)[color-scheme=inverse]:not([disabled]):focus-within::after,
10583
- :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]) .cds--card:focus-within::after {
10597
+ :host(c4d-card-group-item)[color-scheme=inverse]:not([disabled]):focus-within::after {
10584
10598
  position: absolute;
10585
10599
  z-index: 2;
10586
10600
  border: .125rem solid var(--cds-focus,#0f62fe);
@@ -12297,9 +12311,15 @@ screen and (prefers-contrast) {
12297
12311
  :host(c4d-card-group-item) .cds--card .cds--card__wrapper::before {
12298
12312
  content: revert
12299
12313
  }
12314
+ :host(c4d-card-group-item) .cds--card .cds--card__wrapper::after {
12315
+ display: block;
12316
+ aspect-ratio: 16/9;
12317
+ content: "";
12318
+ grid-area: 1/1/-1/-1
12319
+ }
12300
12320
  :host(c4d-card-group-item) .cds--card .cds--card__content {
12301
12321
  display: grid;
12302
- grid-row: span 10;
12322
+ grid-area: 1/1/-1/-1;
12303
12323
  grid-template-rows: subgrid;
12304
12324
  row-gap: 0
12305
12325
  }
@@ -12877,8 +12897,7 @@ screen and (prefers-contrast) {
12877
12897
  }
12878
12898
  :host(c4d-link-list) .c4d--link-list__list--vertical,
12879
12899
  :host(c4d-link-list) .c4d-ce--link-list__list--end {
12880
- display: grid;
12881
- grid-auto-rows: 1fr
12900
+ display: grid
12882
12901
  }
12883
12902
  :host(c4d-link-list) .c4d--link-list__list--vertical ::slotted(c4d-link-list-item),
12884
12903
  :host(c4d-link-list) .c4d--link-list__list--vertical ::slotted(c4d-link-list-item-cta),
@@ -12886,7 +12905,8 @@ screen and (prefers-contrast) {
12886
12905
  :host(c4d-link-list) .c4d-ce--link-list__list--end ::slotted(c4d-link-list-item-cta) {
12887
12906
  outline: 0
12888
12907
  }
12889
- :host(c4d-link-list) .c4d--link-list__list--vertical ::slotted(c4d-link-list-item) {
12908
+ :host(c4d-link-list) .c4d--link-list__list--vertical ::slotted(c4d-link-list-item),
12909
+ :host(c4d-link-list) .c4d--link-list__list--vertical ::slotted(c4d-link-list-item-cta) {
12890
12910
  display: -webkit-box;
12891
12911
  display: -ms-flexbox;
12892
12912
  display: flex
@@ -12895,7 +12915,9 @@ screen and (prefers-contrast) {
12895
12915
  display: contents
12896
12916
  }
12897
12917
  :host(c4d-link-list) .c4d-ce--link-list__list--split ::slotted(c4d-link-list-item),
12898
- :host(c4d-link-list) .c4d-ce--link-list__list--three-columns ::slotted(c4d-link-list-item) {
12918
+ :host(c4d-link-list) .c4d-ce--link-list__list--split ::slotted(c4d-link-list-item-cta),
12919
+ :host(c4d-link-list) .c4d-ce--link-list__list--three-columns ::slotted(c4d-link-list-item),
12920
+ :host(c4d-link-list) .c4d-ce--link-list__list--three-columns ::slotted(c4d-link-list-item-cta) {
12899
12921
  display: grid;
12900
12922
  -webkit-box-align: stretch;
12901
12923
  -ms-flex-align: stretch;
@@ -12912,10 +12934,6 @@ screen and (prefers-contrast) {
12912
12934
  display: grid;
12913
12935
  grid-column-gap: 2rem
12914
12936
  }
12915
- :host(c4d-link-list) .c4d-ce--link-list__list--split ::slotted(c4d-link-list-item),
12916
- :host(c4d-link-list) .c4d-ce--link-list__list--three-columns ::slotted(c4d-link-list-item) {
12917
- margin-inline: -1rem 0
12918
- }
12919
12937
  :host(c4d-link-list) .c4d-ce--link-list__list--split {
12920
12938
  grid-template-columns: 1fr 1fr
12921
12939
  }
@@ -12923,12 +12941,21 @@ screen and (prefers-contrast) {
12923
12941
  grid-template-columns: 1fr 1fr 1fr
12924
12942
  }
12925
12943
  }
12926
- :host(c4d-link-list-item) .cds--link {
12944
+ :host(c4d-link-list-item) .cds--link,
12945
+ :host(c4d-link-list-item-cta) .cds--link {
12946
+ display: -webkit-box;
12947
+ display: -ms-flexbox;
12948
+ display: flex;
12927
12949
  -ms-flex-line-pack: start;
12928
- align-content: flex-start
12950
+ align-content: flex-start;
12951
+ padding: .75rem 0;
12952
+ gap: .5rem;
12953
+ inline-size: 100%
12929
12954
  }
12930
12955
  :host(c4d-link-list-item) .cds--link ::slotted(svg[slot=icon]),
12931
- :host(c4d-link-list-item) .cds--link span {
12956
+ :host(c4d-link-list-item) .cds--link span,
12957
+ :host(c4d-link-list-item-cta) .cds--link ::slotted(svg[slot=icon]),
12958
+ :host(c4d-link-list-item-cta) .cds--link span {
12932
12959
  -ms-flex-item-align: start;
12933
12960
  align-self: flex-start
12934
12961
  }
@@ -12945,15 +12972,6 @@ screen and (prefers-contrast) {
12945
12972
  :host(c4d-link-list-heading) .cds--link {
12946
12973
  cursor: pointer
12947
12974
  }
12948
- :host(c4d-link-list-item)[type=default] .cds--link,
12949
- :host(c4d-link-list-item)[type=end] .cds--link,
12950
- :host(c4d-link-list-item-cta)[type=default] .cds--link {
12951
- display: -webkit-box;
12952
- display: -ms-flexbox;
12953
- display: flex;
12954
- padding: 1rem 0;
12955
- inline-size: 100%
12956
- }
12957
12975
  .c4d--link-list__list ::slotted(c4d-link-list-item),
12958
12976
  .c4d--link-list__list ::slotted(c4d-link-list-item-cta) {
12959
12977
  display: -webkit-box;
@@ -12984,8 +13002,8 @@ screen and (prefers-contrast) {
12984
13002
  padding-inline-end: 2rem
12985
13003
  }
12986
13004
  .c4d--link-list__list--vertical ::slotted(*) {
12987
- -webkit-margin-after: 1rem;
12988
- margin-block-end: 1rem
13005
+ -webkit-margin-after: 0;
13006
+ margin-block-end: 0
12989
13007
  }
12990
13008
  :host(c4d-link-list-item) .cds--link-with-icon__icon-left ::slotted(svg[slot=icon]),
12991
13009
  :host(c4d-link-list-item-cta) .cds--link-with-icon__icon-left ::slotted(svg[slot=icon]) {
@@ -13008,10 +13026,6 @@ screen and (prefers-contrast) {
13008
13026
  .cds--content-layout--with-headlines {
13009
13027
  grid-template: "heading heading ." auto "body body ." auto "footer . ." auto/1fr 1fr 1fr
13010
13028
  }
13011
- .c4d-ce--link-list__list--end ::slotted(c4d-link-list-item),
13012
- .c4d-ce--link-list__list--end ::slotted(c4d-link-list-item-cta) {
13013
- margin-inline: -1rem
13014
- }
13015
13029
  :host(c4d-content-item-row) {
13016
13030
  padding-block: 2rem 4rem
13017
13031
  }
@@ -13568,6 +13582,10 @@ screen and (prefers-contrast) {
13568
13582
  -ms-flex: 1 0 50%;
13569
13583
  flex: 1 0 50%
13570
13584
  }
13585
+ :host(c4d-feature-card) .cds--card__image-wrapper,
13586
+ :host(c4d-feature-cta) .cds--card__image-wrapper {
13587
+ aspect-ratio: 1/1
13588
+ }
13571
13589
  :host(c4d-feature-card) .cds--card__wrapper::after,
13572
13590
  :host(c4d-feature-card) .cds--card__wrapper::before,
13573
13591
  :host(c4d-feature-cta) .cds--card__wrapper::after,
@@ -13722,9 +13740,18 @@ screen and (prefers-contrast) {
13722
13740
  :host(c4d-feature-cta[size=large])[color-scheme=inverse] .cds--card__wrapper ::slotted(c4d-card-heading) {
13723
13741
  color: var(--cds-icon-inverse,#fff)
13724
13742
  }
13743
+ :host(c4d-feature-card-footer)[color-scheme=inverse] .c4d-ce--card__footer .c4d-ce--cta__icon,
13725
13744
  :host(c4d-feature-card-footer)[color-scheme=inverse] .c4d-ce--card__footer ::slotted(svg[slot=icon]) {
13726
13745
  fill: var(--cds-link-inverse,#78a9ff)
13727
13746
  }
13747
+ :host(c4d-feature-card-footer)[color-scheme=inverse] .c4d-ce--card__footer:hover .c4d-ce--cta__icon,
13748
+ :host(c4d-feature-card-footer)[color-scheme=inverse] .c4d-ce--card__footer:hover ::slotted(svg[slot=icon]) {
13749
+ fill: var(--cds-link-inverse-hover,#a6c8ff)
13750
+ }
13751
+ :host(c4d-feature-card-footer)[color-scheme=inverse] .c4d-ce--card__footer:active .c4d-ce--cta__icon,
13752
+ :host(c4d-feature-card-footer)[color-scheme=inverse] .c4d-ce--card__footer:active ::slotted(svg[slot=icon]) {
13753
+ fill: var(--cds-link-inverse-active,#f4f4f4)
13754
+ }
13728
13755
  :host(c4d-feature-card[size=large]) ::slotted(c4d-feature-card-footer) {
13729
13756
  display: -webkit-box;
13730
13757
  display: -ms-flexbox;
@@ -38775,6 +38802,7 @@ button.cds--side-nav__link > .cds--side-nav__link-text {
38775
38802
  }
38776
38803
  :host(c4d-leadspace) ::slotted([slot=navigation]) {
38777
38804
  z-index: 1;
38805
+ max-inline-size: 40rem;
38778
38806
  -webkit-padding-after: 1rem!important;
38779
38807
  padding-block-end: 1rem!important;
38780
38808
  padding-inline: 1rem!important
@@ -44651,13 +44679,33 @@ button.cds--side-nav__link > .cds--side-nav__link-text {
44651
44679
  cds-hr {
44652
44680
  margin-inline: 2rem/-2
44653
44681
  }
44682
+ html {
44683
+ font-size: 100%
44684
+ }
44685
+ body {
44686
+ font-weight: 400;
44687
+ font-family: 'IBM Plex Sans',system-ui,-apple-system,BlinkMacSystemFont,'.SFNSText-Regular',sans-serif;
44688
+ -moz-osx-font-smoothing: grayscale;
44689
+ -webkit-font-smoothing: antialiased;
44690
+ text-rendering: optimizeLegibility
44691
+ }
44692
+ code {
44693
+ font-family: 'IBM Plex Mono',system-ui,-apple-system,BlinkMacSystemFont,'.SFNSText-Regular',monospace
44694
+ }
44695
+ strong {
44696
+ font-weight: 600
44697
+ }
44654
44698
  .cds--nc {
44655
44699
  max-inline-size: 640px
44656
44700
  }
44657
44701
  .cds--nc .cds--checkbox-group,
44658
44702
  .cds--nc p {
44659
44703
  -webkit-margin-after: 1.5rem;
44660
- margin-block-end: 1.5rem
44704
+ margin-block-end: 1.5rem;
44705
+ font-size: var(--cds-legal-02-font-size,.875rem);
44706
+ font-weight: var(--cds-legal-02-font-weight,400);
44707
+ line-height: var(--cds-legal-02-line-height,1.28572);
44708
+ letter-spacing: var(--cds-legal-02-letter-spacing,.16px)
44661
44709
  }
44662
44710
  .cds--nc a {
44663
44711
  color: var(--cds-link-primary,#0f62fe)
@@ -48651,8 +48699,7 @@ cds-hr {
48651
48699
  }
48652
48700
  .cds--tableofcontents__content {
48653
48701
  -webkit-box-sizing: border-box;
48654
- box-sizing: border-box;
48655
- padding-block: 1rem 3rem
48702
+ box-sizing: border-box
48656
48703
  }
48657
48704
  .cds--tableofcontents {
48658
48705
  -webkit-margin-before: 2rem;