simple-scss-grid-layout
v1.0.1
Published
SCSS Grid
Downloads
1
Readme
SCSS Grid
Very simple grid for your projects.
Mixins
breakpoint
@include breakpoint($bpMobile) { ... }
container
@include container($bpMobile);
column
// column(size: int, numberOfColumns: int, breakpoint: int) @include column(1, $mobileTotalColumns, $bpMobile);
custom-property
// set margin to be equal to the total width of two columns @include custom-property(2, $mobileTotalColumns, margin-left);
grid-container
@include grid-container();
nested-grid-container
@include nested-grid-container();
CSS grid
Available classes
sufixes:
- mobile
- phablet
- tablet
- desktop
- largeDesktop
- xLargeDesktop
col-[column width]-[sufix]
example:
<div class="container">
<div class="grid">
<div class="col-1-mobile col-3-desktop your-custom-class">sample</div>
<div class="col-1-mobile col-3-desktop">sample 1</div>
<div class="col-1-mobile col-3-desktop">sample 2</div>
<div class="col-1-mobile col-3-desktop">sample 3</div>
</div>
</div>