Skip to content

Commit

Permalink
Added media css for cta variant (#856)
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

---------

Co-authored-by: Reshma Dhane <reshmaingavale@gmail.com>
  • Loading branch information
reshmai and Reshma Dhane authored Nov 15, 2023
1 parent 4479e76 commit fd00a92
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion source/_patterns/02-molecules/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ $_config: map-merge-by-keys($_config_schemes, base, $_config_schemes, $scheme);
}

.usa-card--media-full-overlay &,
.usa-card--media-top-overlay & {
.usa-card--media-top-overlay &,
.usa-card--media-top &{
.usa-card__media {
@each $overlay-bgcolor, $color-value in map-get($_config, overlay-bgcolors) {
@if $overlay-bgcolor {
Expand Down Expand Up @@ -342,6 +343,15 @@ $_config: map-merge-by-keys($_config_schemes, base, $_config_schemes, $scheme);
}
}
}
.usa-card--media-top &{
.usa-card__header {
height: calc(18rem - 28px);
.usa-card__heading {
@include u-color(map-get($_config, title-color));
}
}
}

}

.usa-card:not(.usa-card--flag) .usa-card__container > :only-child {
Expand Down

0 comments on commit fd00a92

Please sign in to comment.