Skip to content

Commit

Permalink
Merge pull request #4210 from uswds/dw-card-exdent
Browse files Browse the repository at this point in the history
Add body exdent to card rule
  • Loading branch information
mejiaj committed May 28, 2021
2 parents d6b177f + 164d360 commit 976948a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/card/card--test.njk
Expand Up @@ -17,7 +17,7 @@
>
</div>
</div>
<div class="usa-card__body padding-top-3">
<div class="usa-card__body usa-card__body--exdent text-white bg-primary padding-y-3">
<p>His underjaw'd begin to stick out like the fo'castle of a steamboat, and his teeth would uncover, and shine savage like the furnaces.</p>
<p>And a dog might tackle him, and bully-rag him, and bite him, and throw him over his shoulder two or three times, and Andrew Jackson which was the name of the pup, Andrew Jackson would never let on but what he was satisfied.</p>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/stylesheets/components/_card.scss
Expand Up @@ -176,12 +176,14 @@

// Exdent
.usa-card__header--exdent,
.usa-card__body--exdent,
.usa-card__media--exdent,
.usa-card__footer--exdent {
@include u-margin-x(-$theme-card-border-width);
}

.usa-card__header--exdent,
.usa-card__body--exdent,
.usa-card__footer--exdent {
> * {
@include u-padding-x($theme-card-border-width);
Expand Down

0 comments on commit 976948a

Please sign in to comment.