NazariyM
11/3/2018 - 9:35 AM

simple rating stars

+e.item-rating-value(data-rating='3')
									+i('star', 'reviews-block__item-rating-icon')
									+i('star', 'reviews-block__item-rating-icon')
									+i('star', 'reviews-block__item-rating-icon')
									+i('star', 'reviews-block__item-rating-icon')
									+i('star', 'reviews-block__item-rating-icon')
&-value
            margin-right: 8px
            &[data-rating='0'] #{$parent}-icon
               fill: $color7
            &[data-rating='1'] #{$parent}-icon:nth-child(1) ~ #{$parent}-icon
               fill: $color7
            &[data-rating='2'] #{$parent}-icon:nth-child(2) ~ #{$parent}-icon
               fill: $color7
            &[data-rating='3'] #{$parent}-icon:nth-child(3) ~ #{$parent}-icon
               fill: $color7
            &[data-rating='4'] #{$parent}-icon:nth-child(4) ~ #{$parent}-icon
               fill: $color7
            &[data-rating='5'] #{$parent}-icon:nth-child(5) ~ #{$parent}-icon
               fill: $color7