Clarify injury markers and keep modal close controls visible
This commit is contained in:
parent
63a4a931f4
commit
6f7f55d860
3 changed files with 26 additions and 4 deletions
|
|
@ -32,6 +32,8 @@ const iconPaths = {
|
|||
help: '<circle cx="12" cy="12" r="9"/><path d="M9.5 9a2.5 2.5 0 0 1 5 0c0 2-2.5 2-2.5 4m0 3v.1"/>',
|
||||
heart:
|
||||
'<path d="M12 20S3 15 3 8.5A4.5 4.5 0 0 1 12 7a4.5 4.5 0 0 1 9 1.5C21 15 12 20 12 20Z"/>',
|
||||
injury:
|
||||
'<g transform="rotate(-40 12 12)"><rect x="2" y="7" width="20" height="10" rx="3.5" fill="#f3cca0"/><rect x="9" y="8" width="6" height="8" rx="1" fill="#fff3dc" stroke-width="1.3"/><g fill="currentColor" stroke="none"><circle cx="5.5" cy="10" r=".8"/><circle cx="5.5" cy="14" r=".8"/><circle cx="18.5" cy="10" r=".8"/><circle cx="18.5" cy="14" r=".8"/></g></g>',
|
||||
bio: '<path d="M9 2h6m-5 0v7L5 18q-1 3 3 3h8q4 0 3-3l-5-9V2M8 14h8"/><circle cx="11" cy="17" r="1"/>',
|
||||
grid: '<rect x="3" y="3" width="18" height="18" rx="3"/><path d="M3 9h18M3 15h18M9 3v18M15 3v18"/>',
|
||||
expand: '<path d="M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5"/>',
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ const amount = (kind, n, label, symbol) =>
|
|||
export const bp = (n) =>
|
||||
amount("bp", n, `${n} biological point${n === 1 ? "" : "s"}`, "bio");
|
||||
export const injury = (n) =>
|
||||
amount("injury", n, `${n} ${n === 1 ? "injury" : "injuries"}`, "heart");
|
||||
amount("injury", n, `${n} ${n === 1 ? "injury" : "injuries"}`, "injury");
|
||||
export const sensitivity = (n) =>
|
||||
amount("mutation", n, `${n} mutation sensitivity`, "sun");
|
||||
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@
|
|||
.injury {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 5%;
|
||||
top: 8%;
|
||||
border-radius: 10px;
|
||||
background: #fcddd0;
|
||||
color: #97502f;
|
||||
|
|
@ -337,7 +337,23 @@
|
|||
.soup dialog {
|
||||
max-width: 870px;
|
||||
max-height: 85dvh;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.soup dialog[open] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.soup .modal-content {
|
||||
min-height: 0;
|
||||
padding: 33px;
|
||||
overflow: auto;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
.soup .close-modal {
|
||||
z-index: 2;
|
||||
background: var(--paper);
|
||||
box-shadow: 0 2px 8px #153c4420;
|
||||
}
|
||||
.soup .shop-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
|
|
@ -725,7 +741,7 @@
|
|||
.soup .action .food-amount {
|
||||
font-size: 11px;
|
||||
}
|
||||
.soup dialog {
|
||||
.soup .modal-content {
|
||||
padding: 24px 18px;
|
||||
}
|
||||
.soup .shop-grid {
|
||||
|
|
@ -843,7 +859,11 @@
|
|||
flex: none;
|
||||
}
|
||||
.injury-amount {
|
||||
color: #a85a45;
|
||||
color: #924d39;
|
||||
}
|
||||
.injury-amount svg {
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
}
|
||||
.bp-amount {
|
||||
color: #5c7541;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue