Skip to content

Commit

Permalink
Consolidate hero variables
Browse files Browse the repository at this point in the history
  • Loading branch information
contolini committed Oct 26, 2021
1 parent 513e66c commit 572a44f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
8 changes: 0 additions & 8 deletions packages/cfpb-layout/src/cfpb-layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@
// .grid_column__top-divider
@grid_column__left-divider: @block__border;

// Hero variables

@hero-desktop-height: 285px;

@hero-bg: @block__bg;
@hero-knockout-bg: @gray;
@hero-knockout-text: @white;

// Featured Content Module variables

@fcm-visual-width: 270px;
Expand Down
12 changes: 9 additions & 3 deletions packages/cfpb-layout/src/molecules/heroes.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// Hero variables

@hero-desktop-height: 285px;

// Hero molecule

.m-hero {
background-color: @hero-bg;
background-color: @gray-5;

&_wrapper {
padding-top: unit( @grid_gutter-width / @base-font-size-px, em );
Expand Down Expand Up @@ -91,8 +97,8 @@
}

&__knockout {
background-color: @hero-knockout-bg;
color: @hero-knockout-text;
background-color: @gray;
color: @white;
}

&__bleeding {
Expand Down

0 comments on commit 572a44f

Please sign in to comment.