Socket
Book a DemoInstallSign in
Socket

@nib-styles/sass-breakpoints

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nib-styles/sass-breakpoints

SASS mixins for named breakpoints.

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
0
-100%
Maintainers
6
Weekly downloads
 
Created
Source

@nib-styles/sass-breakpoints

SASS mixins for named breakpoints.

Installation

npm install --save @nib-styles/sass-breakpoints

Usage

sass-composer example/example.scss -o compiled.css

SCSS: example/example.scss

@import "@nib-styles/sass-breakpoints";

@include breakpoint('sm') {           //from `sm` (>=0px)
  body { background-color: red; }
}

@include breakpoint('lg') {           //from `lg` (>=800px)
  body { background-color: green; }
}

CSS: compiled.css

@media (min-width: 30em) {
  body {
    background-color: red; } }

@media (min-width: 50em) {
  body {
    background-color: green; } }

See sass-breakpoints for a full list of the available mixins.

Breakpoints

NameResolution
xs>=0px
sm>=480px
md>=640px
lg>=800px
xl>=960px

FAQs

Package last updated on 20 Nov 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