selector and web
Build / build (push) Has been cancelled

This commit is contained in:
gpatruno
2026-06-07 00:35:18 +02:00
parent 211779785d
commit 836499d10d
18 changed files with 1189 additions and 25 deletions
+199
View File
@@ -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));
}
}
+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Objet inconnu">
<rect width="64" height="64" rx="8" fill="#1c2430"/>
<rect x="8" y="8" width="48" height="48" rx="6" fill="#2a3544" stroke="#3a4554"/>
<path d="M22 42 L32 22 L42 42 Z" fill="none" stroke="#5eb3ff" stroke-width="3" stroke-linejoin="round"/>
<circle cx="32" cy="46" r="3" fill="#878e9c"/>
</svg>

After

Width:  |  Height:  |  Size: 401 B