Skip to content

Instantly share code, notes, and snippets.

@frontgirl
Created November 2, 2016 17:33
Show Gist options
  • Select an option

  • Save frontgirl/068ea24ec825a61fcdb7aea8f4c4daa6 to your computer and use it in GitHub Desktop.

Select an option

Save frontgirl/068ea24ec825a61fcdb7aea8f4c4daa6 to your computer and use it in GitHub Desktop.
.columns(@count, @minwidth, @gap, @rule:~'medium none'){
-webkit-columns: ~'@{count} @{minwidth}';
-moz-columns: ~'@{count} @{minwidth}';
columns: ~'@{count} @{minwidth}';
-webkit-column-gap: @gap;
-moz-column-gap: @gap;
column-gap: @gap;
-webkit-column-rule: @rule;
-moz-column-rule: @rule;
column-rule: @rule;
}
.column-break(@prop: avoid){
-webkit-column-break-inside: @prop;
page-break-inside: @prop;
break-inside: @prop;
}
//example:
.my-block{
.columns(4, 100px, 20px, 1px dashed black);
.item{
.column-break();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment