diff options
Diffstat (limited to 'resources/css')
-rw-r--r-- | resources/css/battle.css | 231 | ||||
-rw-r--r-- | resources/css/menu.css | 70 | ||||
-rw-r--r-- | resources/css/page.css | 24 | ||||
-rw-r--r-- | resources/css/variables.css | 3 |
4 files changed, 328 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; + } +} diff --git a/resources/css/menu.css b/resources/css/menu.css new file mode 100644 index 0000000..41353b2 --- /dev/null +++ b/resources/css/menu.css @@ -0,0 +1,70 @@ +.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__overlay.popup--is-multiple { + background-color: rgba(0, 0, 0, 0.25); +} + +.popup { + background-image: url('/modules/tuxemon/mods/tuxemon/gfx/ui/background/spyder_empty.png'); + background-size: cover; + background-position: center; +} + + + + +#status { + color: #fff; + background-color: #000; + padding: 0.25rem; +} + + + +#menu { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + text-align: center; + background-color: beige; +} +#menu > div { + cursor: pointer; +} +#menu > div:hover { + background-color: rgba(0, 0, 0, 0.05); +} + + + +.party__monsters { + display: grid; + grid-template-columns: 1fr 1fr 1fr; +} + +.party__monster { + cursor: pointer; + padding: 1rem; +} +.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); +} diff --git a/resources/css/page.css b/resources/css/page.css new file mode 100644 index 0000000..96cefdf --- /dev/null +++ b/resources/css/page.css @@ -0,0 +1,24 @@ +* { + box-sizing: border-box; +} + +html { + font-size: 14px; +} + +body { + margin: 0; +} + +img { + display: inline-block; + max-width: 100%; +} + +.wrap { + margin: 0 auto; + min-width: 360px; + max-width: 750px; + width: 100vw; + height: 100vh; +} diff --git a/resources/css/variables.css b/resources/css/variables.css new file mode 100644 index 0000000..d5f11be --- /dev/null +++ b/resources/css/variables.css @@ -0,0 +1,3 @@ +:root { + --color-success: darkgreen; +} |