2018-03-24 13:34:12 +00:00
|
|
|
$donationCounter_percentFromGoal: 100 - ($donationCounter_donated / $donationCounter_goal * 100);
|
|
|
|
|
|
|
|
.donationCounter {
|
|
|
|
width: 100%;
|
|
|
|
height: 80px;
|
2018-04-24 19:43:32 +00:00
|
|
|
font-size: 1.3rem;
|
2018-03-24 13:34:12 +00:00
|
|
|
background: linear-gradient(to right, #49a540 50%, #407b3b 50%);
|
|
|
|
position: absolute;
|
|
|
|
background-size: 200%;
|
|
|
|
background-position: 100%;
|
|
|
|
bottom: 0px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
|
|
|
animation: donationCounterSlideIn .5s cubic-bezier(0.175, 0.885, 0.32, 1.275) .5s forwards;
|
|
|
|
|
|
|
|
&:before, &:after {
|
|
|
|
content: "";
|
|
|
|
height: 30px;
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
background: linear-gradient(to left bottom, #2A2A2A 49%, transparent 50%);
|
|
|
|
top: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
background: linear-gradient(to left bottom, transparent 49%, #ff5802 50%);
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes donationCounterSlideIn {
|
|
|
|
from {
|
|
|
|
background-position: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
background-position: $donationCounter_percentFromGoal + unquote("%");
|
|
|
|
}
|
2018-04-24 19:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-down(sm) {
|
|
|
|
#intro {
|
|
|
|
padding-bottom: 6rem;
|
|
|
|
}
|
|
|
|
.donationCounter {
|
|
|
|
&:before, &:after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2018-03-24 13:34:12 +00:00
|
|
|
}
|