Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

nitely/semantic-flex-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semantic Flex Grid

This is a port of solved by flexbox grid system to semantic Sass.

For more examples visit the site.

Usage

HTML

<div class="Basic">
  <div class="Basic__cell">
    ...
  </div>
  <div class="Basic__cell">
    ...
  </div>
</div>

Sass

.Basic {
  @include grid;
}

  .Basic__cell {
    @include grid-cell;
  }

API

grid

Param Values Default
$gutters Zero, Md, Lg, Xl Md

Example:

.Grid {
  @include grid($gutters: Zero);
}

grid-cell

Param Value Default
$flex auto, fit, full, 1 of 2, 1 of 3, 1 of 4 fit
$flexCell true, false true
$alignItems top, bottom, center null
$justifyContent center, left, right null
$alignSelf top, bottom, center null
$gutters Zero, Md, Lg, Xl Md

Example:

.Grid__cell {
  @include grid-cell(1 of 2, $flexCell: false);
}

License

MIT