Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@mixin diagonal($rotation, $background, $height, $pos: after)
&:#{$pos}
content: ''
display: block
position: absolute
width: 100%
height: $height
background: #{$background}
transform: skewY($rotation)
z-index: 0
@media (min-width: 2000)
transform: skewY($rotation/2)
@content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment