Changeset - 7a49bf08d681
[Not reviewed]
0 2 0
Daniel Takamori (pono) - 2 years ago 2022-01-04 22:34:28
pono@sfconservancy.org
separate divs and add css for exceeded
2 files changed with 11 insertions and 2 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/css/conservancy.css
Show inline comments
...
 
@@ -302,6 +302,9 @@ body > header {
 
#siteprogressbar .soFarText {
 
  color: white;
 
}
 
#siteprogressbar .exceeded {
 
  color: var(--khaki-green);
 
}
 
#siteprogressbar .progress {
 
  background: linear-gradient(var(--khaki-green), #84a377, var(--khaki-green));
 
  padding-left: 0.5rem;
...
 
@@ -320,6 +323,11 @@ body > header {
 
  border-top-right-radius: 16px;
 
  border-bottom-right-radius: 16px;
 
}
 
#siteprogressbar .progress.exceeded {
 
  border-top-right-radius: 16px;
 
  border-bottom-right-radius: 16px;
 
  background: linear-gradient(#84a377, var(--washed-green), #84a377);
 
}
 
#siteprogressbar {
 
  background: linear-gradient(var(--washed-green), white, var(--washed-green));
 
  box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
www/conservancy/templates/base_conservancy.html
Show inline comments
...
 
@@ -138,8 +138,9 @@
 
  {% if this_match_remaining <= 0 %}
 
    <div class="progress matched pv1 b flex" style="flex-basis: {{ this_match_so_far }}px">
 
      <span id="site-fundraiser-match-count" class="soFarText tc w-100">${{ this_match_goal|floatformat:0|intcomma }} matched!</span>
 
    <div class="progress matched pv1 b flex" style="flex-basis: {{ this_match_exceeded }}px">
 
      <span id="site-fundraiser-match-count" class="soFarText tc w-100">${{this_match_exceeded|floatformat:0|intcomma }} extra given!</span>
 
    </div>
 
    <div class="progress exceeded pv1 b flex" style="flex-basis: {{ this_match_exceeded }}px">
 
      <span id="site-fundraiser-match-count" class="soFarText tc w-100 exceeded">${{this_match_exceeded|floatformat:0|intcomma }} extra given!</span>
 
    </div>
 
  {% else %}
 
    <div class="progress pv1 b flex items-center" style="flex-basis: {{ this_match_so_far }}px">
0 comments (0 inline, 0 general)