Implements inventory system, wip

This commit is contained in:
2026-05-19 22:23:31 +02:00
parent 68e3d35af1
commit 4ff46865c2
29 changed files with 1317 additions and 35 deletions
+118 -7
View File
@@ -58,17 +58,21 @@
// Left Column - Portrait, Attributes, HP
.character-left-column {
display: flex;
flex-direction: row;
gap: 12px;
align-items: flex-start;
display: grid;
grid-template-columns: 200px 1fr;
grid-template-rows: auto auto;
column-gap: 12px;
row-gap: 8px;
align-items: start;
min-width: 0;
.portrait-hp-column {
display: flex;
flex-direction: column;
gap: 12px;
width: 200px;
flex-shrink: 0;
grid-column: 1;
grid-row: 1 / 3;
}
.character-portrait {
@@ -158,9 +162,9 @@
display: flex;
flex-direction: column;
gap: 6px;
flex: 1;
grid-column: 2;
grid-row: 1;
min-width: 0;
max-width: 280px;
.attribute-shield {
position: relative;
@@ -484,3 +488,110 @@
}
}
}
// Movement Rating + Burden section
.burden-mr-section {
display: flex;
flex-direction: row;
gap: 16px;
padding: 8px 12px;
background: rgba(0, 0, 0, 0.35);
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 4px;
grid-column: 2;
grid-row: 2;
.burden-mr-item {
display: flex;
flex-direction: column;
gap: 3px;
.burden-display-row {
display: flex;
align-items: center;
gap: 8px;
min-height: 22px;
}
.burden-edit-row {
display: flex;
align-items: center;
gap: 3px;
flex-wrap: wrap;
}
.burden-label {
font-weight: bold;
font-size: 11px;
letter-spacing: 0.05em;
min-width: 52px;
color: #fff;
cursor: default;
}
.burden-sub-attr {
// formField helper renders a .form-group with label stacked above select.
// Flatten it so the select sits inline in the flex row.
.form-group {
display: contents;
label { display: none; }
}
.form-fields {
display: contents;
}
select {
font-size: 11px;
padding: 1px 2px;
height: 22px;
max-width: 80px;
background: rgba(0, 0, 0, 0.3);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 3px;
}
}
.burden-op {
font-size: 11px;
color: rgba(255, 255, 255, 0.9);
flex-shrink: 0;
}
.burden-other {
input[type="number"] {
width: 32px;
text-align: center;
font-size: 11px;
height: 22px;
background: rgba(0, 0, 0, 0.3);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 3px;
}
}
.burden-total {
font-size: 18px;
font-weight: bold;
color: #ffe566;
min-width: 24px;
text-align: center;
}
.burden-used-max {
display: flex;
align-items: center;
gap: 2px;
font-size: 14px;
font-weight: bold;
.burden-used { color: #ffe566; }
.burden-separator { color: rgba(255, 255, 255, 0.8); }
.burden-max { color: #e0e0e0; }
&.burden-overloaded {
.burden-used { color: #ff5c5c; font-weight: bold; }
}
}
}
}