From a934bfb45bbe638fd219aa22d1277e1affcf4300 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Fri, 17 May 2024 16:30:03 +0200 Subject: [PATCH] Feat : Various css changes --- components/CardPreview.vue | 6 ++-- components/GameBoard.vue | 1 - components/PlayerSlot.vue | 61 ++++++++++++++++++++++++++++---------- 3 files changed, 49 insertions(+), 19 deletions(-) diff --git a/components/CardPreview.vue b/components/CardPreview.vue index 454c460..1665c84 100644 --- a/components/CardPreview.vue +++ b/components/CardPreview.vue @@ -109,8 +109,8 @@ watch( flex-wrap: wrap; word-break: break-word; bottom: 0; - width: 100%; - transform: translateY(0); + width: 99%; + transform: translateY(-0px); transition: 0.1s transform cubic-bezier(0.075, 0.82, 0.165, 1); } @@ -122,7 +122,7 @@ watch( \ No newline at end of file diff --git a/components/GameBoard.vue b/components/GameBoard.vue index 75bf992..03d38d2 100644 --- a/components/GameBoard.vue +++ b/components/GameBoard.vue @@ -86,7 +86,6 @@ function showWinnerScreen() { #current_player { grid-area: current_player; background-image: url("/images/bg-darkgrass.png"); - padding-left: 70px; padding-bottom: 75px; } diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index 1b5f117..a045e21 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -100,8 +100,6 @@ function check_for_guard(player: Player) { -
@@ -127,9 +125,11 @@ function check_for_guard(player: Player) {
+
-
+
Pas encore prĂȘt...
@@ -142,10 +142,13 @@ function check_for_guard(player: Player) { @@ -251,9 +254,14 @@ function check_for_guard(player: Player) { color: white; padding: 5px; border-radius: 5px; - width: 90px; + width: 100px; font-size: 0.85em; margin-left: 5px; + visibility: hidden +} + +.warning.visible { + visibility: visible } .warning-fire-gem { @@ -276,10 +284,11 @@ function check_for_guard(player: Player) { .stack { grid-area: stack; + margin-left: 75px; } .discard { - margin-top: 50px; + margin-top: 40px; grid-area: discard; justify-content: start; cursor: pointer; @@ -287,18 +296,23 @@ function check_for_guard(player: Player) { } .discard.unwrapped { - z-index: 9; + margin-top: 0px; + cursor: default; position: absolute; padding-bottom: 100px; + height: 100%; } .discard_container { + z-index: 9; display: flex; /* background: blue; */ pointer-events: none; - flex-wrap: wrap; gap: 2px; + padding-left: 40px; + flex-wrap: wrap-reverse; + align-content: flex-end; } #discard_unwrapped_bg { @@ -309,7 +323,8 @@ function check_for_guard(player: Player) { height: 100%; width: 100%; z-index: 8; - background: rgba(0, 0, 0, 0.5) + background: rgba(0, 0, 0, 0.5); + pointer-events: all; } #discard_unwrapped_bg.unwrapped { @@ -331,8 +346,9 @@ function check_for_guard(player: Player) { .player.discard_unwrapped { grid-template-areas: "player_stats player_stats" - "stack player" - "discard discard"; + "stack player"; + position: relative; + isolation: isolate; } #current_player_board { @@ -427,23 +443,38 @@ function check_for_guard(player: Player) { position: relative; } + #player_banner { display: flex; grid-area: player_stats; - flex-direction: column; + flex-direction: row; align-items: center; justify-content: center; position: sticky; top: 0; padding-top: 1em; z-index: 1; + pointer-events: none; } +#player_banner.small { + flex-direction: column +} + +#player_banner>* { + pointer-events: all; +} + + #player_info { display: flex; align-items: center; } +#player_banner.big>#player_info { + margin-left: 500px; +} + #player_stats { display: flex; grid-area: player_stats; @@ -474,7 +505,7 @@ function check_for_guard(player: Player) { color: white; border: none; border-radius: 8px; - padding: 5px 10px; + padding: 13px 10px; margin: 0 0 0 5px; font-size: 16px; font-weight: bold;