Skip to content

iotacss/tools.breakpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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;
  }
}

About

Breakpoint mixin for iotaCSS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages