Created
November 9, 2015 10:27
-
-
Save intellix/6120cdee8de9a36ddc51 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@mixin zig-zag($color) { | |
background-image: | |
linear-gradient(135deg, $color 0%, $color 50%, rgba($color, 0) 50%, rgba($color, 0) 100%), | |
linear-gradient(-135deg, $color 0%, $color 50%, rgba($color, 0) 50%, rgba($color, 0) 100%), | |
linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%); | |
} | |
.zig-zag { | |
&.light { | |
@include zig-zag(#fff); | |
} | |
&.dark { | |
@include zig-zag(#000); | |
} | |
} |
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
.zig-zag.light { | |
background-image: linear-gradient(135deg, #fff 0%, #fff 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%), linear-gradient(-135deg, #fff 0%, #fff 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%); | |
} | |
.zig-zag.dark { | |
background-image: linear-gradient(135deg, #000 0%, #000 50%, transparent 50%, transparent 100%), linear-gradient(-135deg, #000 0%, #000 50%, transparent 50%, transparent 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment