Skip to content

simpler flex syntax, stylus simple-flex implementation

Notifications You must be signed in to change notification settings

simple-flex/flexstyl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

simpler flex syntax, stylus simple-flex implementation

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages