1.1.4 • Published 5 years ago

postcss-z-indexes-map v1.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

PostCSS Z Indexes Map

PostCSS plugin to search all z-index values and display them in an ordered or non-ordered list.

Input:

.a {
  z-index: 14;
}

.b {
  z-index: 222;
}

.c {
  z-index: 136;
}

Output without sort:

/* 
 PostCSS z-indexes-map plugin. Start: 
 
 1 .a { z-index: 14; } start at line 2; 
 
 2 .b { z-index: 222; } start at line 6; 

 3 .c { z-index: 136; } start at line 10; 

 PostCSS z-indexes-map plugin. End. 
*/

Output with asc sort:

/* 
 PostCSS z-indexes-map plugin. Start: 
 
 1 .a { z-index: 14; } start at line 2; 
 
 2 .c { z-index: 136; } start at line 10; 
 
 3 .b { z-index: 222; } start at line 6; 
 
 PostCSS z-indexes-map plugin. End. 
*/

Output with desc sort:

/* 
 PostCSS z-indexes-map plugin. Start: 
 
 1 .b { z-index: 222; } start at line 6;
  
 2 .c { z-index: 136; }start at line 10; 
 
 3 .a { z-index: 14; } start at line 2; 
 
 PostCSS z-indexes-map plugin. End. 
*/

Z-indexes not found:

/* PostCSS z-indexes-map plugin: z-indexes not found. */

Usage:

const zIndexesMap = require('postcss-z-indexes-map');

postcss([
  zIndexesMap()
])

Options

OptionTypeDefaultValues
1. sortString"""asc", "desc", ""
2. outputString"console""console", "file"
// Example with asc sort and file output:

postcss([ 
  zIndexesMap({
    sort: 'asc',
    output: 'file'
  })
])

Authors

The idea of Vyacheslav Efremenko https://github.com/brainsapiens \ Code by Dmitry Marchenkov https://github.com/marchenkovdmitry

See PostCSS docs for examples for your environment.

1.1.4

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.0

5 years ago