Is there any way to use the nth-child
value as a SASS variable ?
Examples of use :
div:nth-child(n) {
content: '#{$n}'
}
div:nth-child(n) {
background: rgb(#{$n}, #{$n}, #{$n});
}
See Question&Answers more detail:os