bit nicer bar
authorRadek Czajka <rczajka@rczajka.pl>
Fri, 6 Dec 2024 14:07:03 +0000 (15:07 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Fri, 6 Dec 2024 14:07:03 +0000 (15:07 +0100)
src/annoy/templates/annoy/banner_crisis.html
src/wolnelektury/static/2022/styles/layout/_annoy.scss

index 1398ee5..9feffbf 100644 (file)
          <div class="progress-box">
            <div>
              <div class="l-checkout__support__bar">
          <div class="progress-box">
            <div>
              <div class="l-checkout__support__bar">
-               <span data-label="{{ banner.progress_percent_pretty }}%" style="width: {% localize off %}{{ banner.progress_percent }}%{% endlocalize %};"></span>
+               <span data-label="{{ banner.progress_percent_pretty }}%" style="width: {{ banner.progress_percent|stringformat:".3f" }}%;"></span>
              </div>
            </div>
          </div>
          <div class="time-box">
              </div>
            </div>
          </div>
          <div class="time-box">
-           <strong class="countdown inline" data-until='{{ banner.until|date_to_utc:True|utc_for_js }}'></strong>
+           <strong class="countdown inline" data-until='{{ banner.until|date_to_utc:True|utc_for_js }}'>&nbsp;</strong>
          </div>
          <div class="action-box">
            {% if banner.action_label %}
          </div>
          <div class="action-box">
            {% if banner.action_label %}
index 9ff6a0d..9d90c65 100644 (file)
                        flex-grow: 1;
 
                        .l-checkout__support__bar span::after {
                        flex-grow: 1;
 
                        .l-checkout__support__bar span::after {
-                           right: auto;
-                           left: 5px;
                            color: black;
                        }
                    }
                            color: black;
                        }
                    }
+                   .time-box {
+                       width: 110px;
+                       margin: auto;
+                   }
+                   .countdown {
+                       margin: 0;
+                   }
                }
            }
 
                }
            }