feat(equipment): redesign equipment inventory into large tiles grid with inspector panel like srtools, and fix duplicate selectedLcRank syntax error

This commit is contained in:
CAtlas0784 committed 2026-10-17 01:54:37 +07:00
1 parent 1fe36fad43
commit 025697ea52
3 files changed
+726 -127

No files matched your search

+214
View File
@@ -1715,3 +1715,217 @@ input:checked + .slider:before {
font-size: 0.7rem;
color: var(--text-muted);
}
/* ==========================================================================
Equipment Inventory Tiles Grid & Inspector (Matching srtools neonteam)
========================================================================== */
.eq-tiles-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
gap: 0.75rem;
max-height: 720px;
overflow-y: auto;
padding-right: 0.35rem;
}
.eq-tile-card {
position: relative;
background: var(--bg-card);
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
overflow: hidden;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
aspect-ratio: 0.78;
display: flex;
flex-direction: column;
justify-content: flex-end;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
user-select: none;
}
.eq-tile-card:hover {
transform: translateY(-4px) scale(1.03);
border-color: var(--accent-cyan);
box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
z-index: 3;
}
.eq-tile-card.active {
border-color: var(--accent-gold);
box-shadow: 0 0 0 2px var(--accent-gold), 0 8px 25px rgba(234, 179, 8, 0.45);
}
.eq-tile-card.rarity-5 {
border-color: rgba(234, 179, 8, 0.5);
background: radial-gradient(circle at 50% 20%, rgba(234, 179, 8, 0.25) 0%, rgba(15, 23, 42, 0.95) 85%);
}
.eq-tile-card.rarity-4 {
border-color: rgba(168, 85, 247, 0.5);
background: radial-gradient(circle at 50% 20%, rgba(168, 85, 247, 0.25) 0%, rgba(15, 23, 42, 0.95) 85%);
}
.eq-tile-card.rarity-3 {
border-color: rgba(56, 189, 248, 0.5);
background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.25) 0%, rgba(15, 23, 42, 0.95) 85%);
}
.eq-tile-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.eq-tile-card:hover .eq-tile-img {
transform: scale(1.08);
}
.eq-tile-top-tag {
position: absolute;
top: 6px;
left: 6px;
background: rgba(11, 15, 25, 0.85);
border: 1px solid rgba(255, 255, 255, 0.2);
color: var(--accent-gold);
font-weight: 800;
font-size: 0.7rem;
padding: 0.1rem 0.35rem;
border-radius: 4px;
z-index: 2;
display: flex;
align-items: center;
gap: 0.2rem;
backdrop-filter: blur(4px);
}
.eq-tile-wearer-badge {
position: absolute;
top: 6px;
right: 6px;
width: 28px;
height: 28px;
border-radius: 50%;
border: 1.5px solid var(--accent-gold);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
overflow: hidden;
z-index: 2;
background: #000;
}
.eq-tile-wearer-img {
width: 100%;
height: 100%;
object-fit: cover;
}
.eq-tile-bottom-bar {
position: relative;
z-index: 2;
background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.75) 70%, transparent 100%);
padding: 0.4rem 0.5rem 0.35rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.eq-tile-level {
font-size: 0.725rem;
font-weight: 800;
color: #fff;
font-family: monospace;
}
.eq-tile-name-snippet {
font-size: 0.675rem;
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 65px;
}
/* Side Inspector Card */
.eq-inspector-wrapper {
background: linear-gradient(135deg, rgba(20, 27, 45, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 1.25rem;
display: flex;
flex-direction: column;
gap: 0.85rem;
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}
.eq-inspector-hero {
display: flex;
gap: 1rem;
align-items: center;
}
.eq-inspector-thumb {
width: 72px;
height: 96px;
border-radius: 8px;
object-fit: cover;
border: 1.5px solid var(--accent-gold);
flex-shrink: 0;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.eq-inspector-info {
flex: 1;
min-width: 0;
}
.eq-inspector-title {
font-weight: 800;
font-size: 1rem;
color: #fff;
line-height: 1.3;
}
.eq-inspector-stars {
color: var(--accent-gold);
font-size: 0.85rem;
margin-top: 0.2rem;
}
.eq-inspector-stats {
background: rgba(11, 15, 25, 0.75);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.35rem;
font-size: 0.8rem;
}
.eq-inspector-stat-row {
display: flex;
justify-content: space-between;
align-items: center;
}
.eq-inspector-ability {
background: rgba(11, 15, 25, 0.75);
border: 1px solid rgba(56, 189, 248, 0.2);
border-radius: var(--radius-md);
padding: 0.75rem;
font-size: 0.775rem;
line-height: 1.5;
color: #cbd5e1;
}
.eq-inspector-actions {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-top: 0.5rem;
}