fela-plugin-lvha
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.1
@@ -58,3 +58,3 @@ (function (global, factory) { | ||
return LVHA; | ||
}) | ||
}); | ||
@@ -61,0 +61,0 @@ return LVHA$1; |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.FelaPluginLVHA=e()}(this,function(){"use strict";function t(t,e){var n=o[t],r=o[e];return n&&r?r>n?1:-1:0}function e(e){return Object.keys(e).sort(t).reduce(function(t,n){return t[n]=e[n],t},{})}var n={};n["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},n["extends"]=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};var o={":link":4,":visited":3,":hover":2,":focus":1.5,":active":1},r=function(){return e};return r}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.FelaPluginLVHA=e()}(this,function(){"use strict";function t(t,e){var n=o[t],r=o[e];return n&&r?n<r?1:-1:0}function e(e){return Object.keys(e).sort(t).reduce(function(t,n){return t[n]=e[n],t},{})}var n={};n["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},n["extends"]=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};var o={":link":4,":visited":3,":hover":2,":focus":1.5,":active":1},r=function(){return e};return r}); |
{ | ||
"name": "fela-plugin-lvha", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.1", | ||
"description": "Fela plugin that sorts pseudo classes according to LVH(F)A", | ||
@@ -9,4 +9,4 @@ "main": "index.js", | ||
"README.md", | ||
"LVHA.js", | ||
"dist" | ||
"index.js", | ||
"/dist" | ||
], | ||
@@ -13,0 +13,0 @@ "repository": "https://github.com/rofrischmann/fela/", |
# fela-plugin-lvha | ||
<img alt="npm downloads" src="https://img.shields.io/npm/dm/fela-plugin-lvha.svg"> | ||
<img alt="gzipped size" src="https://img.shields.io/badge/gzipped-0.47kb-brightgreen.svg"> | ||
LVHA (sometimes known as LVHFA) stands for **L**ink **V**isited **H**over (**F**ocus) **A**ctive which are actually describe pseudo classes. Within CSS their order is relevant which means we always need to sort them correctly. This plugin **does** include the `:focus` pseudo class as well. | ||
## Installation | ||
```sh | ||
npm i --save fela-plugin-lvha | ||
``` | ||
Assuming you are using [npm](https://www.npmjs.com) as your package mananger you can just `npm install`.<br> | ||
Otherwise we also provide a [UMD](https://github.com/umdjs/umd). You can easily use it via [npmcdn](https://npmcdn.com/). It registers a `FelaPluginLVHA` global. | ||
```HTML | ||
<!-- Fela (Development): Unminified version including all warnings --> | ||
<script src="https://npmcdn.com/fela-plugin-lvha@1.0.1/dist/fela-plugin-lvha.js"></script> | ||
<!-- Fela (Production): Minified version --> | ||
<script src="https://npmcdn.com/fela-plugin-lvha@1.0.1/dist/fela-plugin-lvha.min.js"></script> | ||
``` | ||
## Example | ||
#### Input | ||
```javascript | ||
@@ -19,3 +38,3 @@ { | ||
``` | ||
would be transformed into: | ||
#### Output | ||
```javascript | ||
@@ -35,1 +54,6 @@ { | ||
``` | ||
## License | ||
Fela is licensed under the [MIT License](http://opensource.org/licenses/MIT).<br> | ||
Documentation is licensed under [Creative Common License](http://creativecommons.org/licenses/by/4.0/).<br> | ||
Created with ♥ by [@rofrischmann](http://rofrischmann.de) and all the great contributors. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7357
1
58