2018-03-24 13:34:12 +00:00
|
|
|
$donationCounter_percentFromGoal: 100 - ($donationCounter_donated / $donationCounter_goal * 100);
|
|
|
|
|
|
|
|
.donationCounter {
|
|
|
|
width: 100%;
|
2018-04-24 20:02:08 +00:00
|
|
|
height: 100px;
|
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;
|
2018-04-24 20:46:03 +00:00
|
|
|
left: 0px;
|
2018-04-25 15:23:24 +00:00
|
|
|
right: 0px;
|
2018-03-24 13:34:12 +00:00
|
|
|
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;
|
|
|
|
|
2018-04-24 20:02:08 +00:00
|
|
|
sub {
|
|
|
|
display: block;
|
|
|
|
font-size: .8rem;
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
|
2018-03-24 13:34:12 +00:00
|
|
|
&: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 {
|
2018-04-24 20:02:08 +00:00
|
|
|
height: 80px;
|
2018-04-24 19:43:32 +00:00
|
|
|
&:before, &:after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2018-03-24 13:34:12 +00:00
|
|
|
}
|