forked from rDrama/rDrama
fix
parent
ed8397c37d
commit
46892f25f4
|
@ -925,6 +925,10 @@ video {
|
||||||
margin-left: 1rem;
|
margin-left: 1rem;
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
}
|
}
|
||||||
|
.mx-2 {
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
.my-0 {
|
.my-0 {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
|
@ -1383,16 +1387,16 @@ video {
|
||||||
.gap-y-2 {
|
.gap-y-2 {
|
||||||
row-gap: 0.5rem;
|
row-gap: 0.5rem;
|
||||||
}
|
}
|
||||||
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
|
|
||||||
--tw-space-y-reverse: 0;
|
|
||||||
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
|
|
||||||
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
|
|
||||||
}
|
|
||||||
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
|
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
|
||||||
--tw-space-x-reverse: 0;
|
--tw-space-x-reverse: 0;
|
||||||
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
||||||
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
||||||
}
|
}
|
||||||
|
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
|
||||||
|
--tw-space-y-reverse: 0;
|
||||||
|
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
|
||||||
|
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
|
||||||
|
}
|
||||||
.space-x-3 > :not([hidden]) ~ :not([hidden]) {
|
.space-x-3 > :not([hidden]) ~ :not([hidden]) {
|
||||||
--tw-space-x-reverse: 0;
|
--tw-space-x-reverse: 0;
|
||||||
margin-right: calc(0.75rem * var(--tw-space-x-reverse));
|
margin-right: calc(0.75rem * var(--tw-space-x-reverse));
|
||||||
|
@ -3406,6 +3410,10 @@ video {
|
||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.group:hover .group-hover\:block {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.peer:checked ~ .peer-checked\:border-blue-500 {
|
.peer:checked ~ .peer-checked\:border-blue-500 {
|
||||||
--tw-border-opacity: 1;
|
--tw-border-opacity: 1;
|
||||||
border-color: rgba(14, 165, 233, var(--tw-border-opacity));
|
border-color: rgba(14, 165, 233, var(--tw-border-opacity));
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<ul class="mb-0 list-none">
|
<ul class="mb-0 list-none">
|
||||||
{% for c in p.bet_options %}
|
{% for c in p.bet_options %}
|
||||||
<li>
|
<li class="group flex items-center space-x-2">
|
||||||
<span id="span-{{c.id}}" {% if c.poll_voted(v) %}class="bet_voted"{% endif %}>
|
<span id="span-{{c.id}}" {% if c.poll_voted(v) %}class="bet_voted"{% endif %}>
|
||||||
<input type="radio" id="{{c.id}}" {% if c.poll_voted(v) %}checked{% endif %} class="bet" onchange="bet_vote('{{c.id}}')" {% if not (v and v.coins > 200) or p.total_bet_voted(v) %}disabled{% endif %}>
|
<input type="radio" id="{{c.id}}" {% if c.poll_voted(v) %}checked{% endif %} class="bet" onchange="bet_vote('{{c.id}}')" {% if not (v and v.coins > 200) or p.total_bet_voted(v) %}disabled{% endif %}>
|
||||||
</span>
|
</span>
|
||||||
|
@ -11,6 +11,13 @@
|
||||||
</a>
|
</a>
|
||||||
{% if not p.total_bet_voted(v) %} (cost of entry: 200 coins){% endif %}
|
{% if not p.total_bet_voted(v) %} (cost of entry: 200 coins){% endif %}
|
||||||
</label>
|
</label>
|
||||||
|
{% if v and v.admin_level > 2 %}
|
||||||
|
<div class="hidden group-hover:block">
|
||||||
|
<button class="btn btn-gray" onclick="post_toast('/distribute/{{c.id}}')">
|
||||||
|
Declare winner
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
Loading…
Reference in New Issue