Implements inventory system, wip
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -619,6 +619,79 @@
|
||||
min-width: 12rem;
|
||||
}
|
||||
}
|
||||
|
||||
.inv-section {
|
||||
margin-bottom: 6px;
|
||||
.inv-items {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
}
|
||||
.inv-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 2px 4px;
|
||||
border-radius: 3px;
|
||||
background: rgba(255,255,255,0.15);
|
||||
&:hover { background: rgba(255,255,255,0.25); }
|
||||
.item-img {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.inv-name {
|
||||
flex: 1;
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.inv-enc, .inv-uses, .inv-capacity {
|
||||
font-size: 11px;
|
||||
color: #555;
|
||||
min-width: 30px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.controls {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
a { font-size: 12px; cursor: pointer; }
|
||||
}
|
||||
}
|
||||
.inv-empty {
|
||||
font-style: italic;
|
||||
color: rgba(0,0,0,0.4);
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
padding: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.pack-burden-fieldset {
|
||||
.pack-burden-display {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 4px 0;
|
||||
font-size: 13px;
|
||||
|
||||
.pack-burden-label {
|
||||
font-weight: bold;
|
||||
}
|
||||
.pack-burden-value {
|
||||
font-weight: bold;
|
||||
.pack-burden-used { color: #e6a817; }
|
||||
.pack-burden-sep { color: rgba(0,0,0,0.4); }
|
||||
.pack-burden-max { color: rgba(0,0,0,0.7); }
|
||||
}
|
||||
}
|
||||
.pack-burden-used { color: #e6a817; font-weight: bold; }
|
||||
.pack-burden-sep { color: rgba(0,0,0,0.4); margin: 0 2px; }
|
||||
.pack-burden-max { color: rgba(0,0,0,0.7); font-weight: bold; }
|
||||
}
|
||||
}
|
||||
|
||||
.tab.character-combat .main-div {
|
||||
@@ -911,3 +984,32 @@
|
||||
min-height: 150px;
|
||||
}
|
||||
}
|
||||
|
||||
// Equipped item visual feedback
|
||||
.inv-item {
|
||||
&.is-equipped {
|
||||
background: rgba(100, 180, 100, 0.12);
|
||||
border-left: 2px solid rgba(80, 160, 80, 0.6);
|
||||
}
|
||||
.equipped-icon {
|
||||
color: #5a9e6a;
|
||||
}
|
||||
.unequipped-icon {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
}
|
||||
|
||||
// Burden overload warning
|
||||
.burden-excess {
|
||||
font-size: 0.75em;
|
||||
color: #ff5c5c;
|
||||
margin-left: 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// Depleted consumable button
|
||||
.controls a.disabled {
|
||||
opacity: 0.35;
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
.consumable-content {
|
||||
.item-img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
object-fit: contain;
|
||||
border: 1px solid var(--color-border-light-tertiary);
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
.container-content {
|
||||
.item-img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
object-fit: contain;
|
||||
border: 1px solid var(--color-border-light-tertiary);
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
@@ -20,6 +20,9 @@
|
||||
@import "race.less";
|
||||
@import "class.less";
|
||||
@import "character-path.less";
|
||||
@import "container.less";
|
||||
@import "consumable.less";
|
||||
@import "loot.less";
|
||||
@import "effects.less";
|
||||
@import "weapon-types-config.less";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
.loot-content {
|
||||
.item-img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
object-fit: contain;
|
||||
border: 1px solid var(--color-border-light-tertiary);
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user