Created
October 3, 2017 17:47
-
-
Save princesslea/e691a9f433ef733ea3dca2e5584eb3ba to your computer and use it in GitHub Desktop.
Markdown for separator element
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
header { | |
height: calc(var(--height) * 2); | |
background-image: url(image.jpg); | |
background-size: cover; | |
background-position: center bottom; | |
} | |
.separator { | |
--top-color: transparent; | |
margin-top: calc(var(--height) * -1); | |
width: var(--width); | |
height: var(--height); | |
background-image: linear-gradient(to bottom right, var(--top-color), var(--top-color) 50%, var(--bottom-color) 50%, var(--bottom-color)); | |
} | |
section { | |
height: var(--height); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment