Socket
Book a DemoInstallSign in
Socket

ergonomic-breakpoint

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ergonomic-breakpoint

ergonomic CSS media queries

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

ergonomic-breakpoint

NPM version Downloads

Ergonomic CSS media queries. Uses CSS custom media queries.

lwb-ergonomic viewports

Installation

$ npm install ergonomic-breakpoint

Usage

With cssnext or sheetify installed:

@media (--wrist) {
  /* styles for wrist viewport */
}

@media (--lap) and (--desk) {
  /* styles for lap and desk viewports */
}

@media (--not-wrist) and (--not-palm) {
  /* styles for lap and larger viewports */
}

API

@media (--wrist)

Wrist viewport. <320px.

@media (--palm)

Palm viewport. >=320px && <800px.

@media (--lap)

Lap viewport. >=800px && <1920px.

@media (--desk)

Desk viewport. >=1920px && <2560px.

@media (--wall)

Wall viewport. >=2560px.

@media (--not-wrist)

Wrist viewport. >=320px.

@media (--not-palm)

Palm viewport. <320px && >=800px.

@media (--not-lap)

Lap viewport. <800px && >=1920px.

@media (--not-desk)

Desk viewport. <1920px && >=2560px.

@media (--not-wall)

Wall viewport. <2560px.

See Also

License

MIT

Keywords

media query

FAQs

Package last updated on 23 Jun 2015

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