Created
October 23, 2015 19:01
-
-
Save arielsalminen/ebc37519250b65697025 to your computer and use it in GitHub Desktop.
Nicer links
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
$browser-context: 16; | |
@function em($pixels, $context: $browser-context) { | |
@return #{$pixels/$context}em | |
} | |
@mixin link-line($shadow, $shadow-context, $color, $position, $size) { | |
text-shadow: em(1,$shadow-context) 0 0 $shadow, em(2,$shadow-context) 0 0 $shadow, | |
em(3,$shadow-context) 0 0 $shadow, em(-1,$shadow-context) 0 0 $shadow, | |
em(-2,$shadow-context) 0 0 $shadow, em(-3,$shadow-context) 0 0 $shadow, | |
0 em(1,$shadow-context) 0 $shadow, 0 em(2,$shadow-context) 0 $shadow, | |
0 em(-1,$shadow-context) 0 $shadow, 0 em(-2,$shadow-context) 0 $shadow; | |
background-image: -webkit-linear-gradient($color, $color); | |
background-image: -moz-linear-gradient($color, $color); | |
background-image: -ms-linear-gradient($color, $color); | |
background-image: linear-gradient($color, $color); | |
background-position: 0 $position; | |
background-size: $size $size; | |
background-repeat: repeat-x; | |
} |
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
a { | |
@include link-line(#fff, 16, #000, em(18,16), 1px); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment