Skip to content

Instantly share code, notes, and snippets.

@PlenipotentSS
Created April 7, 2015 18:57
Show Gist options
  • Save PlenipotentSS/a0d6262234b15fb46b6f to your computer and use it in GitHub Desktop.
Save PlenipotentSS/a0d6262234b15fb46b6f to your computer and use it in GitHub Desktop.
SCSS fancy underline mixin
@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