From 43a28ad77190f2e55e2e6ba65a9a7b5b1f5dea6c Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 20 Aug 2023 20:48:29 +0200 Subject: area progression, item usage --- resources/css/battle.css | 34 ++++++++++-- resources/css/menu.css | 139 +++++++++++++++++++++++++++-------------------- 2 files changed, 107 insertions(+), 66 deletions(-) (limited to 'resources/css') diff --git a/resources/css/battle.css b/resources/css/battle.css index 2c09e5a..0052072 100644 --- a/resources/css/battle.css +++ b/resources/css/battle.css @@ -78,15 +78,25 @@ .battle__monster-img { cursor: pointer; transition-property: filter; + + width: 90px; } .battle__monster-img.damaged { filter: brightness(2); } -.battle__monster-sprite__animation { + +.battle__technique-animation { position: fixed; z-index: 10; } +.battle__opponent__trainer-sprite { + position: absolute; + top: 0; + right: 0; + height: 120px; +} + .battle__monster-technique { background-color: beige; border: 2px solid #000; @@ -97,18 +107,27 @@ cursor: pointer; } -.battle__monster-technique__name {} -.battle__monster-technique__types {} -.battle__monster-technique__power {} -.battle__monster--player { - flex-direction: row-reverse; + + + +.battle__monster--opponent { + align-items: flex-start; } + .battle__monster--opponent .battle__monster-info-exp, .battle__monster--opponent .battle__monster-technique { display: none; } +.battle__monster--player { + flex-direction: row-reverse; + align-items: flex-end; +} + + + + .exp-bar { width: 100%; } @@ -124,6 +143,9 @@ width: 0%; } + + + .hp-bar { flex-grow: 1; } diff --git a/resources/css/menu.css b/resources/css/menu.css index 38f4189..16a9d02 100644 --- a/resources/css/menu.css +++ b/resources/css/menu.css @@ -25,6 +25,8 @@ } + + .menu-button { font-size: 1.5rem; border: 1px solid #000; @@ -44,6 +46,8 @@ } + + .tabs { display: grid; } @@ -81,13 +85,6 @@ -.gender-icon { - line-height: 1em; -} - - - - #status { color: #fff; background-color: #000; @@ -96,6 +93,7 @@ + #menu { display: grid; grid-template-columns: 1fr 1fr; @@ -117,7 +115,64 @@ -.inventory {} + +.party__monsters { + display: grid; + grid-template-columns: 1fr 1fr 1fr; +} + +.party__monster { + cursor: pointer; + padding: 0.75rem; + text-align: center; + font-size: 0.75rem; +} +.party__monster:hover { + background-color: rgba(0, 0, 0, 0.1); +} + +.party__selection-modes { + display: flex; + justify-content: space-between; + padding: 1rem; +} + +.party__selection-modes button[selected] { + border-color: var(--color-success); + color: var(--color-success); +} + + + + +.monster-stats { + padding: 0.5rem; +} + +.monster-stats__identity { + display: flex; + justify-content: space-between; + align-items: center; +} + +.monster-stats table { + width: 100%; +} + +.monster-stats table th { + text-align: left; +} + +.monster-stats table td { + text-align: right; +} + +.gender-icon { + line-height: 1em; +} + + + .inventory__popup { align-items: start; @@ -140,6 +195,22 @@ text-align: center; } +.inventory__selection-modes { + display: flex; + padding: 1rem; +} + +.inventory__selection-modes button[selected] { + border-color: var(--color-success); + color: var(--color-success); +} + +.inventory__monster-selection { + display: grid; + grid-template-columns: 1fr 1fr 1fr; +} + + .menu__journal { @@ -192,55 +263,3 @@ font-size: 2rem; width: 80vw; } - - - -.party__monsters { - display: grid; - grid-template-columns: 1fr 1fr 1fr; -} - -.party__monster { - cursor: pointer; - padding: 0.75rem; - text-align: center; - font-size: 0.75rem; -} -.party__monster:hover { - background-color: rgba(0, 0, 0, 0.1); -} - -.party__selection-modes { - display: flex; - justify-content: space-between; - padding: 1rem; -} - -.party__selection-modes button[selected] { - border-color: var(--color-success); - color: var(--color-success); -} - - - -.monster-stats { - padding: 0.5rem; -} - -.monster-stats__identity { - display: flex; - justify-content: space-between; - align-items: center; -} - -.monster-stats table { - width: 100%; -} - -.monster-stats table th { - text-align: left; -} - -.monster-stats table td { - text-align: right; -} -- cgit v1.2.3