Skip to content

Commit

Permalink
fix(scss): removed img star depending scss
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Nov 28, 2016
1 parent a5499c0 commit ce43f43
Showing 1 changed file with 9 additions and 33 deletions.
42 changes: 9 additions & 33 deletions src/scss/_elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Star element
width: $default-star-width;
height: $default-star-height;

svg, i, img {
svg, i {
position: absolute;
top: 0;
left: 0;
Expand All @@ -27,8 +27,7 @@ Star element
}
}

i,
img {
i {
display: none;
}

Expand All @@ -47,7 +46,7 @@ Star element
*/
}

i {
&.icon i {
font-size: $default-star-font-size;
line-height: $default-star-line-height;

Expand All @@ -62,15 +61,12 @@ Star element
}
}

img {
background-size: cover;
}

/*
Fill states
==================================================================*/
&.empty {
svg, i, img {
svg, i {
&.star-half,
&.star-filled {
opacity: 0;
Expand All @@ -81,7 +77,7 @@ Star element
}
}
&.half {
svg, i, img {
svg, i {
&.star-filled,
&.star-empty {
opacity: 0;
Expand All @@ -92,7 +88,7 @@ Star element
}
}
&.filled {
svg, i, img {
svg, i {
&.star-empty,
&.star-filled {
opacity: 0;
Expand All @@ -113,9 +109,6 @@ Star element
i {
color: $color-default-rating;
}
img {
color: $color-default-rating;
}
}
&.negative {
svg {
Expand All @@ -124,9 +117,6 @@ Star element
i {
color: $color-negative-rating;
}
img {
color: $color-negative-rating;
}
}
&.middle {
svg {
Expand All @@ -135,9 +125,6 @@ Star element
i {
color: $color-middle-rating;
}
img {
color: $color-middle-rating;
}
}
&.positive {
svg {
Expand All @@ -146,41 +133,30 @@ Star element
i {
color: $color-positive-rating;
}
img {
color: $color-positive-rating;
}
}

/*
Icon Types
==================================================================*/
&.svg {
i, img {
i {
display: none;
}
svg {
display: block;
}
}

&.custom-icon,
&.icon {
svg, img {
svg {
display: none;
}
i {
display: block;
}
}

&.img {
i, svg {
display: none;
}
img {
display: block;
}
}

/*
Star Size
===================================================================*/
Expand Down

0 comments on commit ce43f43

Please sign in to comment.