This commit is contained in:
Joan
2026-02-23 15:42:21 +01:00
parent a725ae5836
commit d38d4cc288
102 changed files with 4511 additions and 4454 deletions

View File

@@ -38,10 +38,11 @@
/* --- Redesigned Inventory Modal --- */
/* --- Redesigned Inventory Modal --- */
.inventory-modal-redesign {
.game-modal-container.inventory-modal-redesign {
display: flex;
flex-direction: column;
height: 85vh;
height: 90%;
max-height: 90%;
width: 95vw;
max-width: 1400px;
background: var(--game-bg-modal);
@@ -53,6 +54,15 @@
clip-path: var(--game-clip-path);
}
.game-modal-container.inventory-modal-redesign .game-modal-content {
padding: 0;
overflow: hidden;
display: flex;
flex-direction: column;
height: 100%;
/* Ensure it fills the container */
}
/* Top Bar */
.inventory-top-bar {
display: flex;
@@ -233,31 +243,8 @@
}
.game-search-container {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
background: var(--game-bg-input, rgba(0, 0, 0, 0.3));
border: 1px solid var(--game-border-color);
margin-bottom: 1.5rem;
color: var(--game-text-primary);
width: 100%;
box-sizing: border-box;
clip-path: var(--game-clip-path-sm);
}
.game-search-icon {
font-size: 1rem;
opacity: 0.7;
}
.game-search-input {
background: transparent;
border: none;
color: #fff;
font-size: 1rem;
flex: 1;
outline: none;
}
/* View Toggle Button */
@@ -308,9 +295,10 @@
/* Grid View Layout */
.items-container.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
grid-template-columns: repeat(auto-fill, 90px);
justify-content: center;
grid-auto-rows: max-content;
gap: 1rem;
gap: 0.5rem;
align-content: start;
}
@@ -365,6 +353,9 @@
cursor: pointer;
transition: all 0.2s ease;
box-shadow: var(--game-shadow-sm);
width: 90px;
height: 90px;
box-sizing: border-box;
}
.inventory-item-card.grid:hover,
@@ -424,38 +415,23 @@
display: none;
}
.item-quantity-badge {
position: absolute;
bottom: -5px;
right: -5px;
background: var(--game-bg-panel);
border: 1px solid var(--game-border-color);
color: var(--game-text-primary);
font-size: 0.75rem;
padding: 2px 6px;
clip-path: var(--game-clip-path-sm);
font-weight: bold;
box-shadow: var(--game-shadow-sm);
}
/* Position adjustment for grid view badge */
.inventory-item-card.grid .item-quantity-badge {
bottom: 2px;
right: 2px;
font-size: 0.7rem;
padding: 1px 4px;
}
.item-equipped-indicator {
position: absolute;
top: 2px;
right: 2px;
left: 2px;
/* moved to left to free up space for clip path */
background: #4299e1;
color: #fff;
font-size: 0.65rem;
font-size: 0.7rem;
font-weight: bold;
padding: 1px 4px;
border-radius: 2px;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
clip-path: var(--game-clip-path-sm);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}