Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

cssrecipes-custom-media-queries

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssrecipes-custom-media-queries

Some custom media queries shortcuts

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
86
-81.43%
Maintainers
1
Weekly downloads
 
Created
Source

custom-media-queries

Some custom media queries shortcuts

Install

$ npm install cssrecipes-custom-media-queries

Usage

/* for desktop first approch */
@media (--r-maxS) {
  /* rules here will be active when viewport will be <= "s" size */
}

/* for mobile first approch */
@media (--r-minS) {
  /* rules here will be active when viewport will be > "s" size */
}

Available custom media queries

--r-maxS <= 30em

--r-minS > 30em

--r-maxM <= 50em

--r-minM > 50em

--r-maxL <= 65em

--r-minL > 65em

--r-maxXL <= 80em

--r-minXL > 80em

Testing

To generate a build:

$ npm run build

To generate the testing build.

$ npm run build-test

Basic visual tests are in test/index.html.

Contributing

Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.

$ git clone https://github.com/cssrecipes/custom-media-queries.git
$ git checkout -b patch-1
$ npm install
$ npm test

Changelog

License

Keywords

browser

FAQs

Package last updated on 08 Nov 2014

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