Skip to content

Commit

Permalink
Hotfix/card icon alignment (#92)
Browse files Browse the repository at this point in the history
* card: fix icon positioning

* card: icon spacing on mobile
  • Loading branch information
cdbenj authored Dec 7, 2020
1 parent adbaa91 commit 34219e1
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/components/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@

&__content {
@include font-size('sm');
@include nsw-spacing(padding, md);
@include nsw-spacing(padding, md md xxxxl md);
border-top: solid 6px $nsw-primary-highlight;
display: flex;
flex-direction: column;
order: 2;


@include breakpoint('lg') {
@include nsw-spacing(padding, xl);
@include nsw-spacing(padding, xl xl xxxxl xl);
}
}

Expand Down Expand Up @@ -76,15 +75,13 @@

&__icon {
@include nsw-spacing(margin, md none none none);
@include nsw-spacing(bottom, md);
position: absolute;
width: rem(24px);
height: rem(24px);

@include breakpoint('md') {
width: rem(24px);
height: rem(24px);
}

@include breakpoint('lg') {
@include nsw-spacing(bottom, xl);
@include nsw-spacing(margin, xl none none none);
}
}
Expand Down

0 comments on commit 34219e1

Please sign in to comment.