postcss-media-query-gap

4.1.1 • Public • Published

postcss-media-query-gap

Build Status

PostCSS plugin for applying gap on max-width/height media queries.

Useful when you want to prevent double breakpoints.

Install

npm install postcss postcss-media-query-gap --save

Usage

import postcss from 'postcss';
import mediaQueryGap from 'postcss-media-query-gap';

postcss([
	mediaQueryGap({
		/* options */
	})
]);
/* Before */

@media screen and (min-width: 600px) and (max-width: 739px) {
	.foo {
		color: red;
	}
}

/* After */

@media screen and (min-width: 600px) and (max-width: 738px) {
	.foo {
		color: red;
	}
}

License

MIT © Ivan Nikolić

Package Sidebar

Install

npm i postcss-media-query-gap

Weekly Downloads

320

Version

4.1.1

License

MIT

Unpacked Size

8.36 kB

Total Files

8

Last publish

Collaborators

  • niksy