srjrt
This commit is contained in:
parent
0e5164de23
commit
7690907085
@ -727,8 +727,9 @@ body {
|
|||||||
.hand-slot.hand-slot--filled::before {
|
.hand-slot.hand-slot--filled::before {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
/* Karten-Bild immer über dem ::before pseudo-element */
|
/* Karten-Bild über dem ::before pseudo-element
|
||||||
.hand-slot img {
|
NUR für hand-slot-card (nicht für den Deck-Stapel mit position:absolute imgs) */
|
||||||
|
.hand-slot-card img {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
border-radius: calc(var(--s) * 9);
|
border-radius: calc(var(--s) * 9);
|
||||||
|
|||||||
@ -429,7 +429,7 @@
|
|||||||
|
|
||||||
if (!state) {
|
if (!state) {
|
||||||
slot.innerHTML = '<span class="hs-icon">🃏</span>';
|
slot.innerHTML = '<span class="hs-icon">🃏</span>';
|
||||||
slot.classList.remove("hand-slot-ready");
|
slot.classList.remove("hand-slot-ready", "hand-slot--filled");
|
||||||
slot.draggable = false;
|
slot.draggable = false;
|
||||||
delete slot.dataset.cardSlotId;
|
delete slot.dataset.cardSlotId;
|
||||||
return;
|
return;
|
||||||
@ -474,6 +474,7 @@
|
|||||||
</div>${statsHtml}${readyBadge}`;
|
</div>${statsHtml}${readyBadge}`;
|
||||||
|
|
||||||
slot.classList.toggle("hand-slot-ready", isReady);
|
slot.classList.toggle("hand-slot-ready", isReady);
|
||||||
|
slot.classList.add("hand-slot--filled"); // Hintergrund + ::before entfernen
|
||||||
|
|
||||||
// Drag & Drop: nur wenn Karte bereit UND mein Zug
|
// Drag & Drop: nur wenn Karte bereit UND mein Zug
|
||||||
if (isReady && isMyTurn) {
|
if (isReady && isMyTurn) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user