Refactor platform UI and data flow across core pages
All checks were successful
Build Org Website / build (push) Successful in 50s
All checks were successful
Build Org Website / build (push) Successful in 50s
This commit is contained in:
317
assets/styles/pages/princess-lima-rpg.css
Normal file → Executable file
317
assets/styles/pages/princess-lima-rpg.css
Normal file → Executable file
@@ -93,16 +93,17 @@ button:disabled {
|
||||
|
||||
.lima-rpg__game {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
inset: 0 0 0 272px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
background: #080a12;
|
||||
}
|
||||
|
||||
.lima-rpg__game canvas {
|
||||
display: block;
|
||||
max-width: 100vw;
|
||||
max-height: 100dvh;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
|
||||
@@ -177,33 +178,27 @@ button:disabled {
|
||||
border-color: #e7888f;
|
||||
}
|
||||
|
||||
.lima-exit {
|
||||
position: absolute;
|
||||
z-index: 80;
|
||||
top: 0.75rem;
|
||||
right: 0.75rem;
|
||||
min-height: 36px;
|
||||
padding: 0.4rem 0.75rem;
|
||||
background: rgb(9 13 23 / 0.9);
|
||||
font-size: 0.86rem;
|
||||
}
|
||||
|
||||
.lima-hud {
|
||||
position: absolute;
|
||||
z-index: 30;
|
||||
inset: 0.75rem 10rem auto 0.75rem;
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(12rem, 22rem) minmax(10rem, 1fr) auto;
|
||||
gap: 0.55rem;
|
||||
pointer-events: none;
|
||||
inset: 0 auto 0 0;
|
||||
display: flex;
|
||||
width: 272px;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
overflow: auto;
|
||||
border-right: 3px solid #b78b4d;
|
||||
background:
|
||||
linear-gradient(180deg, rgb(20 29 47 / 0.98), rgb(7 12 22 / 0.99)),
|
||||
url("/assets/images/play/princess-lima/world-tiles.png");
|
||||
box-shadow: 8px 0 24px rgb(0 0 0 / 0.38);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.lima-hud > div {
|
||||
min-height: 58px;
|
||||
border: 2px solid rgb(214 174 99 / 0.72);
|
||||
border-radius: 5px;
|
||||
background: rgb(8 12 22 / 0.93);
|
||||
padding: 0.45rem 0.65rem;
|
||||
border-bottom: 1px solid rgb(214 174 99 / 0.38);
|
||||
background: rgb(8 12 22 / 0.48);
|
||||
padding: 0.72rem 0.85rem;
|
||||
}
|
||||
|
||||
.lima-hud span {
|
||||
@@ -222,6 +217,43 @@ button:disabled {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.lima-hud__identity {
|
||||
display: grid;
|
||||
grid-template-columns: 66px 1fr;
|
||||
align-items: center;
|
||||
gap: 0.7rem;
|
||||
border-bottom: 2px solid #9d7440;
|
||||
padding: 0.8rem;
|
||||
}
|
||||
|
||||
.lima-hud__portrait {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border: 2px solid #d8b66d;
|
||||
border-radius: 4px;
|
||||
background-size: 256px 256px;
|
||||
}
|
||||
|
||||
.lima-hud__equipment {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.2rem 0.55rem;
|
||||
}
|
||||
|
||||
.lima-hud__equipment strong {
|
||||
margin: 0 0 0.45rem;
|
||||
font-size: 0.84rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.lima-hud__objective strong {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
font-size: 0.9rem;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 3;
|
||||
}
|
||||
|
||||
.lima-hud__healthbar,
|
||||
.lima-boss__bar {
|
||||
height: 8px;
|
||||
@@ -240,22 +272,47 @@ button:disabled {
|
||||
}
|
||||
|
||||
.lima-hud__actions {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.42rem;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.lima-hud__actions button {
|
||||
min-width: 48px;
|
||||
min-height: 48px;
|
||||
padding: 0.4rem;
|
||||
font-size: 0.78rem;
|
||||
min-width: 0;
|
||||
min-height: 42px;
|
||||
padding: 0.35rem;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.lima-hud__actions .lima-button-link {
|
||||
display: grid;
|
||||
grid-column: 1 / -1;
|
||||
place-items: center;
|
||||
min-height: 38px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.lima-hud kbd {
|
||||
border: 1px solid #897553;
|
||||
border-radius: 3px;
|
||||
background: #090d16;
|
||||
padding: 0.05rem 0.22rem;
|
||||
}
|
||||
|
||||
.lima-hud__keys {
|
||||
margin: auto 0 0;
|
||||
border-top: 1px solid #654e32;
|
||||
color: #bcb9b0;
|
||||
padding: 0.65rem 0.8rem;
|
||||
font-size: 0.68rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.lima-status-stack {
|
||||
position: absolute;
|
||||
z-index: 25;
|
||||
left: 50%;
|
||||
left: calc(50% + 136px);
|
||||
bottom: 1rem;
|
||||
width: min(44rem, calc(100vw - 2rem));
|
||||
transform: translateX(-50%);
|
||||
@@ -281,12 +338,8 @@ button:disabled {
|
||||
}
|
||||
|
||||
.lima-boss {
|
||||
position: absolute;
|
||||
z-index: 35;
|
||||
top: 5.2rem;
|
||||
left: 50%;
|
||||
width: min(34rem, calc(100vw - 2rem));
|
||||
transform: translateX(-50%);
|
||||
position: static;
|
||||
width: auto;
|
||||
border: 2px solid #bd6d8b;
|
||||
background: rgb(18 8 25 / 0.95);
|
||||
padding: 0.55rem 0.8rem;
|
||||
@@ -297,42 +350,6 @@ button:disabled {
|
||||
background: linear-gradient(90deg, #9d3961, #e28f98);
|
||||
}
|
||||
|
||||
.lima-touch {
|
||||
position: absolute;
|
||||
z-index: 40;
|
||||
inset: auto 0.8rem 0.8rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.lima-dpad,
|
||||
.lima-actions {
|
||||
display: grid;
|
||||
gap: 0.35rem;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.lima-dpad {
|
||||
grid-template-columns: repeat(3, 54px);
|
||||
grid-template-rows: repeat(2, 54px);
|
||||
}
|
||||
|
||||
.lima-dpad button {
|
||||
min-height: 54px;
|
||||
padding: 0;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.lima-dpad [data-lima-move="up"] { grid-column: 2; }
|
||||
.lima-dpad [data-lima-move="left"] { grid-column: 1; grid-row: 2; }
|
||||
.lima-dpad [data-lima-move="down"] { grid-column: 2; grid-row: 2; }
|
||||
.lima-dpad [data-lima-move="right"] { grid-column: 3; grid-row: 2; }
|
||||
|
||||
.lima-actions {
|
||||
grid-template-columns: repeat(2, minmax(70px, 96px));
|
||||
}
|
||||
|
||||
.lima-overlay,
|
||||
.lima-setup {
|
||||
position: absolute;
|
||||
@@ -520,6 +537,107 @@ button:disabled {
|
||||
color: #ffb1b9;
|
||||
}
|
||||
|
||||
.lima-intro {
|
||||
position: absolute;
|
||||
z-index: 120;
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
background: #03050a;
|
||||
}
|
||||
|
||||
.lima-intro__picture {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image: url("/assets/images/play/princess-lima/intro-storyboard.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
background-size: 200% 200%;
|
||||
image-rendering: pixelated;
|
||||
animation: lima-cinematic-pan 15s ease-in-out both;
|
||||
}
|
||||
|
||||
.lima-intro__picture[data-panel="1"] { background-position: 100% 0; }
|
||||
.lima-intro__picture[data-panel="2"] { background-position: 0 100%; }
|
||||
.lima-intro__picture[data-panel="3"] { background-position: 100% 100%; }
|
||||
|
||||
.lima-intro__vignette {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(180deg, rgb(0 0 0 / 0.22), transparent 40%, rgb(0 0 0 / 0.75));
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.lima-intro__subtitle {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 5.2rem;
|
||||
width: min(58rem, calc(100% - 3rem));
|
||||
transform: translateX(-50%);
|
||||
border: 2px solid #d7b76d;
|
||||
border-radius: 4px;
|
||||
background: rgb(4 7 14 / 0.94);
|
||||
color: #fff9e9;
|
||||
padding: 0.85rem 1.1rem;
|
||||
font-family: Georgia, serif;
|
||||
font-size: clamp(1rem, 2.1vw, 1.45rem);
|
||||
line-height: 1.45;
|
||||
text-align: center;
|
||||
text-shadow: 0 2px #000;
|
||||
}
|
||||
|
||||
.lima-intro__progress {
|
||||
position: absolute;
|
||||
right: 1rem;
|
||||
bottom: 1rem;
|
||||
left: 1rem;
|
||||
height: 6px;
|
||||
overflow: hidden;
|
||||
border-radius: 999px;
|
||||
background: #251d2a;
|
||||
}
|
||||
|
||||
.lima-intro__progress i {
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 100%;
|
||||
background: #f1c66e;
|
||||
transition: width 0.4s linear;
|
||||
}
|
||||
|
||||
.lima-intro__controls {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
top: 0.75rem;
|
||||
right: 0.75rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
border: 1px solid #75633e;
|
||||
background: rgb(3 5 10 / 0.86);
|
||||
padding: 0.4rem;
|
||||
}
|
||||
|
||||
.lima-intro__controls button {
|
||||
min-height: 38px;
|
||||
padding: 0.38rem 0.65rem;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.lima-intro__controls span {
|
||||
color: #e5dcc5;
|
||||
padding: 0 0.35rem;
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
|
||||
.lima-intro.is-paused .lima-intro__picture {
|
||||
animation-play-state: paused;
|
||||
}
|
||||
|
||||
@keyframes lima-cinematic-pan {
|
||||
from { transform: scale(1.02) translate3d(-0.5%, 0, 0); }
|
||||
to { transform: scale(1.09) translate3d(0.5%, -0.5%, 0); }
|
||||
}
|
||||
|
||||
.lima-rpg.is-high-contrast {
|
||||
--lima-panel: #000;
|
||||
--lima-panel-strong: #000;
|
||||
@@ -534,41 +652,18 @@ button:disabled {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.lima-rpg:fullscreen .lima-exit {
|
||||
top: 0.5rem;
|
||||
}
|
||||
|
||||
@media (pointer: fine) and (min-width: 900px) {
|
||||
.lima-touch {
|
||||
opacity: 0.18;
|
||||
}
|
||||
|
||||
.lima-touch:hover,
|
||||
.lima-touch:focus-within {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.lima-hud {
|
||||
right: 0.65rem;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
.lima-hud__objective {
|
||||
grid-column: 1 / -1;
|
||||
.lima-rpg__game {
|
||||
left: 220px;
|
||||
}
|
||||
|
||||
.lima-hud__actions {
|
||||
position: fixed;
|
||||
right: 0.6rem;
|
||||
top: 0.6rem;
|
||||
border: 0 !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.lima-hud__actions button:not([data-lima-pause]) {
|
||||
display: none;
|
||||
.lima-status-stack {
|
||||
left: calc(50% + 110px);
|
||||
width: min(38rem, calc(100vw - 238px));
|
||||
}
|
||||
|
||||
.lima-main-menu,
|
||||
@@ -578,27 +673,23 @@ button:disabled {
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.lima-status-stack {
|
||||
bottom: 7.4rem;
|
||||
.lima-intro__controls span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (max-height: 560px) and (orientation: landscape) {
|
||||
.lima-hud {
|
||||
inset: 0.35rem 5rem auto 0.35rem;
|
||||
grid-template-columns: auto auto 1fr auto;
|
||||
width: 210px;
|
||||
}
|
||||
|
||||
.lima-hud > div {
|
||||
min-height: 48px;
|
||||
padding: 0.3rem 0.5rem;
|
||||
}
|
||||
|
||||
.lima-touch {
|
||||
inset: auto 0.35rem 0.35rem;
|
||||
.lima-rpg__game {
|
||||
left: 210px;
|
||||
}
|
||||
|
||||
.lima-status-stack {
|
||||
left: calc(50% + 105px);
|
||||
bottom: 0.35rem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user