Grids
24 Grids System.
$breakpoints : (
s : 0,
m : 640px,
l : 850px,
lg : 1024px,
xl : 1440px
);
To define the columns use the breakpoint-grid-number
nomenclature.
1
2
3
<div class="SnGrid col-gap s-grid-3">
<div>1</div>
<div>2</div>
<div>3</div>
</div>
1
2
<div class="SnGrid col-gap s-grid-4">
<div>1</div>
<div class="s-col-3">2</div>
</div>
1
2
3
4
5
6
7
<div class="SnGrid col-gap row-gap s-grid-2 m-grid-3 l-grid-4 lg-grid-5 xl-grid-6">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
</div>
1
2
3
<div class="SnGrid col-gap row-gap s-grid-2">
<div class="s-row-2">1</div>
<div>2</div>
<div>3</div>
</div>
1
2
3
4
5
<div class="SnGrid col-gap row-gap s-grid-4">
<div class="s-row-2">1</div>
<div>2</div>
<div class="s-y-2 s-x-2 s-col-2">3</div>
<div>4</div>
<div class="s-row-2">5</div>
</div>
1
2
3
4
5
<div class="SnGrid col-gap row-gap l-grid-4">
<div class="s-col-3 SnGrid col-gap row-gap s-grid-3">
<div class="s-col-3">1</div>
<div>2</div>
<div>3</div>
<div>4</div>
</div>
<div>5</div>
</div>
API
Property | Class |
---|---|
Gap | .col-gap .row-gap |
Gap size | .gap-0 .gap-1 .gap-2 .gap-3 |
Colums | breakpoint-grid-number m-grid-1 m-grid-2 m-grid-3 m-grid-4 m-grid-5 m-grid-6 m-grid-7 m-grid-8 m-grid-9 m-grid-10 m-grid-11 m-grid-12 |
Col span | m-grid-1 m-grid-2 m-grid-3 m-grid-4 m-grid-5 m-grid-6 m-grid-7 m-grid-8 m-grid-9 m-grid-10 m-grid-11 m-grid-12 |
Row span | m-grid-1 m-grid-2 m-grid-3 m-grid-4 m-grid-5 m-grid-6 m-grid-7 m-grid-8 m-grid-9 m-grid-10 m-grid-11 m-grid-12 |
Start X | m-grid-1 m-grid-2 m-grid-3 m-grid-4 m-grid-5 m-grid-6 m-grid-7 m-grid-8 m-grid-9 m-grid-10 m-grid-11 m-grid-12 |
Start Y | m-grid-1 m-grid-2 m-grid-3 m-grid-4 m-grid-5 m-grid-6 m-grid-7 m-grid-8 m-grid-9 m-grid-10 m-grid-11 m-grid-12 |