Created
November 6, 2014 11:51
-
-
Save mattradford/779354c881b5c2e7c159 to your computer and use it in GitHub Desktop.
bg gradient overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://codepen.io/alexcarpenter/pen/LveDx | |
html, body { | |
width: 100%; | |
height: 100%; | |
} | |
.bg-img { | |
width: 100%; | |
height: 100%; | |
background: url('https://dl.dropboxusercontent.com/u/5049340/office%402x.png') center center no-repeat; | |
background-size: cover; | |
&:before { | |
content: ''; | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
background-image: linear-gradient(to bottom right,#002f4b,#dc4225); | |
opacity: .6; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment