1.0.0 • Published 9 years ago

sass-fpo v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Sass FPO

Create CSS-Only placeholder images. I'm using the term "FPO" (For Placement Only) because "placeholder" is already a keyword in Sass and things would get confusing fast.

Demo

http://sassmeister.com/gist/14af5a6c73d723ad4715

Installation

Via Bower:

bower install sass-fpo --save

Or NPM:

npm install sass-fpo --save-dev

Make sure you add the installation directory (bower_components or node_modules by default, respectively) to your included paths in your sass config.

Usage

Import sass-fpo into your stylesheet:

@import "sass-fpo/sass/fpo.scss";

Mixins

fpo($args)

Creates the FPO image. Takes three optional arguments:

color

Type: Color

The background color of the FPO image. Defaults to a random color.

font

Type: List

The font property to use on the FPO text. Defaults to bold 20px/1 sans-serif.

text

Type: String

The text to display in the FPO image. Defaults to 'FPO'.

Requirements

This plug-in requires Ruby Sass >= 3.3 or LibSass >= 3.1.