New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-size

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-size

PostCSS plugin for size shortcut

5.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

PostCSS Size

PostCSS plugin for size shortcut to set width and height properties.

It also handles min-size to set min-width and min-height, and max-size to set max-width and max-height.

.two {
  size: 20px 10px;
}
.one {
  size: 10px;
}
.minmax {
  min-size: 10px;
  max-size: 200px auto;
}
.two {
  width: 20px;
  height: 10px;
}
.one {
  width: 10px;
  height: 10px;
}
.minmax {
  min-width: 10px;
  min-height: 10px;
  max-width: 200px;
  max-height: auto;
}
Sponsored by Evil Martians

Docs

Read full docs here.

Keywords

postcss

FAQs

Package last updated on 15 Oct 2023

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