From 8fa01837cee91819738c532d1013e0d11e9f3d37 Mon Sep 17 00:00:00 2001 From: Deimos Date: Mon, 18 Nov 2019 18:01:15 -0700 Subject: [PATCH] Add "extra bar" when donation goal over 100% Creates an effect of some "extra bar" (in the same color as Exemplary labels) expanding on the right end of the donation goal meter when it's above 100%. --- tildes/scss/themes/_theme_base.scss | 8 ++++++++ tildes/tildes/templates/home.jinja2 | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/tildes/scss/themes/_theme_base.scss b/tildes/scss/themes/_theme_base.scss index 83def14..9b39367 100644 --- a/tildes/scss/themes/_theme_base.scss +++ b/tildes/scss/themes/_theme_base.scss @@ -331,6 +331,14 @@ background-color: map-get($theme, "background-primary"); } + .donation-goal-meter-over-goal { + background: map-get($theme, "comment-label-exemplary"); + + &::-webkit-meter-bar { + background: map-get($theme, "comment-label-exemplary"); + } + } + .empty-subtitle { color: map-get($theme, "foreground-secondary"); } diff --git a/tildes/tildes/templates/home.jinja2 b/tildes/tildes/templates/home.jinja2 index 3d4757f..d10144e 100644 --- a/tildes/tildes/templates/home.jinja2 +++ b/tildes/tildes/templates/home.jinja2 @@ -97,12 +97,19 @@
{{ current_time.strftime("%B %Y") }} donation goal
{{ financial_data["goal_percentage"] }}%