postcss-fontpath
Advanced tools
Comparing version
@@ -9,6 +9,6 @@ 'use strict'; | ||
// Loop through each @rule | ||
css.eachAtRule('font-face', function(rule) { | ||
css.walkAtRules('font-face', function(rule) { | ||
// Loop through each decleration in the rule | ||
rule.eachDecl('font-path', function(decl) { | ||
rule.walkDecls('font-path', function(decl) { | ||
@@ -44,3 +44,3 @@ // Gather up the components of our new declerations | ||
// Remove our custom decleration | ||
decl.removeSelf(); | ||
decl.remove(); | ||
@@ -47,0 +47,0 @@ }); |
{ | ||
"name": "postcss-fontpath", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "PostCSS plugin that adds a font-path attribute to @font-face which expands to the FontSpring syntax", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"dependencies": { | ||
"postcss": "^4.1.9" | ||
"postcss": "^5.0.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
@@ -1,6 +0,8 @@ | ||
# postcss-fontpath | ||
# PostCSS FontPath | ||
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] | ||
[PostCSS] plugin that adds a `font-path` attribute to `@font-face` which expands to the [FontSpring syntax][fontspring]. | ||
[PostCSS][PostCSS] plugin that adds a `font-path` attribute to `@font-face` which expands to the [FontSpring syntax][fontspring]. | ||
Part of [Rucksack - CSS Superpowers](http://simplaio.github.io/rucksack). | ||
```css | ||
@@ -37,3 +39,3 @@ /* Note: path must include base filename */ | ||
See [PostCSS] docs for examples for your environment. | ||
See [PostCSS][PostCSS] docs for examples for your environment. | ||
@@ -54,2 +56,1 @@ -- | ||
[fontspring]: http://blog.fontspring.com/2011/02/further-hardening-of-the-bulletproof-syntax/ | ||
4790
1.89%55
1.85%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated