flexstyl
v2.0.4
Published
simpler flex syntax - stylus simple-flex implementation
Downloads
39
Readme
flexstyl
simpler flex syntax
stylus simple-flex implementation
installation
cdn - flex.styl
npm
npm i flexstyl # --save
@import
@import 'path_to_flex.styl'
// or
@import '../node_modules/flexstyl/flex'
// or
@import '~flexstyl/flex' // webpack
// just import flex.styl regardless whence
flex styl
// display: flex;
flex line
// display: inline-flex;
flex center
/*
align-items: center;
align-content: center;
justify-content: center;
*/
flex wrap
// flex-wrap: wrap;
flex column
// flex-direction: column;
justify end
// justify-content: flex-end;
justify around
// justify-content: space-around;
align start
// align-items: flex-start;
self auto
// align-self: auto;
flex grow
// flex-grow: 1;