Socket
Socket
Sign inDemoInstall

postcss-zindex

Package Overview
Dependencies
Maintainers
7
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-zindex

Reduce z-index values with PostCSS.


Version published
Weekly downloads
722K
decreased by-1.71%
Maintainers
7
Weekly downloads
 
Created

What is postcss-zindex?

The postcss-zindex package is a PostCSS plugin that reduces z-index values in your CSS files. It helps to minimize the number of different z-index values used, making your CSS more maintainable and reducing the risk of z-index conflicts.

What are postcss-zindex's main functionalities?

Reduce z-index values

This feature reduces the z-index values in your CSS to a smaller range, making it easier to manage and reducing the likelihood of conflicts.

/* Input CSS */
body {
  z-index: 10;
}
.header {
  z-index: 100;
}
.footer {
  z-index: 1000;
}

/* Output CSS after postcss-zindex */
body {
  z-index: 1;
}
.header {
  z-index: 2;
}
.footer {
  z-index: 3;
}

Other packages similar to postcss-zindex

Keywords

FAQs

Package last updated on 07 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc