Skip to content

Commit

Permalink
Tci 1129 add images to card (#858)
Browse files Browse the repository at this point in the history
* Added media css for cta variant

* TCI-1129 Changed css for media top

* TCI-1129--Media top css fix

* TCI-1129 change in media top title color

* TCI-1129--Added css to media top card title

* TCI-1129 Css added for media left

* TCI-1129 Changes into card.css for media left in card

---------

Co-authored-by: Reshma Dhane <reshmaingavale@gmail.com>
  • Loading branch information
reshmai and Reshma Dhane authored Dec 5, 2023
1 parent 85f8014 commit eb820b9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions source/_patterns/02-molecules/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,20 @@ $_config: map-merge-by-keys($_config_schemes, base, $_config_schemes, $scheme);
}

.usa-card__container.type-image {
@include u-padding-left(0);
@include u-padding-top(0);
@include u-padding-bottom(0);
@include u-padding(0);

.usa-card__media{
line-height: 0;
@include u-margin-right(2);

.jcc-card--overlay-color-none {
aspect-ratio: 16/9;
overflow: hidden;
border-radius: initial;
}
}

.usa-card__content{
@include u-padding(3);
}
}

0 comments on commit eb820b9

Please sign in to comment.