Skip to content

Instantly share code, notes, and snippets.

@ivan-kalachikov
Created October 30, 2017 15:06
Show Gist options
  • Save ivan-kalachikov/2c6c9b44f9b70968100e0df6f9388b6a to your computer and use it in GitHub Desktop.
Save ivan-kalachikov/2c6c9b44f9b70968100e0df6f9388b6a to your computer and use it in GitHub Desktop.
triangle 100% height
&::before,
&::after {
width: 20px;
height: 50%;
position: absolute;
left: 100%;
content: "";
}
&:before {
top: 0px;
background: linear-gradient(to right top, #000 50%, transparent 50%);
}
&:after {
top: 50%;
background: linear-gradient(to right bottom, #000 50%, transparent 50%);
margin-left: 0;
border: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment