From 68b1e8b75d73d7be681cd641f023f9e50ddcc5ce Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 19 Aug 2015 17:10:55 -0300 Subject: [PATCH] Refactor rating stars in dashboard --- public/style.css | 17 +++++++++-------- views/gamification/dashboard.html.erb | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/public/style.css b/public/style.css index b1401c9..fc4fc63 100644 --- a/public/style.css +++ b/public/style.css @@ -44,6 +44,8 @@ .gamification .badge { text-align: center; + margin-bottom: 4px; + min-height: 150px; } .gamification .badge.not-earned { @@ -197,24 +199,23 @@ /* Star Rating */ -.rating { +.gamification-dashboard .rating { padding: 0px; + line-height: 30px; } -.rating > span { +.gamification-dashboard .rating .star { display: inline-block; - position: relative; font-size: 32px; width: 1.1em; - bottom: 0px; margin: 0 -7px; - color: #C0C0C0; + color: #E9E9E9; + vertical-align: top; } -.rating > span.earned:before { - content: "\2605"; - position: absolute; +.gamification-dashboard .rating .star.earned { color: #FFE13D; font-size: 42px; top: -7px; left: 0px; + margin: 0 -12px; } diff --git a/views/gamification/dashboard.html.erb b/views/gamification/dashboard.html.erb index 51db50a..f455ec7 100644 --- a/views/gamification/dashboard.html.erb +++ b/views/gamification/dashboard.html.erb @@ -44,7 +44,7 @@
<%= badge.title %>
-- libgit2 0.21.2