Skip to content

Commit

Permalink
Merge branch 'main' into fix/card-group_wrong-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
m4olivei authored Nov 27, 2024
2 parents 569f59c + 4a7c1d1 commit 851ac19
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright IBM Corp. 2016, 2023
// Copyright IBM Corp. 2016, 2024
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -96,6 +96,8 @@
:host(#{$c4d-prefix}-callout-with-media-video)
::slotted(#{$c4d-prefix}-video-player) {
@extend :host(#{$c4d-prefix}-callout-caption);

margin-block-end: 0;
}

:host(#{$c4d-prefix}-callout-with-media-image[color-scheme='inverse'])
Expand Down Expand Up @@ -159,7 +161,7 @@
.#{$prefix}--callout-with-media
.#{$prefix}--callout__content
.#{$prefix}--content-block {
padding-block-end: $spacing-10;
padding-block-end: $spacing-07;
}

:host(#{$c4d-prefix}-callout-with-media-image),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ $feature-flags: (
::slotted([slot='image']),
#{$c4d-prefix}-image {
z-index: 0;
block-size: 100%;

// Opacity is adjusted on hover. See above.
&::before {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2016, 2023
* Copyright IBM Corp. 2016, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -121,6 +121,7 @@

::slotted(#{$c4d-prefix}-image) {
overflow: hidden;
block-size: 100%;

@include breakpoint(sm) {
block-size: aspect-ratio(1, 1);
Expand Down

0 comments on commit 851ac19

Please sign in to comment.