218 lines
8.0 KiB
CSS
218 lines
8.0 KiB
CSS
.item-catalog-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: .65rem;
|
|
flex-wrap: wrap;
|
|
margin-top: 1rem;
|
|
}
|
|
.item-catalog-toolbar .form-input { flex: 1 1 260px; min-width: 200px; }
|
|
.item-catalog-toolbar .form-select { flex: 0 1 230px; min-width: 190px; }
|
|
.item-catalog-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
gap: .75rem;
|
|
}
|
|
.item-catalog-card {
|
|
min-width: 0;
|
|
display: grid;
|
|
grid-template-columns: 68px minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: .8rem;
|
|
padding: .8rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
transition: border-color .15s ease, background .15s ease;
|
|
}
|
|
.item-catalog-card:hover {
|
|
border-color: rgba(56, 189, 248, .45);
|
|
background: var(--bg-card-hover);
|
|
}
|
|
.item-catalog-art {
|
|
width: 68px;
|
|
height: 68px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: .15rem;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(255, 255, 255, .035);
|
|
}
|
|
.item-catalog-art-button {
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
.item-catalog-art-button:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
|
|
.item-catalog-art-button:hover .item-catalog-art { border-color: var(--accent-gold); transform: translateY(-1px); }
|
|
.item-catalog-image {
|
|
width: 62px;
|
|
height: 62px;
|
|
object-fit: contain;
|
|
}
|
|
.item-catalog-art-missing {
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: .2rem;
|
|
}
|
|
.item-catalog-art-missing span { font-size: 1.25rem; line-height: 1; color: var(--accent-cyan); }
|
|
.item-catalog-art-missing small { font-size: .55rem; line-height: 1.1; }
|
|
.item-catalog-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
|
|
.item-catalog-name {
|
|
max-width: 100%;
|
|
color: var(--text-primary);
|
|
font-size: .84rem;
|
|
line-height: 1.25;
|
|
font-weight: 750;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.item-catalog-id { color: var(--accent-cyan); font: 700 .75rem/1.2 monospace; }
|
|
.item-catalog-details {
|
|
max-width: 100%;
|
|
color: var(--text-muted);
|
|
font-size: .65rem;
|
|
line-height: 1.2;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.item-catalog-support {
|
|
margin-top: .12rem;
|
|
padding: .14rem .4rem;
|
|
border-radius: 999px;
|
|
font-size: .59rem;
|
|
line-height: 1.25;
|
|
font-weight: 750;
|
|
}
|
|
.item-catalog-support.is-supported { color: #34d399; background: rgba(16, 185, 129, .12); }
|
|
.item-catalog-support.is-browse-only { color: #fbbf24; background: rgba(245, 158, 11, .11); }
|
|
.item-catalog-empty { grid-column: 1 / -1; padding: 2rem 1rem; text-align: center; color: var(--text-muted); }
|
|
.item-catalog-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: .75rem;
|
|
padding: .75rem 1rem;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
@media (max-width: 540px) {
|
|
.item-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
|
|
.item-catalog-toolbar .form-select { flex: 1 1 100%; }
|
|
}
|
|
.inventory-mode-switch {
|
|
display: flex;
|
|
gap: .5rem;
|
|
margin-bottom: 1rem;
|
|
padding: .35rem;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-secondary);
|
|
}
|
|
.inventory-mode-btn {
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-sm);
|
|
padding: .55rem .85rem;
|
|
color: var(--text-muted);
|
|
background: transparent;
|
|
font: inherit;
|
|
font-size: .8rem;
|
|
font-weight: 750;
|
|
cursor: pointer;
|
|
}
|
|
.inventory-mode-btn:hover { color: var(--text-primary); }
|
|
.inventory-mode-btn.active {
|
|
color: var(--accent-cyan);
|
|
background: rgba(56, 189, 248, .1);
|
|
border-color: rgba(56, 189, 248, .25);
|
|
}
|
|
.inventory-mode-panel[hidden] { display: none !important; }
|
|
|
|
.item-catalog-dialog {
|
|
width: min(660px, calc(100vw - 2rem));
|
|
max-width: none;
|
|
max-height: min(86vh, 760px);
|
|
padding: 0;
|
|
color: var(--text-primary);
|
|
border: 1px solid rgba(244, 190, 86, .45);
|
|
border-radius: 14px;
|
|
background: linear-gradient(145deg, #202333, #11141f 68%);
|
|
box-shadow: 0 24px 90px rgba(0, 0, 0, .72), 0 0 36px rgba(244, 190, 86, .09);
|
|
}
|
|
.item-catalog-dialog::backdrop { background: rgba(4, 6, 14, .78); backdrop-filter: blur(5px); }
|
|
.item-catalog-detail-shell { overflow: auto; max-height: min(86vh, 760px); }
|
|
.item-catalog-detail-header,
|
|
.item-catalog-detail-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: .8rem;
|
|
padding: .85rem 1rem;
|
|
background: rgba(255, 255, 255, .035);
|
|
}
|
|
.item-catalog-detail-header { color: var(--accent-gold); font-weight: 800; border-bottom: 1px solid var(--border-color); }
|
|
.item-catalog-dialog-close {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 50%;
|
|
color: var(--text-primary);
|
|
background: rgba(255, 255, 255, .06);
|
|
font-size: 1.3rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
.item-catalog-detail-body { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 1rem; padding: 1.15rem; }
|
|
.item-catalog-detail-art {
|
|
width: 144px;
|
|
height: 144px;
|
|
display: grid;
|
|
place-items: center;
|
|
align-self: start;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(244, 190, 86, .38);
|
|
border-radius: 12px;
|
|
background: radial-gradient(circle, rgba(244, 190, 86, .13), rgba(255, 255, 255, .03) 70%);
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
font-size: .8rem;
|
|
}
|
|
.item-catalog-detail-art img { width: 90%; height: 90%; object-fit: contain; }
|
|
.item-catalog-detail-copy { min-width: 0; }
|
|
.item-catalog-detail-copy h2 { margin: .05rem 0 .35rem; font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
|
|
.item-catalog-detail-id { color: var(--accent-cyan); font: 700 .78rem/1.3 monospace; }
|
|
.item-catalog-detail-source { margin-top: .25rem; color: var(--text-muted); font-size: .66rem; line-height: 1.35; overflow-wrap: anywhere; }
|
|
.item-catalog-detail-meta { margin-top: .5rem; color: var(--accent-gold); font-size: .78rem; line-height: 1.5; }
|
|
.item-catalog-detail-section { margin-top: .85rem; }
|
|
.item-catalog-detail-section h3 { margin: 0 0 .3rem; color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
|
|
.item-catalog-detail-description,
|
|
.item-catalog-detail-lore { color: #e1e4ee; font-size: .83rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
|
|
.item-catalog-detail-quantity { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.15rem; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
|
|
.item-catalog-detail-quantity > label { color: var(--text-primary); font-size: .82rem; font-weight: 750; }
|
|
.item-catalog-amount-stepper { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--border-color); border-radius: 8px; background: rgba(0, 0, 0, .22); }
|
|
.item-catalog-amount-stepper button { width: 2.2rem; height: 2.2rem; border: 0; color: var(--accent-gold); background: transparent; font-size: 1.25rem; cursor: pointer; }
|
|
.item-catalog-amount-stepper button:hover { background: rgba(244, 190, 86, .12); }
|
|
.item-catalog-amount-stepper input { width: 5.2rem; height: 2.2rem; border: 0; border-right: 1px solid var(--border-color); border-left: 1px solid var(--border-color); outline: 0; color: var(--text-primary); background: transparent; text-align: center; font: 700 .95rem/1 monospace; }
|
|
.item-catalog-amount-limit { color: var(--text-muted); font-size: .72rem; }
|
|
.item-catalog-detail-footer { justify-content: flex-end; }
|
|
.item-catalog-detail-lore[hidden] { display: none !important; }
|
|
@media (max-width: 480px) {
|
|
.inventory-mode-switch { width: 100%; }
|
|
.inventory-mode-btn { flex: 1; padding-inline: .45rem; }
|
|
}
|
|
@media (max-width: 520px) {
|
|
.item-catalog-detail-body { grid-template-columns: 88px minmax(0, 1fr); gap: .75rem; padding: .85rem; }
|
|
.item-catalog-detail-art { width: 88px; height: 88px; }
|
|
.item-catalog-detail-quantity { flex-wrap: wrap; gap: .55rem; }
|
|
}
|