rDrama/files/templates/award_modal.html

136 lines
3.8 KiB
HTML
Raw Normal View History

2021-09-17 11:25:14 +00:00
<div class="modal fade" id="awardModal" tabindex="-1" role="dialog" aria-labelledby="awardModalTitle" aria-hidden="true">
2021-09-17 14:01:47 +00:00
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Give Award</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"><i class="far fa-times"></i></span>
</button>
</div>
<div id="awardModalBody" class="modal-body">
2021-09-17 14:08:30 +00:00
<form id="awardTarget" class="pt-3 pb-0" action="" method="post">
2021-09-17 14:01:47 +00:00
<div class="card-columns awards-wrapper">
2021-09-17 14:24:08 +00:00
<ul class="check-card">
{% for award in v.user_awards %}
<li class="check-card-item">
<input type="checkbox" id="check01" name="check" value="1" onclick="document.getElementById('giveaward').disabled=false">
<label for="check01" class="radio"></label>
<div class="check-card-bg"></div>
<div class="check-card-body">
<div class="check-card-toggle">
<span></span>
<span></span>
</div>
<div class="check-card-body-in">
<i class="{{award.icon}} {{award.color}}"></i><br />
<span class="d-block pt-2" style="font-weight: bold; font-size: 14px;">{{award.title}}</span>
<span class="text-muted">{{award.owned}} owned</span>
</div>
</div>
<input name="{{award.kind}}" hidden>
</li>
{% endfor %}
</ul>
2021-09-17 14:13:40 +00:00
</div>
<label for="note" class="pt-4">Note (optional):</label>
<textarea id="note" name="note" class="form-control" placeholder="Note to include in award notification"></textarea>
2021-09-17 14:24:08 +00:00
<input id="giveaward" class="btn btn-primary" style="float:right" type="submit" value="Give Award" disabled>
2021-09-17 14:01:47 +00:00
</div>
</form>
</div>
</div>
</div>
</div>
<style>
2021-09-17 14:24:46 +00:00
.check-card {
list-style: none;
margin: 40px auto;
width: 320px;
2021-09-17 14:01:47 +00:00
}
2021-09-17 14:24:46 +00:00
.check-card .check-card-item {
position: relative;
width: 100%;
margin: 0 1% 15px;
font-size: 16px;
background: #3c9895;
overflow: hidden;
}
.check-card li label {
display: block;
position: absolute;
height: 300px;
width: 100%;
z-index: 100;
2021-09-17 14:01:47 +00:00
cursor: pointer;
}
2021-09-17 14:24:46 +00:00
.check-card .check-card-body {
height: 300px;
color: #fff;
z-index: 2;
position: relative;
2021-09-17 14:01:47 +00:00
}
2021-09-17 14:24:46 +00:00
.check-card .check-card-body-in {
padding: 40px 20px 20px;
2021-09-17 14:01:47 +00:00
}
2021-09-17 14:24:46 +00:00
.check-card .check-card-title {
font-family: 'Oswald', sans-serif;
font-size: 32px;
margin-bottom: 5px;
2021-09-17 14:01:47 +00:00
}
2021-09-17 14:24:46 +00:00
.check-card .check-card-bg,
.check-card .check-card-toggle {
position: relative;
background: #2e2d37;
width: 36px;
height: 36px;
top: 10px;
left: 10px;
-webkit-border-radius: 50%;
border-radius: 50%;
2021-09-17 14:01:47 +00:00
}
2021-09-17 14:24:46 +00:00
.check-card .check-card-bg {
position: absolute;
background: #2e2d37;
-webkit-transition: all .3s ease-out;
transition: all .3s ease-out;
-webkit-transform:scale(1);
transform:scale(1);
z-index: 0;
}
.check-card .check-card-toggle span {
position: absolute;
display: block;
width: 20px;
margin-left: -10px;
height: 1px;
top: 50%;
left: 50%;
background: #fff;
-webkit-transition: all .4s ease-out;
transition: all .4s ease-out;
2021-09-17 14:01:47 +00:00
2021-09-17 14:24:46 +00:00
-webkit-transform: rotate(-270deg);
transform: rotate(-270deg);
}
.check-card .check-card-toggle span:first-child {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.check-card input[type=checkbox] {
display: none;
}
.check-card input[type=checkbox]:checked ~ .check-card-body .check-card-toggle span {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
.check-card input[type=checkbox]:checked ~ .check-card-body .check-card-toggle span:first-child {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
.check-card input[type=checkbox]:checked ~ .check-card-bg {
-webkit-transform:scale(25);
transform:scale(25);
}
2021-09-17 14:01:47 +00:00
</style>