Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 0.41 KB | None | 0 0
  1. $colors-list : blue, orange, red;
  2.  
  3. body {
  4.         @each $color in $colors-list{
  5.             @if $color == nth($colors-list,1){
  6.                 background-color: $color;
  7.         }
  8.     }
  9. }
  10.  
  11. header {
  12.     @each $color in $colors-list{
  13.         @if $color == nth($colors-list,2) {
  14.             background-color: $color;
  15.         }
  16.     }
  17. }
  18.  
  19.  
  20. .main-width {
  21.         @each $color in $colors-list{
  22.             @if $color == nth($colors-list,3) {
  23.                 background-color: $color;
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement