Our grid is a 12 column grid, with similar sizes to that of Bootstrap. We also adhere to the same naming standards for device breakpoints.
.us-container
, you must have this to start building the uSwitch layouts..us-grid-row
is then used when you are building rows of columns (gives a negative margin to the container so they align correctly)..us-col-
.Here is an example of a grid which will turn into 100% width columns on mobile.
<div class="us-grid-row">
<div class="us-col-md-2">.us-col-md-2</div>
<div class="us-col-md-2">.us-col-md-2</div>
<div class="us-col-md-4">.us-col-md-4</div>
<div class="us-col-md-4">.us-col-md-4</div>
</div>
<div class="us-grid-row">
<div class="us-col-md-8">.us-col-md-8</div>
<div class="us-col-md-4">.us-col-md-4</div>
</div>
<div class="us-grid-row">
<div class="us-col-md-6">.us-col-md-6</div>
<div class="us-col-md-6">.us-col-md-6</div>
</div>
Copyright uSwitch Limited 2016 - 2017. Github