function
new-breakpoint
Returns a media context (media query / grid context) that can be stored in a variable and passed to media()
as a single-keyword argument. Media contexts defined using new-breakpoint
are used by the visual grid, as long as they are defined before importing Neat.
Arguments
Name | Type | Default | Description |
---|---|---|---|
query | List | - | A list of media query features and values. Each If there is only a single The number of total columns in the grid can be set by passing |
total-columns | Number (unitless) | $grid-columns | Number of columns to use in the new grid context. Can be set as a shorthand in the first parameter. |
Example
$mobile: new-breakpoint(max-width 480px 4);
.element {
@include media($mobile) {
@include span-columns(4);
}
}
@media screen and (max-width: 480px) {
.element {
display: block;
float: left;
margin-right: 7.42297%;
width: 100%;
}
.element:last-child {
margin-right: 0;
}
}