sass-triangle

2.0.1 • Public • Published

sass-triangle

Mixin for creating CSS triangles.

Installation

npm install --save sass-triangle

Usage

@import "sass-triangle";

.triangle-1 {
  @include triangle(up, 20px, $color: #ffe619); //20px wide and 20px high
}

.triangle-2 {
  @include triangle(down, 20px 20px, $color: #ff3005); //20px wide and 20px high
}

.triangle-3 {
  @include triangle(left, 20px 10px, $color: #ffaf14); //20px wide and 10px high
}

.triangle-4 {
  @include triangle(down, 20px 5px, $color: #ff1870); //20px wide and 5px high
}

.triangle-5 {
  @include triangle(right, 20px 10px 5px, $color: #ff28ca, $before: true); //weird! three different border sizes makes 10px high and 25px wide
}

Readme

Keywords

none

Package Sidebar

Install

npm i sass-triangle

Weekly Downloads

103

Version

2.0.1

License

none

Last publish

Collaborators

  • jameslnewell