Skip to content

Commit 0d39563

Browse files
authored
Merge branch 'main' into feat/masthead-lang-selector
2 parents cd90ca9 + 6c9bbfd commit 0d39563

1 file changed

Lines changed: 38 additions & 1 deletion

File tree

packages/web-components/src/components/content-block-simple/content-block-simple.scss

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,45 @@
4343

4444
::slotted(#{$c4d-prefix}-card) {
4545
@include breakpoint('md') {
46-
inline-size: 34%;
4746
margin-inline-start: -$spacing-05;
4847
}
4948
}
49+
50+
/* TOC template (anything that's not FW) */
51+
&:not(.cds--content-block--full-width-template) {
52+
::slotted(#{$c4d-prefix}-card[slot='footer']) {
53+
/* sm and down */
54+
@include breakpoint-down(md) {
55+
inline-size: 100%;
56+
max-inline-size: 100%;
57+
}
58+
59+
/* md and larger */
60+
@include breakpoint('md') {
61+
inline-size: calc(50% + 1rem);
62+
max-inline-size: 100vw;
63+
}
64+
}
65+
}
66+
}
67+
68+
:host(
69+
#{$c4d-prefix}-content-block-simple.cds--content-block--full-width-template
70+
) {
71+
::slotted(#{$c4d-prefix}-card[slot='footer']) {
72+
/* default for lg, xlg, max */
73+
inline-size: 34%;
74+
75+
/* sm and down */
76+
@include breakpoint-down(md) {
77+
inline-size: 100%;
78+
max-inline-size: 100%;
79+
}
80+
81+
/* md only */
82+
@media (width >= 672px) and (width <= 1055.98px) {
83+
inline-size: calc(50% + 1rem);
84+
max-inline-size: 100vw;
85+
}
86+
}
5087
}

0 commit comments

Comments
 (0)