npm:
$ npm install sircus-components-flex sircus-tools-display sircus-tools-width
cssnext:
input.css
@import "sircus-components-flex";
@import "sircus-tools-display";
@import "sircus-tools-width";
sass:
input.scss
@import "./node_modules/sircus-components-flex/converted";
@import "./node_modules/sircus-tools-display/converted";
@import "./node_modules/sircus-tools-width/converted";
Markup
<div class="Flex t-flex">
<div class="Flex-col t-widthHalf">
1
</div>
<div class="Flex-col t-widthHalf">
2
</div>
<div class="Flex-col t-widthHalf">
3
</div>
<div class="Flex-col t-widthHalf">
4
</div>
</div>
Responsive
<div class="Flex t-sm-flex"></div>
Modifier
.Flex--nowrap { flex-wrap: nowrap; }
.Flex--center { justify-content: center; }
.Flex--right { justify-content: flex-end; }
.Flex--left { justify-content: flex-start; }
.Flex--justify { justify-content: space-between; }
.Flex--top { align-items: flex-start; }
.Flex--middle { align-items: center; }
.Flex--bottom { align-items: flex-end; }
.Flex--baseline { align-items: baseline; }
/* child */
.Flex-col--fit { flex: 1; }
.Flex-col--first { order: -1 }
.Flex-col--last { order: 9999 }
We Need Your Help!
Released under the MIT license.