Skip to content

Commit

Permalink
change(hero): tweaked hero block height and padding
Browse files Browse the repository at this point in the history
- as requested in tickets to bump up size of image height and
  played with padding so that we can better use tha alignment classes
  • Loading branch information
ichim-david committed Jul 2, 2022
1 parent 874f956 commit 994b6f8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
7 changes: 7 additions & 0 deletions theme/themes/eea/extras/hero.less
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
.hero-block-body {
gap: @tabletHeroBlockBodyGap;
}
.hero-block-inner-wrapper {
padding-block: @tableHeroBlockWrapperPadding;
}
.homepage #page-document > .eea.hero-block:first-of-type .hero-block-body {
margin: @heroBlockHomePageBodyMargin;
}
Expand All @@ -79,6 +82,10 @@
.eea.hero-block.full-height .hero-block-inner-wrapper {
min-height: @desktopHeroBlockMinHeight;
}

.hero-block-inner-wrapper {
padding-block: @desktopHeroBlockWrapperPadding;
}
.hero-block-body {
gap: @desktopHeroBlockBodyGap;
}
Expand Down
12 changes: 7 additions & 5 deletions theme/themes/eea/extras/hero.variables
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*******************************/

/* Hero block */
@mobileHeroBlockMinHeight : 360px;
@tabletHeroBlockMinHeight : 500px;
@desktopHeroBlockMinHeight: 600px;
@mobileHeroBlockMinHeight : 412px;
@tabletHeroBlockMinHeight : 446px;
@desktopHeroBlockMinHeight: 664px;

@heroBlockPosition: relative;
@heroBlockHomePagePadding: 0 @rem-space-5;
@heroBlockHomePageBodyMargin: @rem-space-16 0 0 0;
@heroBlockHomePageBodyMargin: @rem-space-20 0 0 0;

/* Hero block spaced */
@heroBlockSpacedMargin: @rem-space-12 0;
Expand All @@ -23,7 +23,9 @@
@heroBlockImageBackgroundPosition : center;

/* Wrapper */
@heroBlockWrapperPadding : @rem-space-20;
@heroBlockWrapperPadding : 5rem;
@tableHeroBlockWrapperPadding: 6rem;
@desktopHeroBlockWrapperPadding: 194px 96px;

/* Body */
@mobileHeroBlockBodyGap : @rem-space-6;
Expand Down

0 comments on commit 994b6f8

Please sign in to comment.