Understanding responsive breakpoints in MaxiBlocks
MaxiBlocks uses a custom grid system with Flexbox and six responsive breakpoints - https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox. This provides flexibility similar to CSS grid, tailored specifically for responsive design. This guide explains how to create pages that look great on any display device.
Breakpoint basics in MaxiBlocks
MaxiBlocks offers six responsive breakpoints for different screen sizes:
- XXL (4K): 1921px - 3840px, Row max-width 1690px
- XL (Desktop): 1367px - 1920px, Row max-width 1170px
- L (Laptop): 1025px - 1366px, Row max-width 90%
- M (Tablet): 768px - 1024px, Row max-width 90%
- S (Large mobile): 481px - 767px, Row max-width 90%
- XS (Small mobile): 320px - 480px, Row max-width 90%
The max-width setting on Row Maxi foundation blocks nested within full-width Container Maxi blocks determines a pattern's layout width. Default max-widths ensure consistency but can be customised per block as needed.
Flexbox responsive breakpoints connect to Containers, Rows, and Columns to control the layout at different screen sizes.
The Flexbox responsive nesting structure is:
<container>
<row> (horizontal) - set column gaps (screenshot 1)
<column> (vertical) - set column size/width (screenshot 2)
</column>
</row>
</container>
</refactored>
Setting row gaps (block sidebar)
Setting column size/width (block sidebar)
Tip: Hover over each breakpoint icon in the editing experience to see the exact pixel dimensions. The orange teardrop marker indicates your detected screen size in the editing experience. (Screenshot 3)
How breakpoints work
- Inheritance: Styles cascade from larger to smaller breakpoints. Changes made at a larger breakpoint automatically apply to smaller ones unless overridden.
- Independence: Adjustments made at smaller breakpoints don't affect larger ones.
Best practices for responsive design
- Start big: Begin your design on the largest breakpoint (XXL for 4K screens).
- Work your way down: Systematically click through each smaller breakpoint.
- Review and adjust: At each breakpoint, scroll through your page and make necessary adjustments.
- Save strategically: Only save your page after checking and refining all breakpoints.
Important!
- Open panels like the document view (screenshot 4), block inserter (screenshot 5) , and block settings sidebar (screenshot 6) can affect the detected breakpoint. Settings created for one breakpoint with panels open may not apply when testing without those panels, as you could be in a different breakpoint unknowingly.
- Closely monitor the current breakpoint while working and close unused panels to ensure your detected screen size aligns with your intended testing size.
We are continually trying to improving this experience. Please email us with any suggestions!
Tip: Always review your design across all breakpoints before publishing to ensure a consistent experience on all devices.
Using the pattern library
MaxiBlocks provides a comprehensive library of over 2,000 pre-designed, responsive patterns optimised for all breakpoints. This valuable resource can help you create responsive designs more efficiently:
- Learn from existing patterns: Load patterns similar to your project and deconstruct them to understand responsive design techniques.
- Copy and customise: Use library patterns as a starting point and tailor them to your specific needs.
- Pre-tested responsiveness: MaxiBlocks Pro library patterns are pre-tested for responsiveness across all breakpoints.
- Recheck after modifications: If you modify columns or rows in a pattern, always re-verify responsiveness at each breakpoint.
- Building from scratch: When using MaxiBlocks foundation blocks, you are responsible for all responsive optimisation, just like the MaxiBlocks library development team does when creating and testing cloud library patterns.
TIP: Take advantage of the pattern library to save time and ensure your designs are responsive and maintainable.
Using the responsive grid system
MaxiBlocks features a custom CSS grid fully integrated with containers, rows, and columns, supporting 6 responsive breakpoints from 4K down to 360px. Flexbox is also implemented for additional layout flexibility.
To use the responsive grid effectively:
- Edit visually, then change the view (XXL, XL, L, etc.) and make adjustments for each breakpoint.
- When you save and publish the page, the CSS is automatically created for the front end.
- Values you set carry down automatically from high to low breakpoints to save time, but not from low to high. Always design responsive from desktop (high) to mobile (low) for best results.
Style cards have adjustable global defaults for consistent design across your site.
Matching other block widths
If you need to match the width of MaxiBlocks elements (like heroes) to other blocks on your page:
- Select the MaxiBlock container in the editor.
- Navigate to margin and padding settings.
- Adjust the max-width to match your desired width (e.g., 1200px for Kadence blocks).
- Update and save your page.
NOTE: MaxiBlocks default to a wider 1690px max-width for optimal 4K display. Adjust as needed for consistency with other block libraries or themes, or use the MaxiBlocks theme.
Additional resources
By mastering MaxiBlocks' responsive breakpoints and using its extensive pattern library, you'll create beautifully adaptive designs that shine on every screen size. Happy designing!