Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (28 sloc) 1.12 KB

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