Skip to content

simple-flex/flexless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

flex.less

simpler flex syntax
flex with less effort

simple-flex implementation as less mixins

npm i flexless # -- save
@import '../node_modules/flexless/flex'

body {
  .flex(less);
  // 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

flex with less effort

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages