Files
btcpayserver/BTCPayServer/wwwroot/crowdfund/styles/main.css
d11n a3afcd2a6e Crowdfund public UI re-design (#2918)
* Patch bootstrap-vue modal close button

For Bootstrap v5 compatibility, which bootstrap-vue does not have currently.

* Crowdfund: Use common global layout head (and themes)

* Crowdfund: Display disabled alert also for simple variant

* Crowdfund: Unify non-JS/simple and JS-enabled view

* Improve fireworks animation

* Improve layout

Inspired by the Bitcoin Smiles compaign, see  #2783

* Cleanup and remove views

* Fix typo

* Fix test
2021-09-27 11:46:56 +09:00

87 lines
1.4 KiB
CSS

canvas#fireworks {
position: fixed;
width: 100vw;
height: 100vh;
}
.perk-zoom {
display: none;
opacity: 0;
}
.perk-zoom-bg {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
opacity: 0.9;
}
.perk-zoom-text {
left: 50%;
top: 50%;
border-radius: 50%;
transform: translate(-50%, -50%);
position: absolute;
}
.perk:hover .perk-zoom {
cursor: pointer;
opacity: 1;
display: block;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
}
.perk-badge {
width: 33px;
height: 33px;
position: absolute;
left: -15px;
top: -15px;
padding-top: 5px;
z-index: 1
}
.crowdfund-stats .col-sm:last-child {
border-right: none !important;
}
.modal-body .perks-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-gap: .5rem;
}
.modal-body .perks-container .card:only-of-type {
max-width: 320px;
margin: auto;
}
/* Constrain image width in description */
div#crowdfund-body-description img {
max-width: 100% !important;
}
/* HEADER: PROGRESS */
div#crowdfund-progress-bar {
height: 2rem;
}
#crowdfund-body-header + hr {
height: 1px;
opacity: 1;
margin-top: 0;
background: var(--btcpay-body-border-medium);
}
/* PERKS: HOVER */
.perks-container .perk-zoom-bg {
background-color: var(--btcpay-bg-tile) !important;
border-radius: .5rem;
}