Détail du package

rework-font-variant

ianstormtaylor7.5kMIT1.0.1

Implements the font-variant-* properties for browsers that don't yet support them.

font-variant, font, variant, rework

readme

rework-font-variant

Adds support for the nice font-variant CSS properties that are shorthand for the really awkward font-feature-settings values.

This is part of the CSS spec, but no browser supports the shorthands yet.

Installation

$ npm install rework-font-variant

Example

var variant = require('rework-font-variant');

rework(css)
  .use(variant)
  .toString();

API

In your CSS, use the font-variant properties like the spec tells you to:

h2 {
  font-variant-caps: small-caps;
}

table {
  font-variant-numeric: lining-nums;
}

Or use the font-variant shorthand:

table {
  font-variant: small-caps lining-nums;
}

License

MIT

changelog

1.0.1 - June 27, 2014

  • fix issue with normal & inherit values

1.0.0 - December 23, 2013

  • add component support

0.0.3 - December 12, 2013

  • add repository field to package.json

0.0.2 - September 29, 2013

  • handle comments

0.0.1 - September 29, 2013

:sparkles: