Skip to content

Instantly share code, notes, and snippets.

@karlbright
Last active December 11, 2015 23:58
Show Gist options
  • Save karlbright/4680157 to your computer and use it in GitHub Desktop.
Save karlbright/4680157 to your computer and use it in GitHub Desktop.
@for $i from 1 through 6
$table-width: 1190px
&.samples_#{$i}
thead th
width: ($table-width - 150px) / $i
&:first-child
width: 150px
@for $i from 1 through 6 {
$table-width: 1190px;
&.samples_#{$i} {
thead th { width: ($table-width - 150px) / $i; }
thead th:first-child { width: 150px; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment