diff --git a/src/sc5-styleguide/modifiers.sc5.scss b/src/sc5-styleguide/modifiers.sc5.scss index 26c0bc0..125e874 100644 --- a/src/sc5-styleguide/modifiers.sc5.scss +++ b/src/sc5-styleguide/modifiers.sc5.scss @@ -82,6 +82,7 @@ Styles for mouse hover effects. The star and all previous the one the mouse hovers are visible as filled and have opacity - no hover +.hover-0 - hover over no star .hover-1 - hover over 1st star .hover-2 - hover over 2nd star .hover-3 - hover over 3rd star @@ -89,11 +90,14 @@ The star and all previous the one the mouse hovers are visible as filled and hav .hover-5 - hover over 5th star markup: -
+
+ + + @@ -102,6 +106,9 @@ markup:
+ + + @@ -110,6 +117,9 @@ markup:
+ + + @@ -119,6 +129,9 @@ markup: + + + @@ -127,6 +140,9 @@ markup: + + + diff --git a/src/scss/_modifiers.scss b/src/scss/_modifiers.scss index e462939..94f912a 100644 --- a/src/scss/_modifiers.scss +++ b/src/scss/_modifiers.scss @@ -61,14 +61,18 @@ Rating Component &.hover:hover { @for $i from $minRatingValue through $maxNumOfStars { - &.hover-#{$i} { + &.value-#{$i}.half, + &.hover-#{$i} { .star-container { - - .star, - .star:nth-child(-n+#{$i}) { + .star { @extend .empty; } + } + } + + &.hover-#{$i} { + .star-container { .star:nth-child(-n+#{$i}) { @extend .filled;