Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 985 Bytes

README.md

File metadata and controls

44 lines (28 loc) · 985 Bytes

iotaCSS is now a monorepo and all individual repositories are part of it. Please open issues or PRs here: https://github.com/iotacss/iotacss.

Breakpoint Mixin

Breakpoint mixin makes it easy to create media queries.

Installation

npm install --save iotacss-tools-breakpoint

Syntax

@include iota-breakpoint($breakpoint-size, $breakpoint-sizes)

Parameters

  • $breakpoint-size: Size of the breakpoint you want to use
  • $breakpoint-sizes: A Sass map that contains breakpoints. By default, uses $iota-global-breakpoints from Settings.Core. This parameter is optional.

Example

.myClass {
  height: 100px;
  
  // Breakpoint for small screens
  @include iota-breakpoint(sm) {
    height: 150px;
  }
  
  // Breakpoint for medium screens
  @include iota-breakpoint(md, $my-breakpoints-sass-map) {
    height: 200px;
  }
}