Skip to content

Instantly share code, notes, and snippets.

@Chrissi2812
Created April 11, 2017 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chrissi2812/ec117be712a497e1715938784d996b27 to your computer and use it in GitHub Desktop.
Save Chrissi2812/ec117be712a497e1715938784d996b27 to your computer and use it in GitHub Desktop.
Rainbow
div {
$colors: (
#c82639,
#ef8e00,
#9bbc1a,
#28649a,
);
$l: length($colors);
@each $color in $colors {
$i: index($colors, $color);
&:nth-child(#{$l}n+#{$i}) {
.readmore a {
color: $color;
border-color: $color;
&:hover {
background: $color;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment