redo crowdfund modal perk list (#919)
* redo crowdfund modal perk list closes #918 * fix small responsive issue
This commit is contained in:
committed by
Nicolas Dorier
parent
631c878722
commit
109e576811
@@ -244,7 +244,7 @@
|
||||
</script>
|
||||
|
||||
<script type="text/x-template" id="perk-template">
|
||||
<div class="card mb-4 perk" v-bind:class="{ 'expanded': expanded, 'unexpanded': !expanded }" v-on:click="expand" :id="perk.id">
|
||||
<div class="card perk" v-bind:class="{ 'expanded': expanded, 'unexpanded': !expanded, 'mb-4':!inModal }" v-on:click="expand" :id="perk.id">
|
||||
<span v-if="displayPerksRanking && perk.sold"
|
||||
class="btn btn-sm rounded-circle px-0 perk-badge"
|
||||
v-bind:class="{ 'btn-primary': index==0, 'btn-secondary': index!=0}">#{{index+1}}</span>
|
||||
|
@@ -58,3 +58,14 @@ canvas#fireworks {
|
||||
.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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user