Created
May 19, 2017 15:47
-
-
Save SRJ9/e51f831a44858b0c8d22166f574c1d39 to your computer and use it in GitHub Desktop.
Degraded table with SASS (opacity method)
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
$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