Created
November 2, 2016 17:33
-
-
Save frontgirl/068ea24ec825a61fcdb7aea8f4c4daa6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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