Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @mixin link($color) {
- color: $color;
- font-size: 1em;
- text-decoration: none;
- position: relative;
- display: inline-block;
- padding-bottom: 4px;
- &:after {
- bottom: 0;
- content: "";
- display: block;
- left: 50%;
- height: 2px;
- position: absolute;
- background: $color;
- @include transition(all .3s ease-in-out);
- width: 0;
- }
- &:hover:after {
- width: 100%;
- left: 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement