@@ -494,6 +494,201 @@ code {
|
||||
color: #fecaca;
|
||||
}
|
||||
|
||||
.inventory-panel-embedded {
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.character-inventory-block {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.character-inventory-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.character-inventory-head h2 {
|
||||
margin: 0 0 0.25rem;
|
||||
font-size: 1.15rem;
|
||||
}
|
||||
|
||||
.character-meta {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.section-intro {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.inventory-embedded-meta {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.inventory-panel {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.inventory-sections {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(88px, auto) minmax(88px, auto) 1fr;
|
||||
grid-template-areas:
|
||||
"hotbar hotbar hotbar"
|
||||
"storage storage storage"
|
||||
"armor utility .";
|
||||
gap: 1.25rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.inventory-section--hotbar {
|
||||
grid-area: hotbar;
|
||||
}
|
||||
|
||||
.inventory-section--storage {
|
||||
grid-area: storage;
|
||||
}
|
||||
|
||||
.inventory-section--armor {
|
||||
grid-area: armor;
|
||||
}
|
||||
|
||||
.inventory-section--utility {
|
||||
grid-area: utility;
|
||||
}
|
||||
|
||||
.inventory-section--hotbar .inventory-grid,
|
||||
.inventory-section--storage .inventory-grid {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.inventory-sections {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-areas:
|
||||
"hotbar"
|
||||
"storage"
|
||||
"armor"
|
||||
"utility";
|
||||
}
|
||||
|
||||
.inventory-section--armor .inventory-grid,
|
||||
.inventory-section--utility .inventory-grid {
|
||||
max-width: 120px;
|
||||
}
|
||||
}
|
||||
|
||||
.inventory-section-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 0.65rem;
|
||||
}
|
||||
|
||||
.inventory-section-head h3 {
|
||||
margin: 0;
|
||||
font-size: 0.95rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.inventory-grid {
|
||||
display: grid;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.inventory-grid.cols-9 {
|
||||
grid-template-columns: repeat(9, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.inventory-grid.cols-1 {
|
||||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
max-width: 120px;
|
||||
}
|
||||
|
||||
.inventory-slot {
|
||||
aspect-ratio: 1;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
padding: 0.35rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
min-height: 72px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.inventory-slot.empty {
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.inventory-slot.filled {
|
||||
border-color: rgba(94, 179, 255, 0.35);
|
||||
background: rgba(94, 179, 255, 0.08);
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.slot-icon {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
object-fit: contain;
|
||||
image-rendering: pixelated;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.item-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
|
||||
.item-row-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
object-fit: contain;
|
||||
image-rendering: pixelated;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.slot-name {
|
||||
font-size: 0.62rem;
|
||||
line-height: 1.15;
|
||||
font-weight: 600;
|
||||
word-break: break-word;
|
||||
margin-top: 0.15rem;
|
||||
}
|
||||
|
||||
.slot-qty {
|
||||
align-self: flex-end;
|
||||
font-size: 0.72rem;
|
||||
color: var(--accent);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.slot-dur {
|
||||
font-size: 0.62rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.inventory-list {
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
|
||||
.inventory-list summary {
|
||||
cursor: pointer;
|
||||
color: var(--accent);
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.layout {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -517,4 +712,8 @@ code {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.inventory-grid.cols-9 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user