Created
April 7, 2015 18:57
-
-
Save PlenipotentSS/a0d6262234b15fb46b6f to your computer and use it in GitHub Desktop.
SCSS fancy underline 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 fancy-underline( $regColor:transparent, $hoverColor:#ffffff, $size: 1.5px, $distance: 4px, $delay: false) { | |
@include transition(padding .2s ease-in-out); | |
@if $delay { | |
@include transition-delay(.2s); | |
} | |
border-bottom: $size solid transparent; | |
color: $regColor; | |
display: inline-block; | |
text-decoration: none; | |
&:hover { | |
color: $hoverColor; | |
border-bottom: $size solid $hoverColor; | |
padding-bottom: $distance; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment