Last active
September 7, 2016 23:36
-
-
Save gsambrotta/c75682837d57d5813fb555f8cc8fb093 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
.selector2 { | |
background: right; | |
background: -webkit-linear-gradient(10px, right, #FC913A 0%, #FF4E50 100%); | |
background: linear-gradient(10px, right, #FC913A 0%, #FF4E50 100%); | |
background: -webkit-linear-gradient(10px, right, #FC913A 0%, #FF4E50 100%); | |
background: linear-gradient(10px, right, #FC913A 0%, #FF4E50 100%); | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
border: 1px solid transparent; | |
-moz-border-image: -moz-linear-gradient(10px, right, #FC913A 0%, #FF4E50 100%); | |
-webkit-border-image: -webkit-linear-gradient(10px, right, #FC913A 0%, #FF4E50 100%); | |
border-image: linear-gradient(10px, right, #FC913A 0%, #FF4E50 100%); | |
border-image-slice: 1; | |
} |
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
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
// Background | |
@mixin linear-gradient($direction, $color-stops...) { | |
background: nth(nth($color-stops, 1), 1); | |
background: -webkit-linear-gradient($direction, $color-stops); | |
background: linear-gradient($direction, $color-stops); | |
} | |
// Border | |
@mixin border-gradient($direction, $color-stops...) { | |
border: 1px solid transparent; | |
-moz-border-image: -moz-linear-gradient($direction, $color-stops); | |
-webkit-border-image: -webkit-linear-gradient($direction, $color-stops); | |
border-image: linear-gradient($direction, $color-stops); | |
border-image-slice: 1; | |
} | |
// Text | |
@mixin txt-gradient($direction, $color-stops...) { | |
background: -webkit-linear-gradient($direction, $color-stops); | |
background: linear-gradient($direction, $color-stops); | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
} | |
.selector2 { | |
@include linear-gradient(10px, right, #FC913A 0%, #FF4E50 100%); | |
@include txt-gradient(10px, right, #FC913A 0%, #FF4E50 100%); | |
@include border-gradient(10px, right, #FC913A 0%, #FF4E50 100%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment