Skip to content

Instantly share code, notes, and snippets.

@SRJ9
Created May 19, 2017 15:47
Show Gist options
  • Save SRJ9/e51f831a44858b0c8d22166f574c1d39 to your computer and use it in GitHub Desktop.
Save SRJ9/e51f831a44858b0c8d22166f574c1d39 to your computer and use it in GitHub Desktop.
Degraded table with SASS (opacity method)
$columns: 30;
$green: rgb(92, 184, 92);
@mixin table-td-list {
@for $i from 1 through $columns {
$opacity: (1 / $i);
.table-td-#{$i} { background: rgba($green, $opacity); }
}
}
@include table-td-list;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment