Created
September 1, 2015 18:46
-
-
Save williankeller/717642a33916ea5c8e8a to your computer and use it in GitHub Desktop.
Dependências de margens e Grades de colunas
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
| // Margens | |
| $margins: top bottom left right; | |
| @each $margin in $margins{ | |
| @for $i from 1 through 10 { | |
| .m-#{$margin}-#{$i} { | |
| margin-#{$margin}: $i * 10px; | |
| } | |
| } | |
| } | |
| // Grade de colunas | |
| @for $i from 1 through 12 { | |
| .column-#{$i} { | |
| width: 100% / 12 * $i; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment