Skip to content

Commit

Permalink
Fix hero background positioning
Browse files Browse the repository at this point in the history
Signed-off-by: Maggie Walker <[email protected]>

Pull request: #642
Approved by: cwebberOps
  • Loading branch information
magwalk authored and jtimberman committed Jun 12, 2016
1 parent 58f1ace commit 6bbb502
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
26 changes: 11 additions & 15 deletions www/source/images/graphics/hero-pattern.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion www/source/stylesheets/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ $home-medium-breakpoint: rem-calc(880);
// Hero
.hero {
position: relative;
min-height: rem-calc(600);
background: url('/images/graphics/hero-pattern.svg') no-repeat 0 131%;
background-size: rem-calc(730) auto;
min-height: rem-calc(600);

@include medium-home {
background-position: 0 128%;
Expand All @@ -48,8 +48,10 @@ $home-medium-breakpoint: rem-calc(880);

@include large-home {
background-position: -16% 165%;
background-position: calc(50% - rem-calc(400px)) 165%;
background-size: auto;
}

}

.hero--content {
Expand Down

0 comments on commit 6bbb502

Please sign in to comment.