Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save princesslea/e691a9f433ef733ea3dca2e5584eb3ba to your computer and use it in GitHub Desktop.
Save princesslea/e691a9f433ef733ea3dca2e5584eb3ba to your computer and use it in GitHub Desktop.
Markdown for separator element
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