Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-media-minmax

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-media-minmax

Using more intuitive `>=`, `<=`, `>`, `<` instead of media queries min/max prefix.

  • 5.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.5M
increased by4.09%
Maintainers
4
Weekly downloads
 
Created

What is postcss-media-minmax?

The postcss-media-minmax npm package allows developers to write more expressive and flexible CSS media queries. Instead of using the traditional min-width and max-width syntax, it enables the use of more intuitive 'width >= x' and 'width <= y' syntax within media queries. This package is part of the PostCSS ecosystem, which is a tool for transforming CSS with JavaScript.

What are postcss-media-minmax's main functionalities?

Simplified Media Query Ranges

This feature allows developers to write media queries with a clearer and more intuitive syntax. Instead of using 'min-width: 500px' and 'max-width: 1200px', you can directly specify the range using '>= and <='.

@media (width >= 500px) and (width <= 1200px) { body { background-color: lightblue; } }

Support for Logical Operators

This feature supports logical operators to define media query ranges, making it easier to read and maintain. It simplifies the process of setting styles for specific device sizes or orientations.

@media (500px <= width < 1200px) { body { font-size: 16px; } }

Other packages similar to postcss-media-minmax

Keywords

FAQs

Package last updated on 12 Jan 2021

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