Skip to content

Commit

Permalink
fix(callout-quote): fix horizontal scroll for callout quote (#12164)
Browse files Browse the repository at this point in the history
* fix(callout-quote): fix horizontal scroll for callout quote

* fix(callout-with-media): box-sizing

* fix(callout-with-media): prevent img overflow

* formatting

---------

Co-authored-by: Andy Blum <[email protected]>
  • Loading branch information
m4olivei and andy-blum authored Dec 12, 2024
1 parent e408461 commit be2e956
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
@include quote;

@mixin callout-quote {
* {
box-sizing: border-box;
}

:host(#{$c4d-prefix}-callout-quote) {
@extend :host(#{$c4d-prefix}-callout);
@extend :host(#{$c4d-prefix}-callout-text);
Expand Down Expand Up @@ -99,12 +103,9 @@
}

:host(#{$c4d-prefix}-callout-quote) #{$c4d-prefix}-hr {
margin: $spacing-05;
margin: $spacing-05 $spacing-07;
@include breakpoint(md) {
margin: $spacing-05 0;
}
@include breakpoint(lg) {
margin: $spacing-05 $spacing-03;
margin: $spacing-05;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
@include callout;

@mixin callout-with-media {
* {
box-sizing: border-box;
}

:host(#{$c4d-prefix}-callout-with-media) {
@extend :host(#{$c4d-prefix}-callout);

Expand Down Expand Up @@ -179,7 +183,7 @@
}
}

:host(#{$c4d-prefix}-callout-with-media-image) .#{$prefix}--image__img {
:host(#{$c4d-prefix}-callout-with-media-image) .#{$c4d-prefix}--image__img {
max-inline-size: 100%;
}
}

0 comments on commit be2e956

Please sign in to comment.