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 makes it easy to create media queries.
npm install --save iotacss-tools-breakpoint
@include iota-breakpoint($breakpoint-size, $breakpoint-sizes)
- $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.
.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;
}
}