Commit 64566301 authored by Curtis Adam's avatar Curtis Adam

Add sass variables for ratings

parent 35473105
......@@ -59,6 +59,9 @@ $themes: (
$shuffled_text: map-get($map, "shuffled_text");
$bonus_background: map-get($map, "bonus_background");
$bonus_text: map-get($map, "bonus_text");
//ratings
$current_rating: map-get($map, "current_rating");
$hover_rating: map-get($map, "$hover_rating");
//navbar
$navbar_background: map-get($map, "navbar_background");
$navbar_text: map-get($map, "navbar_text");
......@@ -397,6 +400,14 @@ $themes: (
$presentation_clock_minute_arm: map-get($map, "presentation_clock_minute_arm");
$presentation_clock_second_arm: map-get($map, "presentation_clock_second_arm");
.star-ratings .current-rating {
color: $current_rating !important;
}
.star-ratings .active {
color: $hover_rating !important;
}
li.active {
a {
color: $white !important;
......
......@@ -79,6 +79,9 @@
"shuffled_text": $white,
"bonus_background": $thm_red,
"bonus_text": $white,
//ratings
"current_rating": $thm_orange,
"$hover_rating": $thm_blue,
//navbar
"navbar_background": black,
"navbar_text": white,
......
......@@ -81,6 +81,9 @@
"shuffled_text": $white,
"bonus_background": $thm_red,
"bonus_text": $white,
//ratings
"current_rating": $thm_orange,
"$hover_rating": $thm_blue,
//navbar
"navbar_background": $thm_gray,
"navbar_text": white,
......
......@@ -297,13 +297,13 @@
<td>
{{#if canRateCardset}}
{{#if isActiveRoute regex="cardsetdetailsid|cardsetlistid"}}
{{> starsRating id="rating" class='rating' rating=(getAverageRating) mutable=true}}
{{> starsRating id="rating" class='star-ratings' rating=(getAverageRating) mutable=true}}
{{else}}
{{> starsRating class='rating' rating=(getAverageRating) mutable=false}}
{{> starsRating class='star-ratings' rating=(getAverageRating) mutable=false}}
{{/if}}
{{else}}
{{> starsRating class='rating' rating=(getAverageRating) mutable=false}}
{{> starsRating class='star-ratings' rating=(getAverageRating) mutable=false}}
{{/if}} ({{this.raterCount}})
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment