Skip to content

Instantly share code, notes, and snippets.

@BbsonLin
Created December 5, 2017 14:00
Show Gist options
  • Save BbsonLin/7554c19a1f25cc331e045757b7591814 to your computer and use it in GitHub Desktop.
Save BbsonLin/7554c19a1f25cc331e045757b7591814 to your computer and use it in GitHub Desktop.
Background Gradient Cover
$color-primary: #55c57a;
$color-primary-light: #7ed56f;
$color-primary-dark: #28b485;
.header {
height: 95vh;
background-image: linear-gradient(
to right bottom,
rgba($color-primary-light, 0.8),
rgba($color-primary-dark, 0.8)),
url('../img/some.jpg');
background-size: cover;
background-position: top;
position: relative;
clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment