summaryrefslogtreecommitdiff
path: root/style.css
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-08-15 13:18:57 +0200
committerDaniel Weipert <code@drogueronin.de>2023-08-15 13:18:57 +0200
commit8ab8988d01199f64151c532c59ff6c08735d4e37 (patch)
tree17d5bbdf36aa744119f37e0fffc6ede78d13fa70 /style.css
initial commit
Diffstat (limited to 'style.css')
-rw-r--r--style.css190
1 files changed, 190 insertions, 0 deletions
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..8ffcee1
--- /dev/null
+++ b/style.css
@@ -0,0 +1,190 @@
+* {
+ box-sizing: border-box;
+}
+
+body {
+ margin: 0;
+}
+
+img {
+ display: inline-block;
+ max-width: 100%;
+}
+
+.wrap {
+ margin: 0 auto;
+ width: 1200px;
+ height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.popup__overlay {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100vw;
+ height: 100vh;
+ background-color: rgba(0, 0, 0, 0.8);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.popup {
+ background-color: #fff;
+ padding: 1rem;
+}
+
+#battle {
+ user-select: none;
+ min-width: 750px;
+ min-height: 300px;
+ padding: 1rem;
+
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+
+ background-image: url('/modules/tuxemon/mods/tuxemon/gfx/backgrounds/test/back02.png');
+ background-image: url('https://wiki.tuxemon.org/images/9/9f/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-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-sprite img {
+ transition-property: filter;
+}
+.battle__monster-sprite img.damaged {
+ filter: brightness(2);
+}
+
+.battle__monster-technique {
+ background-color: beige;
+ border: 2px solid #000;
+ display: inline;
+ padding: 0.25rem;
+}
+
+.battle__monster--player {
+ flex-direction: row-reverse;
+}
+.battle__monster--enemy .battle__monster-info-exp,
+.battle__monster--enemy .battle__monster-technique {
+ display: none;
+}
+
+.exp {
+ width: 100%;
+}
+.exp-bar-wrap {
+ width: 100%;
+ border: 1px solid rgba(0, 0, 0, 0.5);
+ background-color: lightgray;
+}
+.exp-bar {
+ background-color: blue;
+ height: 7px;
+ transition: background-color;
+ width: 0%;
+}
+.hp-bar-wrap {
+ width: 100%;
+ border: 1px solid rgba(0, 0, 0, 0.5);
+}
+.hp-bar {
+ background-color: green;
+ height: 10px;
+ transition: background-color;
+}
+
+#enemy {
+ position: relative;
+ user-select: none;
+ cursor: pointer;
+ min-width: 750px;
+ min-height: 300px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ border: 1px solid #000;
+ flex-direction: column;
+
+ background-image: url('/modules/tuxemon/mods/tuxemon/gfx/backgrounds/test/back02.png');
+ background-image: url('https://wiki.tuxemon.org/images/9/9f/Sea_background.png');
+ background-size: cover;
+}
+
+#enemy img {
+ transition-property: filter;
+}
+#enemy img.clicked {
+ filter: brightness(2);
+}
+
+
+.damage {
+ position: absolute;
+ color: red;
+
+ animation: float-up-and-disappear;
+}
+
+@keyframes float-up-and-disappear {
+ from {
+ opacity: 1;
+ }
+
+ to {
+ top: 0;
+ opacity: 0;
+ font-size: 0;
+ }
+}