npm.io
1.0.9 • Published 9 years ago

sass-helper

Licence
MIT
Version
1.0.9
Deps
0
Vulns
0
Weekly
0

SASS Helper

npm

Getting started

  • Install with Bower: bower install sass-helper.
  • Add code to the beginning of Your sass file @import "../bower/sass-helper/dist/sass-helper";

Use

SASS Helper focuses on the use of @extend in sass, to create a more compact and less repetitive code.

Example

#example {
    @extend %indent-0-1, %position-relative, %clearfix, %vertical-align-top;
}
#example {
    position: relative;
    vertical-align: top;
    padding: 0 1.5rem;
    zoom: 1
}

#example, #example:after, #example:before {
    display: block
}

#example:after {
    clear: both
}

#example:after, #example:before {
    content: '';
    font-size: 0;
    height: 0;
    visibility: hidden
}

License

MIT