Restore 0 to donation progress

This commit is contained in:
Alex Cabal 2022-07-25 17:27:32 -05:00
parent d153daac3c
commit 9321f14ba3
3 changed files with 8 additions and 3 deletions

View file

@ -44,7 +44,7 @@ else{
$digits = str_split(str_pad($current, 3, "0", STR_PAD_LEFT))
?>
<aside class="donation counter">
<aside class="donation counter closable">
<? if($autoHide){ ?>
<form action="/settings" method="post">
<input type="hidden" name="hide-donation-alert" value="1" />

View file

@ -25,7 +25,7 @@ if($stretchTarget > 0 && $current >= $target){
}
?>
<aside class="donation">
<aside class="donation closable">
<? if($autoHide){ ?>
<form action="/settings" method="post">
<input type="hidden" name="hide-donation-alert" value="1" />
@ -43,7 +43,7 @@ if($stretchTarget > 0 && $current >= $target){
<? } ?>
<div class="progress">
<div aria-hidden="true">
<p class="start"></p>
<p class="start">0</p>
<p><?= number_format($totalCurrent) ?>/<?= number_format($totalTarget) ?></p>
<? if($stretchOn){ ?>
<p class="stretch-base"><?= number_format($target) ?></p>

View file

@ -2244,6 +2244,11 @@ aside.donation::after{
background: #dda82a;
}
aside.donation.closable::before,
aside.donation.closable::after{
display: none;
}
article.ebook section aside.donation p::before,
article.ebook section aside.donation p::after{
display: none;