Files
ZeroSpace/ZeroSpace/ZeroSpace.Web/Pages/Loadout.razor.css
T

240 lines
4.1 KiB
CSS

.loadout-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
align-items: start;
}
@media (max-width: 900px) {
.loadout-layout {
grid-template-columns: 1fr;
}
}
/* The item pool scrolls independently so the loadout board stays on screen. */
.loadout-pool {
max-height: calc(100vh - 10rem);
max-height: calc(100dvh - 10rem);
overflow-y: auto;
padding-right: 0.5rem;
}
@media (max-width: 900px) {
.loadout-pool {
max-height: none;
overflow-y: visible;
}
}
.hero-label {
font-weight: 600;
color: #94a3b8;
}
.details-toggle {
display: inline-flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
cursor: pointer;
color: #cbd5e1;
}
.pool-heading {
font-size: 1.25rem;
font-weight: 700;
color: #fff;
margin: 1.5rem 0 0.75rem;
}
.pool-heading:first-of-type {
margin-top: 0;
}
.slot-count {
font-size: 0.85rem;
font-weight: 400;
color: #94a3b8;
}
.pool-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
/* Icon-only mode: icons wrap in a compact flex grid and shrink a little. */
.pool-list.compact {
flex-direction: row;
flex-wrap: wrap;
}
.pool-list.compact .pool-card {
padding: 0.3rem;
}
.pool-list.compact .pool-icon {
width: 40px;
height: 40px;
font-size: 1.2rem;
}
.pool-card {
display: flex;
gap: 0.75rem;
align-items: flex-start;
padding: 0.6rem 0.75rem;
cursor: grab;
}
.pool-card:active {
cursor: grabbing;
}
.pool-card.icon-only {
padding: 0.35rem;
width: fit-content;
}
.pool-card.equipped {
opacity: 0.45;
}
.pool-icon {
width: 48px;
height: 48px;
border-radius: 8px;
border: 1px solid var(--zs-border-subtle);
background: rgba(0, 0, 0, 0.45);
flex-shrink: 0;
object-fit: cover;
}
.pool-icon-placeholder {
display: flex;
align-items: center;
justify-content: center;
color: #38bdf8;
font-size: 1.4rem;
text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}
.pool-body {
flex: 1;
min-width: 0;
}
.pool-name {
font-weight: 700;
color: #fff;
}
.merc-badge {
display: inline-block;
font-size: 0.72rem;
font-weight: 600;
color: #fbbf24;
border: 1px solid rgba(251, 191, 36, 0.5);
border-radius: 999px;
padding: 0.05rem 0.5rem;
margin: 0.25rem 0;
}
.pool-levels {
list-style: none;
margin: 0.25rem 0 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.15rem;
font-size: 0.85rem;
color: #cbd5e1;
}
.merc-error {
background: rgba(220, 38, 38, 0.15);
border: 1px solid #dc2626;
color: #fca5a5;
border-radius: 8px;
padding: 0.6rem 0.9rem;
margin-bottom: 1rem;
font-weight: 600;
}
.slot-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 0.6rem;
margin-bottom: 0.5rem;
}
.slot {
position: relative;
min-height: 92px;
border-radius: 10px;
border: 1px solid var(--zs-border-subtle);
background: rgba(0, 0, 0, 0.35);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.3rem;
padding: 0.6rem 0.5rem;
text-align: center;
}
.slot-empty {
border-style: dashed;
border-color: rgba(148, 163, 184, 0.4);
}
.slot-hint {
font-size: 0.8rem;
color: #64748b;
}
.slot-icon {
width: 40px;
height: 40px;
border-radius: 8px;
object-fit: cover;
}
.slot-icon-placeholder {
display: flex;
align-items: center;
justify-content: center;
color: #38bdf8;
font-size: 1.2rem;
background: rgba(0, 0, 0, 0.45);
border: 1px solid var(--zs-border-subtle);
}
.slot-name {
font-size: 0.8rem;
font-weight: 600;
color: #e2e8f0;
}
.slot-remove {
position: absolute;
top: 2px;
right: 6px;
border: none;
background: none;
color: #94a3b8;
font-size: 1.1rem;
line-height: 1;
cursor: pointer;
padding: 0 0.15rem;
}
.slot-remove:hover {
color: #f87171;
}
.slot-conflict {
border: 2px solid #dc2626;
box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}