From 0886b7e738922a63aa10e602d42f9b784dacdfb0 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Thu, 13 Aug 2015 19:49:36 -0300 Subject: [PATCH] Adding star rating --- public/style.css | 18 ++++++++++++++++++ views/gamification/dashboard.html.erb | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/public/style.css b/public/style.css index 908a47c..f4d5d7c 100644 --- a/public/style.css +++ b/public/style.css @@ -175,3 +175,21 @@ .gamification-rankings .ranking { vertical-align: top; } + +/* Star Rating */ + +.rating { + padding: 0px; +} + +.rating > span { + display: inline-block; + position: relative; + font-size: 24px; + width: 1.1em; +} +.rating > span.earned:before { + content: "\2605"; + position: absolute; + color: gold; +} diff --git a/views/gamification/dashboard.html.erb b/views/gamification/dashboard.html.erb index 6ad2f38..26c469b 100644 --- a/views/gamification/dashboard.html.erb +++ b/views/gamification/dashboard.html.erb @@ -43,9 +43,9 @@
<%= badge.title %>
-
-- libgit2 0.21.2