Breakpoints
Use breakpoints for responsive design.
Breakpoints
Neoblaze use desktop first approach. The breakpoints are based on max-width media query.
breakpoint | Class | Dimension |
---|---|---|
Extra small | xs |
39.625em ( <=634px) |
Small | sm |
58.375em ( <=934px) |
Medium | md |
77.125em ( <=1234px) |
Large | `` | above 1234px |
--------------------------------- | 1234px ->
--------------------------------- | default
------------------------------ | 1234px <-
------------------------------ | md
------------------- | 934px <-
------------------- | sm
-------- | 634px <-
-------- | xs
SASS
Variables
Override the breakpoints map to customize.
$breakpoints: (
'': '',
'md': 77.125em,
'sm': 58.375em,
'xs': 39.625em,
);
Mixin
Use the mixins we you want a responsive variant at particular breakpoint.
.layout {
display: grid;
grid-template-columns: repeat(12, 1fr);
@include mq("sm") {
grid-template-columns: 1fr;
}
}