summaryrefslogtreecommitdiff
path: root/resources/css/battle.css
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-08-17 02:53:14 +0200
committerDaniel Weipert <code@drogueronin.de>2023-08-17 17:42:15 +0200
commitcc685bfe02b42b592987117fa008a4461785f53c (patch)
tree625c1c9573b178e574bb70cac042c35da4036cf1 /resources/css/battle.css
parent717fde1c48c7221da986ac02d2b806b2fee6f2d5 (diff)
refactorrefactor
Diffstat (limited to 'resources/css/battle.css')
-rw-r--r--resources/css/battle.css231
1 files changed, 231 insertions, 0 deletions
diff --git a/resources/css/battle.css b/resources/css/battle.css
new file mode 100644
index 0000000..0f56234
--- /dev/null
+++ b/resources/css/battle.css
@@ -0,0 +1,231 @@
+#battle {
+ user-select: none;
+ min-height: 300px;
+ padding: 0.5rem;
+
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+
+ background-image: url('/modules/tuxemon/mods/tuxemon/gfx/ui/combat/sea_background.png');
+ background-size: cover;
+}
+
+#battle__enemy {
+ position: relative;
+ cursor: pointer;
+ flex-grow: 1;
+}
+
+.battle__monster {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.battle__monster-info {
+ border: 2px solid #000;
+ background-color: beige;
+
+ flex-grow: 1;
+ flex-basis: 50%;
+}
+.battle__monster-info-box {
+ display: flex;
+ flex-direction: column;
+
+ padding: 0.25rem;
+}
+.battle__monster-info__gender {
+ line-height: 1em;
+}
+
+.battle__monster-info-box__status {
+ display: flex;
+ justify-content: space-between;
+ /* align-items: center; */
+}
+.battle__monster-info__status {
+ /* flex-basis: 5%; */
+ flex-basis: calc(1rem + 0.25rem);
+ /* text-align: center; */
+}
+.battle__monster-info__status img {
+ width: 1rem;
+ height: 1rem;
+}
+
+.battle__monster-info-exp {
+ display: flex;
+ align-items: center;
+
+ padding: 0.25rem;
+
+ background-color: #000;
+ color: yellow;
+}
+.exp-label {
+ margin-right: 0.5rem;
+}
+.battle__monster-visual {
+ flex-grow: 1;
+ flex-basis: 50%;
+ text-align: center;
+}
+
+.battle__monster-sprite {
+ margin-bottom: 0.25rem;
+}
+.battle__monster-img {
+ transition-property: filter;
+}
+.battle__monster-img.damaged {
+ filter: brightness(2);
+}
+.battle__monster-sprite__animation {
+ position: fixed;
+ z-index: 10;
+}
+
+.battle__monster-technique {
+ background-color: beige;
+ border: 2px solid #000;
+ padding: 0.25rem;
+
+ display: inline-flex;
+ align-items: center;
+
+ cursor: pointer;
+}
+.battle__monster-technique__name {}
+.battle__monster-technique__types {}
+.battle__monster-technique__power {}
+
+.battle__monster--player {
+ flex-direction: row-reverse;
+}
+.battle__monster--enemy .battle__monster-info-exp,
+.battle__monster--enemy .battle__monster-technique {
+ display: none;
+}
+
+.exp-bar {
+ width: 100%;
+}
+.exp-bar__bar-wrap {
+ width: 100%;
+ border: 1px solid rgba(0, 0, 0, 0.5);
+ background-color: lightgray;
+}
+.exp-bar__bar {
+ background-color: blue;
+ height: 7px;
+ transition: background-color;
+ width: 0%;
+}
+
+.hp-bar {
+ flex-grow: 1;
+}
+.hp-bar__bar-wrap {
+ width: 100%;
+ border: 1px solid rgba(0, 0, 0, 0.5);
+}
+.hp-bar__bar {
+ background-color: green;
+ height: 10px;
+ transition: background-color;
+}
+
+
+
+.moveset__list {
+ padding: 0 0.5rem;
+}
+
+.moveset__item {
+ font-size: 1.5rem;
+ border: 1px solid #000;
+ padding: 0.5em 0.75em;
+ margin: 0.5em 0;
+ line-height: 1em;
+ cursor: pointer;
+ background-color: rgba(255, 255, 255, 0.5);
+
+ /* display: flex; */
+ /* align-items: center; */
+}
+
+.moveset__item:hover {
+ background-color: rgba(0, 0, 0, 0.1);
+}
+
+.moveset__item[disabled] {
+ filter: grayscale(100%);
+ opacity: 0.5;
+}
+
+.moveset__item[selected] {
+ border-color: var(--color-success);
+ color: var(--color-success);
+ background-color: rgba(255, 255, 255, 0.75);
+}
+
+.moveset__item img {
+ height: 1em;
+ width: 1em;
+}
+
+
+
+
+#techniques {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ grid-template-rows: 1fr 1fr;
+
+ background: beige;
+}
+
+.techniques__technique {
+ user-select: none;
+ border: 1px solid #000;
+ padding: 0.25rem;
+ cursor: pointer;
+}
+
+.techniques__technique:hover,
+.techniques__technique:active {
+ background-color: rgba(0, 0, 0, 0.05);
+}
+
+.techniques__technique > div {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.techniques__technique > div + div {
+ margin-top: 0.25rem;
+}
+.techniques__technique [data-template-slot="name"] {
+ font-size: 1.5rem;
+}
+
+
+.damage {
+ position: absolute;
+ z-index: 11;
+
+ animation: float-up-and-disappear;
+}
+
+@keyframes float-up-and-disappear {
+ from {
+ opacity: 1;
+ }
+
+ to {
+ top: 0;
+ opacity: 0;
+ font-size: 0;
+ }
+}