Created
August 10, 2015 09:51
-
-
Save asvny/df51147c0e4641e3571c to your computer and use it in GitHub Desktop.
Gradient border SCSS mixin
This file contains hidden or 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
@mixin gradientBorder($leftColor,$rightColor,$borderWidth) | |
{ | |
-webkit-appearance:none; | |
border:none; | |
background-image:linear-gradient(to right,$leftColor,$rightColor),linear-gradient(to right,$leftColor,$rightColor); | |
outline:none; | |
border-left:$borderWidth solid $leftColor; | |
border-right:$borderWidth solid $rightColor; | |
background-repeat:no-repeat; | |
background-size:100% $borderWidth; | |
background-color:transparent; | |
background-position: 0 0, 0 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment