Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

evansims/sass-mixins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Evan's SASS Mixins

A collection of my favorite custom SASS mixins.

Requirements

These scripts were designed to fit into my design workflow, which makes use of :

Medium.com Style Underlines

This mixin is intended to replicate Medium.com's super sexy underlines style, elaborated in fantastic detail by Marcin Wichary here.. This mixin is a bit of a remix based on several other's attempts, with my own added contributions. It supports clearing descenders and graceful multiline spanning.

Underline Example

Multiline underlines are supported.

Usage example:

a.author {
    color: #5f5164;
    @include underline(#fff, #D6DDDE)

    &:hover {
        @include underline(#fff, #5f5164)
    }
}

Parameters (in order):

  • Background color; defaults to #fff.
  • Underline color; defaults to #ccc.
  • Distance of underline from text base; defaults to 2.
  • Width of underline; defaults to 1.
  • Clear descenders true/false; defaults to yes.

About

A collection of SASS mixins I've built.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages