https://github.com/matype/css-z
Analize z-index property in CSS code
https://github.com/matype/css-z
Last synced: 9 months ago
JSON representation
Analize z-index property in CSS code
- Host: GitHub
- URL: https://github.com/matype/css-z
- Owner: matype
- Created: 2014-05-07T16:37:34.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-08T17:24:32.000Z (about 12 years ago)
- Last Synced: 2024-06-01T06:12:51.872Z (about 2 years ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
Awesome Lists containing this project
README
# css-z [](https://travis-ci.org/morishitter/css-z)
Analize z-index property in CSS code.
## Installation
```
npm install css-z
```
## Example
```javascript
var z_index = require('../');
var css = ".z1{z-index:10;}.z2{z-index:20;}.z3{z-index:-3;}.z4{z-index:0;}.z5{z-index:9999;}.z6{z-index:auto;}"
z_index.num(css); // 6
z_index.max(css); // 9999
z_index.min(css); // -3
z_index.stats(css);
/*
* [
* { selector: '.z1',
* z_value: '10'},
* { selector: '.z2',
* z_value: '20'},
* { selector: '.z3',
* z_value: '-3'},
* { selector: '.z4',
* z_value: '0'},
* { selector: '.z5',
* z_value: '9999'},
* { selector: '.z6',
* z_value: 'auto'}
* ];
*/
```
## License
The MIT License (MIT)
Copyright (c) 2014 Masaaki Morishita