This commit is contained in:
@@ -109,8 +109,8 @@ watch(
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 99%;
|
||||||
transform: translateY(0);
|
transform: translateY(-0px);
|
||||||
transition: 0.1s transform cubic-bezier(0.075, 0.82, 0.165, 1);
|
transition: 0.1s transform cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,7 +122,7 @@ watch(
|
|||||||
<style>
|
<style>
|
||||||
#contextMenuButtons>* {
|
#contextMenuButtons>* {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
border-radius: 10px;
|
border-radius: 12px;
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -86,7 +86,6 @@ function showWinnerScreen() {
|
|||||||
#current_player {
|
#current_player {
|
||||||
grid-area: current_player;
|
grid-area: current_player;
|
||||||
background-image: url("/images/bg-darkgrass.png");
|
background-image: url("/images/bg-darkgrass.png");
|
||||||
padding-left: 70px;
|
|
||||||
padding-bottom: 75px;
|
padding-bottom: 75px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+46
-15
@@ -100,8 +100,6 @@ function check_for_guard(player: Player) {
|
|||||||
<!-- <button v-if="isSelf && isTurn" @click="draw">DRAW</button> -->
|
<!-- <button v-if="isSelf && isTurn" @click="draw">DRAW</button> -->
|
||||||
</CardsGrouped>
|
</CardsGrouped>
|
||||||
</div>
|
</div>
|
||||||
<div :id="`discard_unwrapped_bg`" :class="`${discard_unwrapped ? 'unwrapped' : ''}`"
|
|
||||||
@click="() => discard_unwrapped = false"></div>
|
|
||||||
<div :class="`discard ${discard_unwrapped ? 'unwrapped' : ''}`">
|
<div :class="`discard ${discard_unwrapped ? 'unwrapped' : ''}`">
|
||||||
<div class="discard_container" @click="() => discard_unwrapped = true">
|
<div class="discard_container" @click="() => discard_unwrapped = true">
|
||||||
<CardsGrouped :stack="props.player.discard_pile" v-if="!discard_unwrapped"> </CardsGrouped>
|
<CardsGrouped :stack="props.player.discard_pile" v-if="!discard_unwrapped"> </CardsGrouped>
|
||||||
@@ -127,9 +125,11 @@ function check_for_guard(player: Player) {
|
|||||||
</template>
|
</template>
|
||||||
</CardPreview>
|
</CardPreview>
|
||||||
</div>
|
</div>
|
||||||
|
<div :id="`discard_unwrapped_bg`" :class="`${discard_unwrapped ? 'unwrapped' : ''}`"
|
||||||
|
@click="() => discard_unwrapped = false"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div id="player_banner">
|
<div id="player_banner" :class="hide_stack_and_discard ? 'small' : 'big'">
|
||||||
<div class="ready-bubble not-ready" v-if="!props.player.ready && !goStore.current_game?.started">Pas encore
|
<div class="ready-bubble not-ready" v-if="!props.player.ready && !goStore.current_game?.started">Pas encore
|
||||||
prêt...
|
prêt...
|
||||||
</div>
|
</div>
|
||||||
@@ -142,10 +142,13 @@ function check_for_guard(player: Player) {
|
|||||||
<PlayerStats :player="props.player">
|
<PlayerStats :player="props.player">
|
||||||
</PlayerStats>
|
</PlayerStats>
|
||||||
<template v-if="!hide_stack_and_discard">
|
<template v-if="!hide_stack_and_discard">
|
||||||
<button id="end_turn" v-if="isSelfTurn" class="end_turn_button" @click="checkEndTurn">END
|
<button id="end_turn" v-if="isSelfTurn" class="end_turn_button turn_icon"
|
||||||
|
@click="checkEndTurn">END
|
||||||
TURN</button>
|
TURN</button>
|
||||||
<div class="warning" v-if="warning"
|
|
||||||
:class="{ 'warning-fire-gem': warningText == 'P\'tite Fire gem?' }">/!\<br>{{ warningText }}
|
<div class="warning"
|
||||||
|
:class="{ 'warning-fire-gem': warningText == 'P\'tite Fire gem?', 'visible': warning }">
|
||||||
|
/!\<br>{{ warningText }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -251,9 +254,14 @@ function check_for_guard(player: Player) {
|
|||||||
color: white;
|
color: white;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
width: 90px;
|
width: 100px;
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
|
visibility: hidden
|
||||||
|
}
|
||||||
|
|
||||||
|
.warning.visible {
|
||||||
|
visibility: visible
|
||||||
}
|
}
|
||||||
|
|
||||||
.warning-fire-gem {
|
.warning-fire-gem {
|
||||||
@@ -276,10 +284,11 @@ function check_for_guard(player: Player) {
|
|||||||
|
|
||||||
.stack {
|
.stack {
|
||||||
grid-area: stack;
|
grid-area: stack;
|
||||||
|
margin-left: 75px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.discard {
|
.discard {
|
||||||
margin-top: 50px;
|
margin-top: 40px;
|
||||||
grid-area: discard;
|
grid-area: discard;
|
||||||
justify-content: start;
|
justify-content: start;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -287,18 +296,23 @@ function check_for_guard(player: Player) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.discard.unwrapped {
|
.discard.unwrapped {
|
||||||
z-index: 9;
|
margin-top: 0px;
|
||||||
|
|
||||||
cursor: default;
|
cursor: default;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
padding-bottom: 100px;
|
padding-bottom: 100px;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.discard_container {
|
.discard_container {
|
||||||
|
z-index: 9;
|
||||||
display: flex;
|
display: flex;
|
||||||
/* background: blue; */
|
/* background: blue; */
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
|
padding-left: 40px;
|
||||||
|
flex-wrap: wrap-reverse;
|
||||||
|
align-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
#discard_unwrapped_bg {
|
#discard_unwrapped_bg {
|
||||||
@@ -309,7 +323,8 @@ function check_for_guard(player: Player) {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 8;
|
z-index: 8;
|
||||||
background: rgba(0, 0, 0, 0.5)
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
pointer-events: all;
|
||||||
}
|
}
|
||||||
|
|
||||||
#discard_unwrapped_bg.unwrapped {
|
#discard_unwrapped_bg.unwrapped {
|
||||||
@@ -331,8 +346,9 @@ function check_for_guard(player: Player) {
|
|||||||
.player.discard_unwrapped {
|
.player.discard_unwrapped {
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"player_stats player_stats"
|
"player_stats player_stats"
|
||||||
"stack player"
|
"stack player";
|
||||||
"discard discard";
|
position: relative;
|
||||||
|
isolation: isolate;
|
||||||
}
|
}
|
||||||
|
|
||||||
#current_player_board {
|
#current_player_board {
|
||||||
@@ -427,23 +443,38 @@ function check_for_guard(player: Player) {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#player_banner {
|
#player_banner {
|
||||||
display: flex;
|
display: flex;
|
||||||
grid-area: player_stats;
|
grid-area: player_stats;
|
||||||
flex-direction: column;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#player_banner.small {
|
||||||
|
flex-direction: column
|
||||||
|
}
|
||||||
|
|
||||||
|
#player_banner>* {
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#player_info {
|
#player_info {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#player_banner.big>#player_info {
|
||||||
|
margin-left: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
#player_stats {
|
#player_stats {
|
||||||
display: flex;
|
display: flex;
|
||||||
grid-area: player_stats;
|
grid-area: player_stats;
|
||||||
@@ -474,7 +505,7 @@ function check_for_guard(player: Player) {
|
|||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 5px 10px;
|
padding: 13px 10px;
|
||||||
margin: 0 0 0 5px;
|
margin: 0 0 0 5px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|||||||
Reference in New Issue
Block a user