File tree Expand file tree Collapse file tree
packages/web-components/src/components/content-block-simple Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments