Breakpoint
These mixins makes it easy to use media queries in your code. Bluprnt has a standard set of breakpoint variables you can use.
Variable Name | Value |
---|---|
smallest |
0 |
small |
360px |
medium |
600px |
large |
840px |
larger |
1280px |
largest |
1920px |
breakpointBetween($breakpointMin, $breakpointMax)
Use the breakpointBetween
mixin to apply styles between two standard Bluprnt
breakpoints.
.mySelector {
// Small screen first
background: red;
// Breakpoint
@include breakpointBetween(medium, large) {
background: blue;
}
}
breakpointUp($breakpoint)
Use the breakpointUp
mixin to apply styles from a starting breakpoint and up.
.mySelector {
// Small screen first
background: red;
// Breakpoint
@include breakpointUp(medium) {
background: blue;
}
}
breakpointDown($breakpoint)
Use the breakpointDown
mixin to apply styles from a starting breakpoint and down.
.mySelector {
// Small screen first
background: red;
// Breakpoint
@include breakpointDown(small) {
background: blue;
}
}