Skip to content

Instantly share code, notes, and snippets.

@Isigar
Created May 22, 2016 17:05
Show Gist options
  • Save Isigar/10b4599e25d3da2afb59ec46c8615b5c to your computer and use it in GitHub Desktop.
Save Isigar/10b4599e25d3da2afb59ec46c8615b5c to your computer and use it in GitHub Desktop.
grid-flex [LESS]
.grid{
display:flex;
flex-grow:1;
flex-shrink: 1;
}
.full-size{
width:100%;
}
.row{
flex-direction: row;
}
.collum{
flex-direction: column;
}
@iterations: 10;
.span-loop (@i) when (@i > 0) {
.span-@{i} {
flex: 1 1 ~"@{i}%";
}
.span-loop(@i * 10);
}
.span-loop (@iterations);
.container{
width:70%; margin:0 auto;
}
.right{
margin-left: auto!important;
}
.left{
margin-right:auto!important;
}
.center{
text-align: center!important;
}
.kokot{
color:white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment