You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2024. It is now read-only.
There are two ways you can implement a grid in your layout:
Via HTML classes
Via SASS mixins
Neither is more correct that the other. It all depends on your use case. The CSS route is perhaps cleaner, but may be more work if you have to name addtional components to style.
HTML Method
Column widths and break rules are defined as classes in the HTML.
<divclass="Layout G-container"><divclass="G-row"><divclass="G-col-4 G-col-mobile--12"><!-- content goes here --></div><divclass="G-col-8 G-col-mobile--12"><!-- content goes here --></div></div></div>
CSS Method
Elements are assigned classes in the HTML but the column widths and break rules are defined in the SASS/CSS using mixins.
<divclass="Layout"><divclass="Layout-inner"><divclass="Sidebar"><!-- content goes here --></div><divclass="Content"><!-- content goes here --></div></div></div>