A customizable LESS mixin to create a pure CSS star
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MIT-LICENSE.txt
README.md
star.less

README.md

LESS Mixin For A CSS Star

A customizable LESS mixin to create a pure CSS star

Version: 0.2 Requires: LESS Demo: http://codepen.io/webbushka/pen/hezba Git: https://github.com/webbushka/LESS-Mixin-CSS-Star

Usage

.star(size, units, color, rotation);

  • Size is the size of the star
  • Units is the units of measurement for the size (e.g. px, rem, em)
  • Color is the color of the star, (e.g. #000, red or rgba(0,0,0,0.5))
  • Rotation is the rotation of the star

Example

.star(200, em, #f4f4f4, -15)

Changelog

v0.2 - Added the ability to speficy units, allowing you to use px, em or rem measurements on your sizing. v0.1 - Inital Commit

Credit

Kit MacAllister for the original CSS star shape.



Copyright 2012 (c), AJ Webb https://github.com/webbushka/
Licensed under MIT