Created
November 29, 2017 21:36
-
-
Save goreilly/ff72cd128d7bc99e54f38d2a2b2b1b7d to your computer and use it in GitHub Desktop.
This file contains 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
@mixin child-widths($widths) | |
@for $i from 1 through length($widths) | |
$width: nth($widths, $i) | |
&:nth-child(#{$i}) | |
width: $width | |
table.fixed | |
th, td | |
@include child-widths(100px 20px 10px 20px 20px) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment