1.0.1 • Published 8 years ago

tiny-mixins v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Tiny Mixins (Sass):

Clearfix

@mixin clearfix() { /* ... */ }

Usage:

.container {
    @include clearfix;
}

Reset

@mixin reset() { /* ... */ }

Usage:

@include reset;

Triangle

@mixin triangle($direction, $width, $height, $color) { /* ... */ }

Arguments:

  • $direction: to (top|right|bottom|left){1, 2}
  • $width: width
  • $height: height
  • $color: color

Usage:

.element {
    @include triangle(to right bottom, 30px, 25px, #000);
}