The $break-points variable is located in the miz/sass/config/_responsive.scss file and contains breakpoint values for creating responsive designs. The structure of this variable is as follows:
SCSS
$break-points: ( xxl: 1920px, xl: 1280px, lg: 1024px, md: 767px, sm: 478px );
To add a new value to $break-points, you can simply append a new key-value pair to the variable. For example:
SCSS
$break-points: ( xxl: 1920px, xl: 1280px, lg: 1024px, md: 767px, sm: 478px, es: 250px );
When you add a new value to $break-points, the system automatically generates the corresponding responsive classes. For example, by adding es: 250px, the following classes are created:
CSS
.d-es-block { display: block; } .d-es-none { display: none; }
The $header-space-horizontally variable is used to define the horizontal padding (left and right) for the header class at different screen sizes. The number of values in this variable must exactly match the number of breakpoints in the $break-points variable.
SCSS
$break-points: ( xxl: 1920px, xl: 1280px, lg: 1024px, md: 767px, sm: 478px ); $header-space-horizontally: (81px, 70px, 50px, 17px, 16px);
CSS
.header { padding-left: 81px; padding-right: 81px; } @media screen and (max-width: 1280px) { .header { padding-left: 70px; padding-right: 70px; } } @media screen and (max-width: 1024px) { .header { padding-left: 50px; padding-right: 50px; } } @media screen and (max-width: 767px) { .header { padding-left: 17px; padding-right: 17px; } } @media screen and (max-width: 478px) { .header { padding-left: 16px; padding-right: 16px; } }
Ensure the following when using $header-space-horizontally:
The $boxed-space-horizontally and $boxed-space-vertically variables define the horizontal and vertical padding for the .section class at different screen sizes. The number of values in both variables must exactly match the number of breakpoints in the $break-points variable.
SCSS
$break-points: ( xxl: 1920px, xl: 1280px, lg: 1024px, md: 767px, sm: 478px ); $header-space-horizontally: (81px, 70px, 50px, 17px, 16px); $boxed-space-horizontally: (81px, 70px, 50px, 17px, 16px); $boxed-space-vertically: (5rem, 4.5rem, 4rem, 3rem, 3rem);
CSS
.section { padding-left: 81px; padding-right: 81px; padding-top: 5rem; padding-bottom: 5rem; } @media screen and (max-width: 1280px) { .section { padding-left: 70px; padding-right: 70px; padding-top: 4.5rem; padding-bottom: 4.5rem; } } @media screen and (max-width: 1024px) { .section { padding-left: 50px; padding-right: 50px; padding-top: 4rem; padding-bottom: 4rem; } } @media screen and (max-width: 767px) { .section { padding-left: 17px; padding-right: 17px; padding-top: 3rem; padding-bottom: 3rem; } } @media screen and (max-width: 478px) { .section { padding-left: 16px; padding-right: 16px; padding-top: 3rem; padding-bottom: 3rem; } }
Ensure the following when using $boxed-space-horizontally and $boxed-space-vertically:
The $conf-gaps variable is used to generate CSS classes related to the gap property. This variable is flexible and allows you to generate both responsive and non-responsive classes, depending on the value of its responsive property.
SCSS
.gap-0 { gap: 0rem; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
SCSS
.gap-xxl-0 { gap: 0rem; } .gap-xxl-1 { gap: 0.5rem; } .gap-xxl-2 { gap: 1rem; } @media screen and (max-width: 1280px) { .gap-xl-0 { gap: 0rem; } .gap-xl-1 { gap: 0.5rem; } .gap-xl-2 { gap: 1rem; } } @media screen and (max-width: 1024px) { .gap-lg-0 { gap: 0rem; } .gap-lg-1 { gap: 0.5rem; } .gap-lg-2 { gap: 1rem; } }
Let me know if this HTML structure works for you or if any changes are needed!