Skip to content

Commit

Permalink
Add jumbo hero 50/50 variation
Browse files Browse the repository at this point in the history
  • Loading branch information
contolini committed Sep 30, 2021
1 parent b946c29 commit 1a4f2a3
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions packages/cfpb-layout/src/molecules/heroes.less
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,9 @@

.respond-to-min( @bp-sm-min, {
.m-hero_wrapper {
// Position the hero image all the way to the right plus a little
// extra so that it flows into the gutter
background-position: calc( 100% + @grid_gutter-width ) center;
background-position: 50%;
background-repeat: no-repeat;
background-size: 50%;
border: 1px solid @gray-40;
border-top: none;
background-size: cover;
}

.m-hero_text {
Expand All @@ -214,7 +210,7 @@

.respond-to-min( @bp-lg-min, {
.m-hero_wrapper {
min-height: unit( 350px / @base-font-size-px, em );
min-height: unit( 290px / @base-font-size-px, em );
}
.m-hero_heading {
.superheading();
Expand All @@ -224,4 +220,24 @@
}
} );
}

&__50-50 {
.respond-to-min( @bp-sm-min, {
.m-hero_wrapper {
// Position the hero image all the way to the right plus a little
// extra so that it flows into the gutter
background-position: calc( 100% + @grid_gutter-width ) center;
background-size: 50%;
border: 1px solid @gray-40;
border-top: none;
}
} );

.respond-to-min( @bp-lg-min, {
.m-hero_wrapper {
min-height: unit( 350px / @base-font-size-px, em );
}
} );
}

}

0 comments on commit 1a4f2a3

Please sign in to comment.