Skip to content

Commit

Permalink
Merge branch 'main' into fix/toc-padding
Browse files Browse the repository at this point in the history
  • Loading branch information
m4olivei authored Dec 3, 2024
2 parents 7df9124 + 8dc1099 commit 9ad0315
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 8 additions & 1 deletion packages/styles/scss/components/card-group/_card-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,18 @@
&::after {
content: revert;
}

&::after {
display: block;
aspect-ratio: 16 / 9;
content: '';
grid-area: 1 / 1 / -1 / -1;
}
}

.#{$prefix}--card__content {
display: grid;
grid-row: span 10;
grid-area: 1 / 1 / -1 / -1;
grid-template-rows: subgrid;
row-gap: 0;
}
Expand Down
6 changes: 0 additions & 6 deletions packages/styles/scss/components/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,6 @@
flex-direction: column;
gap: $spacing-05;
}

::slotted(div) {
/* stylelint-disable declaration-no-important */
// need the !important to prevent CSS reset styles from overwritting margin for tags
margin-inline-start: -$spacing-02 !important;
}
}

:host(#{$c4d-prefix}-card[aspect-ratio='1:1']) .#{$prefix}--card__wrapper {
Expand Down
1 change: 1 addition & 0 deletions packages/styles/scss/components/leadspace/_leadspace.scss
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ $btn-min-width: 26;

:host(#{$c4d-prefix}-leadspace) ::slotted([slot='navigation']) {
z-index: 1;
max-inline-size: 40rem;
// need the !important to prevent CSS reset styles from overwritting margin for tags
/* stylelint-disable declaration-no-important */
padding-block-end: $spacing-05 !important;
Expand Down

0 comments on commit 9ad0315

Please sign in to comment.