step 5.4: done
This commit is contained in:
@@ -290,6 +290,256 @@ button:hover { background: #c73650; }
|
||||
color: #eadfce;
|
||||
}
|
||||
|
||||
/* ===== Tabs ===== */
|
||||
.tabs {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border-bottom: 1px solid var(--border, #3a2f27);
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.tab {
|
||||
padding: 0.5rem 1.25rem;
|
||||
background: transparent;
|
||||
color: var(--muted, #a59a8a);
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
cursor: pointer;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
transition: color 0.2s, border-color 0.2s;
|
||||
}
|
||||
|
||||
.tab:hover {
|
||||
color: var(--text, #eadfce);
|
||||
}
|
||||
|
||||
.tab.active {
|
||||
color: var(--accent, #e2822b);
|
||||
border-bottom-color: var(--accent, #e2822b);
|
||||
}
|
||||
|
||||
/* ===== Inventory layout ===== */
|
||||
.inventory-container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.5fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.inventory-container {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== Equipment panel ===== */
|
||||
.equipment-panel h4 {
|
||||
color: var(--accent, #e2822b);
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.equipment-slots {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
|
||||
.equip-slot {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.4rem 0.6rem;
|
||||
background: #0f3460;
|
||||
border-radius: 4px;
|
||||
font-size: 0.8rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.slot-label {
|
||||
color: var(--muted, #a59a8a);
|
||||
text-transform: capitalize;
|
||||
min-width: 2.5em;
|
||||
}
|
||||
|
||||
.slot-item {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.slot-item .item-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.slot-item .item-stats {
|
||||
font-size: 0.7rem;
|
||||
color: var(--muted, #a59a8a);
|
||||
}
|
||||
|
||||
.btn-unequip {
|
||||
background: transparent;
|
||||
color: var(--danger, #c0392b);
|
||||
border: 1px solid var(--danger, #c0392b);
|
||||
padding: 0.15rem 0.5rem;
|
||||
font-size: 0.7rem;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.btn-unequip:hover {
|
||||
background: var(--danger, #c0392b);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.slot-empty {
|
||||
color: var(--muted, #a59a8a);
|
||||
font-style: italic;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
/* ===== Inventory grid ===== */
|
||||
.inventory-grid-panel h4 {
|
||||
color: var(--accent, #e2822b);
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.inventory-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
||||
gap: 0.5rem;
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.inv-item {
|
||||
background: #0f3460;
|
||||
border: 1px solid var(--border, #3a2f27);
|
||||
border-radius: 4px;
|
||||
padding: 0.5rem;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.inv-item:hover {
|
||||
border-color: var(--accent, #e2822b);
|
||||
}
|
||||
|
||||
.inv-item-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.inv-item-icon {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.inv-item-name {
|
||||
font-weight: 600;
|
||||
font-size: 0.8rem;
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.inv-item-rarity {
|
||||
font-size: 0.65rem;
|
||||
padding: 0.1rem 0.35rem;
|
||||
border-radius: 3px;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.inv-item-stats {
|
||||
font-size: 0.7rem;
|
||||
color: var(--success, #4f9d69);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.inv-item-type {
|
||||
font-size: 0.65rem;
|
||||
color: var(--muted, #a59a8a);
|
||||
margin-top: 0.15rem;
|
||||
}
|
||||
|
||||
.inv-item-qty {
|
||||
position: absolute;
|
||||
bottom: 0.3rem;
|
||||
right: 0.4rem;
|
||||
font-size: 0.7rem;
|
||||
color: var(--muted, #a59a8a);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Rarity colors */
|
||||
.rarity-common { color: #b8b0a3; }
|
||||
.rarity-uncommon { color: #5fb36b; }
|
||||
.rarity-rare { color: #4a8fe0; }
|
||||
.rarity-epic { color: #a45ee0; }
|
||||
.rarity-legendary { color: #f2a23a; }
|
||||
|
||||
.bg-rarity-common { background: rgba(184, 176, 163, 0.2); color: #b8b0a3; }
|
||||
.bg-rarity-uncommon { background: rgba(95, 179, 107, 0.2); color: #5fb36b; }
|
||||
.bg-rarity-rare { background: rgba(74, 143, 224, 0.2); color: #4a8fe0; }
|
||||
.bg-rarity-epic { background: rgba(164, 94, 224, 0.2); color: #a45ee0; }
|
||||
.bg-rarity-legendary { background: rgba(242, 162, 58, 0.2); color: #f2a23a; }
|
||||
|
||||
/* ===== Tooltip ===== */
|
||||
.inv-item .tooltip {
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: calc(100% + 6px);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: #1a1a2e;
|
||||
border: 1px solid var(--border, #3a2f27);
|
||||
border-radius: 6px;
|
||||
padding: 0.6rem 0.75rem;
|
||||
min-width: 170px;
|
||||
max-width: 220px;
|
||||
z-index: 100;
|
||||
pointer-events: none;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.inv-item:hover .tooltip {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tooltip-name {
|
||||
font-weight: 700;
|
||||
font-size: 0.85rem;
|
||||
margin-bottom: 0.15rem;
|
||||
}
|
||||
|
||||
.tooltip-type {
|
||||
font-size: 0.7rem;
|
||||
color: var(--muted, #a59a8a);
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.tooltip-stats {
|
||||
font-size: 0.75rem;
|
||||
color: var(--success, #4f9d69);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.tooltip-effect {
|
||||
font-size: 0.75rem;
|
||||
color: var(--accent, #e2822b);
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.tooltip-level {
|
||||
font-size: 0.7rem;
|
||||
color: var(--muted, #a59a8a);
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
/* ===== Toast notifications ===== */
|
||||
.toast {
|
||||
position: fixed;
|
||||
|
||||
Reference in New Issue
Block a user