Skip to content

Commit

Permalink
fix(modifier): fixed static color modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Nov 28, 2016
1 parent ce43f43 commit ae9fa03
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions src/scss/_modifiers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ Rating Component
}
}


/*Half stars
====================================================*/

Expand Down Expand Up @@ -145,7 +144,6 @@ Direction
direction: ltr;
}


/* Star Type
====================================================*/
&.star-icon {
Expand All @@ -155,7 +153,6 @@ Direction
@extend .star.svg;
}


/* Sizes
==========================================================*/
&.small {
Expand Down Expand Up @@ -201,31 +198,51 @@ Direction
&.color-default {
.star-container {
.star {
@extend .default;
svg {
fill: $color-default-rating;
}
i {
color: $color-default-rating;
}
}
}
}

&.color-negative {
&.color-middle {
.star-container {
.star{
@extend .negative;
.star {
svg {
fill: $color-middle-rating;
}
i {
color: $color-middle-rating;
}
}
}
}

&.color-middle {
&.color-positive {
.star-container {
.star {
@extend .middle;
svg {
fill: $color-positive-rating;
}
i {
color: $color-positive-rating;
}
}
}
}

&.color-positive {
&.color-negative {
.star-container {
.star {
@extend .positive;
svg {
fill: $color-negative-rating;
}
i {
color: $color-negative-rating;
}
}
}
}
Expand Down

0 comments on commit ae9fa03

Please sign in to comment.